News for hackers. Stuff that matters.
Re:Treating JavaScript like a 30 year old language by ricardobeat on Wednesday July 04, 2012 @01:59PM (#4200261)
Those are all fairly standard practices (except for the compile step which brings portability issues). I got the impression that the author has some underlying reason for this post that went unexplained.

If the lack of default parameters and style consistency are your main peeves with Javascript, it's faring quite well :) Ironically, those are problems that CoffeeScript solves, yet it seems this guy would be the last person to try it.

Re:Treating JavaScript like a 30 year old language by jerbils on Wednesday July 04, 2012 @03:50PM (#4200663)
Article author here:

I'll get into CoffeeScript when I feel that it solves more problems than it creates (it's very important for me to be able to debug raw source code in a language). My goal as a programmer is to reduce complexity, and I think it will take about 10 years for CoffeeScript to let me do that.

EDIT: Forget to mention, there's nothing in particular that caused me to write this. I just realized that, more and more, my style goes against what a lot of people do. I figured I'd document it for anyone interested in it. :)

Re:Treating JavaScript like a 30 year old language by ricardobeat on Wednesday July 04, 2012 @05:12PM (#4200848)
Hi Jeremy. Dmitry's argument you mention, for instance, is questionable and not very popular. I think I can't point to what you're going against (vs "old style" coding), maybe some examples in the post could help.

On CS: you are already using a compile step that dynamically changes code, how more complex can it get? I have thousands of lines of CS in production and it never caused any more problems than JS. If you think of CoffeeScript as a tool to write Javascript, not a separate language, things go much smoother (you want to debug the javascript output, not the cs source).

Re:Treating JavaScript like a 30 year old language by jerbils on Thursday July 05, 2012 @10:27AM (#4203140)
Debugging compiled code is absolutely unpleasant. Fortunately, I only have to do it rarely. From what I can tell, debugging JavaScript that was compiled from CoffeeScript is a standard practice, and I simply don't want to pursue that. It's interesting how you describe CoffeeScript as a tool rather than a language, but in my opinion it is still a very leaky abstraction.

As I mentioned, I look forward to revisiting it when a standard toolset has matured.

Re:Treating JavaScript like a 30 year old language by scottschulthess on Wednesday July 04, 2012 @07:49PM (#4201176)
There are lots of people who feel it (CoffeeScript) does indeed solve more problems then it creates.

If it actually does create more problems then it solves then a lot of people are just plain making a mistake by using it :) which I don't think is the case.

Plenty of programmers I know had a similar knee jerk reaction to the idea of CoffeeScript and have since decided it is a worth-while trade off.

You never know, you might be one of them!