4 ms·
> The JS example is just a very poor example of coding. That's because it's the output of the coffeescript compiler, it's not "actual" javascript code.
by masklinn 15y ago
> The JS example is just a very poor example of coding.
That's because it's the output of the coffeescript compiler, it's not "actual" javascript code.
- bcrescimanno 15y agoIt makes the article very misleading. Yes, CS looks great next to garbage output--but there are about a dozen ways to accomplish these tasks in JS and most are almost as concise as the CS examples. Honestly, if that type of output is why people think Javascript is "hard" or "convoluted," then maybe CS is right for them. As with any tool, a proper knowledge of its use is required and anyone who would write code like that clearly doesn't really know their tool.