First and foremost, let me say that I love me some JavaScript. It’s the first language that ever truly made me excited to tinker. I could just whip open a browser, and all of the glory of controlling web pages was mine. This became a passionate, uncontrollable obsession which led me to pursue a career and a lifetime as a web developer.
I find writing JavaScript to be extremely fun, even though it does take a bit to get over the learning curve of the “this” gotchas and global variable mess. Still, I never really saw myself learning an entirely different syntax to accomplish the same things I had already been doing. This changed when I stepped into the world of Python and saw the happiness that a little bit of syntactic sugar can bring into your life. Once I was introduced to list comprehensions, for example, I began to question myself every time I wrote a classic for-loop to build an array.
CoffeeScript allows me to keep the little language that I love so dearly, but adds a layer of awesomeness on top that can only be known through trying it. I swore I wouldn’t make the switch, but now that I have, I feel a bit like I take a step backward when I’m forced to write plain-jane JS at work. As far as code reduction, I’ve seen about a 30-40% drop in lines of code in my side projects, and that alone is worth the switch. I’ve had a taste of the Coffee, and I must say it’s good.
Recent Comments