Lepahc

  • About
  • Resume
    • Five reasons you should use CoffeeScript

      May 5, 2011
      3
      • Edit
      • Delete
      • Tags
      • Autopost

      There has been a lot of discussion about CoffeeScript, pro and con; I am here to tell you why you should use CoffeeScript, or at a minimum give it a shot. I know some of you are looking for any reason not to use CoffeeScript, but I do hope that you give CoffeeScript a chance, especially if you have spent any time writing JavaScript. It also is further validation for CoffeeScript that Rails is including it in future releases.

      I would like to preface this by saying that these reasons stem from my own experiences using CoffeeScript with Node.js and for the browser. I personally was skeptical learning CoffeeScript, I felt that I should stick to JavaScript so I didn't unlearn or cause problems understanding JavaScript down the road. Those were totally unfounded fears, and as I explain below, CoffeeScript has only helped. 

       

      CoffeeScript is easy to learn ->

      Even with no experience with JavaScript, you can pickup and run with CoffeeScript almost immediately. The syntax is very light, removing unnecessary characters and syntax that only waste space. Once you understand the basics, you will fall in love with the more advanced features that make writing elegant code fun.

      Using the main CoffeeScript docs are nice, they detail everything nicely with the resulting JavaScript next to the CoffeeScript examples. Check out the always available realtime CoffeeScript translator, this will make it easy to test your code if you are unsure how it translates to JavaScript early on.

       

      CoffeeScript will make you better at JavaScript ->

      Part of learning CoffeeScript is understanding how it translates into JavaScript. This might not apply to everyone, but going between the two will help you unravel what really is important to JavaScript. Not to mention features available in JavaScript that you might not have known existed, if not for using their shorthand counterparts in CoffeeScript.

       

      CoffeeScript is easier to type ->

      CoffeeScript's syntax is clean and requires less typing, which means you can program faster. It isn't faster just because it requires less characters to achieve the same result, but with convenient helper features you will be amazed at how many lines you aren't writing. The best example of saving would be this class and inheritence example.

       

      CoffeeScript compiles better code than if written by hand ->

      All resulting JavaScript code created from CoffeeScript passes JSLint and follows all the best practices that you should be following when writing JavaScript. If you are writing proper CoffeeScript, you are writing better than proper JavaScript. You get all of this with considerably less thought and effort. 

      The CoffeeScript command line utility has the ability to run your resulting code through JSLint automatically. For that extra level of ease and security.

       

      CoffeeScript is consistent and opinionated, JavaScript is not ->

      No matter who you talk to, they probably write their JavaScript differently than you. From someone that doesn't use semicolons, to those that put their commas first. JavaScript is very flexible, and that is a good thing at times, but it can make it hard working with other programmers if there isn't a common style. CoffeeScript is consistent, there is very little variance between straight CoffeeScript, and that is a good thing. You don't have to worry about brackets, parenthesis, semicolons, or even commas most times. Just write code, don't worry about the semantics.

       

      You don't have to love CoffeeScript to appreciate it, you con't have to use it to respect it, but you should at least try it before you condemn it. I hope that you will take a chance and at least try CoffeeScript, it won't bite, I promise.

       

       

    • Disconnect from the status quo

      March 28, 2011
      1
      • Edit
      • Delete
      • Tags
      • Autopost

      For the longest time I have felt a disconnect to what seemed like the status quo when it came to the path to success. This idea that the only way to be successful for example is to sign a contract with a recording company if you were a musician. The idea that you have to put your chance to be successful into someone else's hands to even have a chance always felt like a lie.

      It has taken me a while to fully understand what success really is, sadly I feel too many people searching for it have no idea still. Success is something that is personal, you will know when you have it. No person or organization can tell you if you are successful.

      I believe the disillusion that success is governed by some external force, or requires bucket loads of money, stems from the perversion of capitalistic ideals. There was a time when capitalism was about the everyday man or woman starting their own business. Providing goods and services to the community around them. It used to be that you could make your life better, make a future for your children. The last 50 to 70 years have seen those small town values shift into a perverted system where only those with money can be successful.

      Finally, with the proliferation of knowledge through the internet, it seems like there is a resurgence of this small town thinking. Where making a modest living, even a small fortune is possible while not being attributed to the twisted idea that success is only measured if you are in the top X%. Nothing truly has changed, but the internet has given the power of knowledge, spreading it to any and all that wish to share and learn it.

      We are in unprecedented times, where a 12 year old kid can start a business and become an entrepreneur with no funding or say so by some external force.

      I hope to be apart of this revolution of sorts, where the power really is in the hands of everyone, not just a select few.

    • Jacob Chapel

      Jacob Chapel

      JavaScript developer by day, mild mannered eccentric by night. Uses mainly Node.JS, CouchDB, jQuery, as well as other libraries and frameworks.
    • Elsewhere Online

      • github:chapel
      • +chapel
      • @jacobchapel
    • People

      • Sørensen
      • Substack
      • jesusabdullah
      • pkrumins
      • Caolan
      • Tanepiper
    • Things

      • Browserling
      • Nodejitsu
    • Get Updates

      Follow this Space »
      You're following this Space (Edit)
      You're a contributor here (Edit)
      This is your Space (Edit)
      Follow by email »
      Get the latest updates in your email box automatically.
      Loading...
      Subscribe via RSS
    • Archive

      • 2011 (3)
        • May (2)
        • March (1)
    • Obox Design
  • Knowing when and where to throw in the towel gives you the advantage so you can keep yourself from stalling, but by ignoring that knowledge you will find real success.