Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I prefer this:

    if 
      if
    else
      if
        
      else if
      
      else
In other words, I prefer CoffeeScript.

Good procedural code is factored into short functions, which would make some of the types of programs the article is alluding to easier to read.

Also, object oriented programming can be a good option for reducing cyclomatic complexity in a lot of different situations where the system you are modeling lends itself to a class structure. And CoffeeScript makes this easier also.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: