TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

My response to "CoffeeScript means giving up on JavaScript"

39 pointsby paulbjensenover 13 years ago

8 comments

Legionover 13 years ago
There's no real comparison between CoffeeScript-&#62;JavaScript and Ruby-&#62;C.<p>Ruby doesn't have any necessary relation to C. Case in point: JRuby. The underlying language is just an implementation detail to provide an environment for executing Ruby code.<p>CoffeeScript has no executable environment. It is purely syntactic sugar for generating JavaScript code that gets executed in a JS environment (which itself is implemented in C or C++).<p>CoffeeScript is more comparable to GWT.
评论 #3204402 未加载
gerggergover 13 years ago
I think a lot of the frustration comes from people thinking that CoffeeScript is proposing itself as being a replacement for javascript or even a full abstraction from javascript.<p>CoffeeScript is a tool you can use to write javascript more conveniently, and more consistently.<p>It is not a replacement for knowledge of, or usage of javascript. You're still going to have to know how javascript works and CoffeeScript never claims otherwise. People who either don't understand or are too excited by it's blissful syntax are the ones that do.<p>Are you Douglass Crockford or John Resig? Then you're probably gonna stick to straight javascript as you can already write consistently rock-star javascript. Are you an overworked dev just trying to write some js without mucking things up too much? Then whip out coffeescript and let it help you do that. Then check the source it generates to make sure everythings going well(and get better at JS by reading it).
gfodorover 13 years ago
The learning curve for CoffeeScript is so low and the benefits so high that it's a smart decision to use it. You're not giving up Javascript, the number one rule of CoffeeScript is that <i>CoffeeScript is Javascript</i>. I don't think anyone expects you to learn CoffeeScript before Javascript. CoffeeScript is basically a tool you pick up in an afternoon after you have spent the time needed to understand and wield Javascript.
评论 #3205327 未加载
pspeter3over 13 years ago
I feel like one key difference between Ruby being written in C and CoffeeScript being compiled to Javascript is the debug information. As the author of the attack on CoffeeScript mentioned, being able to debug CoffeeScript code requires you to understand the JavaScript debug output and translate that back into CoffeeScript. Other than that, I agree with all of your points.
评论 #3203583 未加载
pothiboover 13 years ago
I do believe that if you understand C, you can become a better programmer on those higher level languages.<p>However, this is like everything in life, you don't need to master C, or Javascript, or as the saying goes: "Too much is like not enough".<p>Understanding how heap/stack, memory is allocated and free'd can give you a good understanding of how ruby/objective-c works.<p>Same could be applied to Javascript and CoffeeScript.
julian37over 13 years ago
The article he responds to is discussed here: <a href="http://news.ycombinator.com/item?id=3202828" rel="nofollow">http://news.ycombinator.com/item?id=3202828</a>
goatslackerover 13 years ago
Since CoffeeScript is a transpiler it's unfair to compare it to Erlang/C or Ruby/C.
评论 #3203709 未加载
suyashover 13 years ago
CoffeeScript &#60; JavaScript. I find the CoffeeScript syntax very confusing.
评论 #3204622 未加载
评论 #3204589 未加载
评论 #3204877 未加载