JavaScript Vs. CoffeeScript : Which one would you prefer?

I'm sure you might have heard about CoffeeScript. As the official description of coffeescript goes, it's a tiny language that compiles into Javascript. This new language aims to expose and utilise JSs' object model. If anyone's interested in knowing more about it, head over to: CoffeeScript .

Now, I'm not a JavaScript coder but I'm interested in knowing who among you is adopting the Coffeescript over Javascript. What generates my interest in CS? Well, the Dropbox engineering team rewrote the entire browser side codebase from JavaScript to Coffeescript within a week.

Share your reasons for adopting / not-adopting the coffeescript.

Replies

  • Prasad Ajinkya
    Prasad Ajinkya
    If I had a custom JS codebase, I might think about migrating to CS (provided the compiled JS output is auto-minified and produces the best code for that purpose).

    However, since most of us are using third party scripts almost all the time, why would I take the trouble to learn one more language (which is more confounding than Javascript)?

    Lastly, most of us use JS for simple things really. Our aim is not to write an uber function ... its almost always to do with some sort of validation or form submissions!! So why look at a language which makes JS OOP-based?
  • Harish Kotra
    Harish Kotra
    JS will always be my choice and I totally agree with kidakaka. He told whatever I wanted to 😛
  • Kaustubh Katdare
    Kaustubh Katdare
    kidakaka
    If I had a custom JS codebase, I might think about migrating to CS (provided the compiled JS output is auto-minified and produces the best code for that purpose).

    However, since most of us are using third party scripts almost all the time, why would I take the trouble to learn one more language (which is more confounding than Javascript)?

    Lastly, most of us use JS for simple things really. Our aim is not to write an uber function ... its almost always to do with some sort of validation or form submissions!! So why look at a language which makes JS OOP-based?
    That makes sense. I wonder why did the Dropbox team took out a week to rewrite their entire browser-side codebase to Coffeescript? Does it offer any advantages / performance improvements in the longer run? Curious to know.
  • Harish Kotra
    Harish Kotra
    Thanks to The_Big_K for making this thread I came across something new to learn at least. Found this interesting post by a guy where he does a postmortem of CS vs JS 😀

    #-Link-Snipped-#
  • Prasad Ajinkya
    Prasad Ajinkya
    The_Big_K
    That makes sense. I wonder why did the Dropbox team took out a week to rewrite their entire browser-side codebase to Coffeescript? Does it offer any advantages / performance improvements in the longer run? Curious to know.
    I think the syntax is similar to python (or ruby). Afaik, Dropbox uses Python. It might make the source more maintainable for them.
  • durga ch
    durga ch
    ok, why would you want to convert to coffee script? I mean when it is based on java?? (is what i am thinking) , why not just use java?
  • Kaustubh Katdare
    Kaustubh Katdare
    durga
    ok, why would you want to convert to coffee script? I mean when it is based on java?? (is what i am thinking) , why not just use java?
    Java is different from JavaScript, right? In fact Coffeescript has been written in coffeescript! 😉 . Coffeescript is all browser side code (Javascript) while Python is for the servers. Of course choice of Python is a great given the speed at which it runs. I wished I had spent some time learning Python coding.
  • ankur8819
    ankur8819
    Well i prefer JavaScript any day..Any YUI developers in here..Asking out of curiosity.Initially I had a lot of trouble switching from Javascript/Jquery to YUI but i feel its very powerful..Object based implementation of client side code is done in YUI..

You are reading an archived discussion.

Related Posts

The Dropbox engineering team used this nice online JavaScript to CoffeeScript (and vice-versa) converter tool to rewrite entire their browser side codebase from JS to CS. Take a look at...
hi everyone,... Im thinking to do a project for engg final year on "Usage of waste heat from automobile Exhaust". Can anyone please tell me how i can give a...
TCS recruits hundreds of engineering graduates through their placements portal TCS Next Step ( nextstep.tcs.com ). It's a gateway for the fresh computer science, IT and other engineers into the...
Just stumbled upon the WSJ article on New York City Board Of Health banning the sugary drinks and Soda. I immediately recalled our LONG debate on Alcoholism at the same...
hie, iam using ATMEGA 16 and i want to experiment its ADC.. iam using a simple potentiometer to convert its voltage to digital..i want to know on what factors do...