4 ms·
I don't understand why he talks about a javascript problem being solved, then goes on to show us examples in coffee script.
by Azkar 11y ago
I don't understand why he talks about a javascript problem being solved, then goes on to show us examples in coffee script.
- ludamad 11y agoThere really shouldn't be an difficulty seeing how it maps to JavaScript. CoffeeScript is pretty clean for code examples.
- Azkar 11y agoIt's not that it's difficult to understand, it's about comparing apples to apples.
- jacobolus 11y agoPaste the code into here if you’re having trouble following: http://coffeescript.org/#try:%7BliftAll%7D%20%3D%20require%20%22when%2Fnode%22%0A%7Bcall%7D%20%3D%20require%20%22when%2Fgenerator%22%0A%7BreadFile%2C%20writeFile%7D%20%3D%20(liftAll%20require%20%22fs%22)%0Amarked%20%3D%20require%20%22marked%22%0A%0Acall%20-%3E%0A%20%20try%0A%20%20%20%20buffer%20%3D%20yield%20readFile%20%22my-blog-post.md%22%0A%20%20%20%20html%20%3D%20marked%20buffer.toString()%0A%20%20%20%20yield%20writeFile%20%22my-blog-post.html%22%2C%20html%0A%20%20catch%20error%0A%20%20%20%20console.log%20%22%23%7Berror%7D%22 http://coffeescript.org/#try:%7BliftAll%7D%20%3D%20require%2...