Incredible. I'm a PHP guy, and I now understand OO Javascript 1,000 times better from using this console for 10 minutes than I did spending hours groping in the dark, trying to organize my JS code in side projects. Maybe that's a Coffeescript thing, but having it right there in my browser makes it that much more accessible.
Because real javascript is not like that, that is coffeescript, which is not natively supported by any browser. Execution of coffeescript requires compiling it to javascript code, either statically or dinamically (see coffeescript.js, or tools like codekit).
On the other hand, yes, the coffeescript console does help much in how to implement many complex construct in javascript.
I understood all that. What I was actually excited about was finding coffeescript as a simpler way to express javascript in an object-oriented aspect in particular, not that I misunderstood coffeescript as a replacement for javascript.
Additionally, I had been trying to piece through online tutorials of using .prototype and scope rules to create javascript's version of "classes" and "objects," but was having a hard time making connections with more traditional object-oriented structures I'm familiar with from PHP and Java. By using the CoffeeConsole to write in a more formal object-oriented manner and immediately seeing the javascript "way" of expressing those structures, those connections came much more easily.
-4
u/dapple_man Apr 09 '12
Incredible. I'm a PHP guy, and I now understand OO Javascript 1,000 times better from using this console for 10 minutes than I did spending hours groping in the dark, trying to organize my JS code in side projects. Maybe that's a Coffeescript thing, but having it right there in my browser makes it that much more accessible.