News for hackers. Stuff that matters.
Re:JS 2 CoffeeScript Compiler by jobeirne on Wednesday September 14, 2011 @09:47AM (#2996219)
Does anyone else find CoffeeScript insufferably unreadable? Why take a basically nice-looking language like JavaScript and bathe it in special forms?
Re:JS 2 CoffeeScript Compiler by rauljara on Wednesday September 14, 2011 @10:13AM (#2996330)
Any language is unreadable if you are unfamiliar with it, or languages that share syntax with it. As someone with more of a ruby/python background, I find CoffeeScript incredibly readable. I imagine someone who has only ever learned lisp would find both syntaxes wretched.

I do think, however, that many of the ruby-ish syntax tweaks are more expressive once you get used to them. That is, I learned C-like syntaxes before I learned ruby and I still find I'm able to parse ruby-like code much faster than c-like code. There is more to learn in terms of symbols, constructions, but once you know them, they communicate more information faster.

Re:JS 2 CoffeeScript Compiler by dcvetinovic on Wednesday September 14, 2011 @10:27AM (#2996372)
I've been programming in ruby last 3-4 years most of my time. Despite of that (or may be just because of that) I still find JS code more clear and elegant for reading/writing (under condition it is well written, i.e. w/o "bad parts"), although it is way more verbose, has camel-case convention which I really dislike etc...
Re:JS 2 CoffeeScript Compiler by silverbax88 on Wednesday September 14, 2011 @11:34AM (#2996615)
But most programmers are familiar with a structure and layout that is common to other programming languages.
Re:JS 2 CoffeeScript Compiler by alecbenzer on Wednesday September 14, 2011 @12:00PM (#2996726)
What? CoffeeScript is similar to python and ruby just like Javascript might be considered more similar to C.
Re:JS 2 CoffeeScript Compiler by silverbax88 on Wednesday September 14, 2011 @05:58PM (#2998025)
I never said they weren't.
Re:JS 2 CoffeeScript Compiler by alecbenzer on Wednesday September 14, 2011 @06:50PM (#2998170)
I'm not sure what you mean by "they", but your post made it sound like Javascript syntax was better then CoffeeScript because "most programmers are familiar with a structure and layout that is common to other programming languages", which would imply that Javascript syntax is similar to other languages but that CoffeeScript isn't.
Re:JS 2 CoffeeScript Compiler by silverbax88 on Wednesday September 14, 2011 @07:35PM (#2998275)
I'm sorry, but you are inferring a lot from a simple comment.
Re:JS 2 CoffeeScript Compiler by alecbenzer on Wednesday September 14, 2011 @09:18PM (#2998513)
I don't think I'm inferring any more than I thought seemed necessary to make sense of your comment given the context. What did you mean by your original comment?
Re:JS 2 CoffeeScript Compiler by dcvetinovic on Wednesday September 14, 2011 @09:58AM (#2996258)
I also find correctly written (i.e. without "bad parts") JS code more clear and readable, with syntax which better articulates programmers intentions. Although it may be that I got used to common JS's idioms and patterns. Anyways I still don't find enough incentive to try to write in CoffeeScript.
Re:JS 2 CoffeeScript Compiler by kennystone on Wednesday September 14, 2011 @10:20AM (#2996348)
Nah, you just need to learn some languages without C-style syntax.