Hi all 

Took an in-depth look at the site sample code. 

Coding extensively in JavaScript with the Prototype framework, I saw nothing 
very new and/or disruptive in Coffee script.

They seem to ignore javascript's automatic coercion feature when they write:
if (typeof elvis !== "undefined" && elvis !== null) {
  alert("I knew it!");
}
As JS coerce both undefined and null to false, you can simply write
if (elvis) alert("I knew it!");
Also because you don't need '{}' when 'if' deals with a single instruction.
If you work on web dev, coding in JavaScript gives you access to the FANTASTIC 
Firebug tool (Firefox extension by the facebook team) and its VFP-like IDE: 
command window, debugger, coverage profiler and more. 
I strongly recommend taking a look at Prototype to ease JS dev.; it's quite 
different from other JS frameworks like jquery as it not only extends HTML DOM 
model, but the JS language itself.
Regarding arrays and more generically enumerable collections, Prototype offers 
a bunch of convenient methods such as each(), map(), detect(), invoke(), and 
many more. And of course you can chain calls as every method returns the 
element it works on:
[1,2,3].each().detect().map().etc.
If anyone needs guidance or advice on JavaScript and/ HTML DOM dev., I'd be 
happy to help.
Thierry Nivelet
+33 6 08 82 44 63


Le 11 juin 2011 à 19:28, "Malcolm Greene" <[email protected]> a écrit :

> Passing on a recommendation from the Python mailing list to take
> a look at CoffeeScript
> [1]http://jashkenas.github.com/coffee-script/
> 
> This is a high level language that compiles to portable
> Javascript. CoffeeScript's syntax is similar to Python and Ruby.
> 
> I have no hands-on experience with this tool, but after my
> initial reading of the website, I'm very impressed.
> 
> Have any of you come across this language before?
> 
> Regards,
> Malcolm
> 
> References
> 
> 1. http://jashkenas.github.com/coffee-script/
> 
> 
> --- StripMime Report -- processed MIME parts ---
> multipart/alternative
>  text/plain (text body -- kept)
>  text/html
> ---
> 
[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to