MyThinkPond

On Java, Python, Groovy, Grails, Spring, Node.js, Linux, Arduino, ARM, Embedded Devices & Web

  • Recent Posts

    August 2017
    M T W T F S S
    « Jul    
     123456
    78910111213
    14151617181920
    21222324252627
    28293031  
  • Subscribe Options

  • Awards

    JavaCodeGeeks
  • Most Valuable Blogger @ DZone
  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 173 other followers

  • Follow MyThinkPond on WordPress.com
  • Blog Stats

    • 364,698 hits
  • General Options

Archive for the ‘EL6’ Category

Elements of JavaScript Style – JavaScript Scene – Medium

Posted by Venkatt Guhesan on May 3, 2017

Great article focusing on Javascript style. Provides some good examples of JavaScript coding styles, practices, and things to avoid.

The examples includes:

  1. Make the function the unit of composition. One job for each function.
  2. Omit needless code.
  3. Use active voice.
  4. Avoid a succession of loose statements.
  5. Keep related code together.
  6. Put statements and expressions in positive form.
  7. Use parallel code for parallel concepts.

Source: Elements of JavaScript Style – JavaScript Scene – Medium

Posted in EL6, Javascript, Scripting | Tagged: , , , | Leave a Comment »