r/javascript • • Apr 09 '12

CoffeeConsole: Coffeescript for Chrome's Web Inspector

http://snook.ca/archives/browsers/coffeeconsole
1 Upvotes

4 comments sorted by

-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.

0

u/[deleted] Apr 10 '12

[deleted]

-3

u/dapple_man Apr 10 '12

really? why?

2

u/zenojevski Apr 12 '12

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.

1

u/dapple_man Apr 13 '12

ah, sorry for the confusion.

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.