Reading the back-and-forth between George Darling and William Cate - TopicsExpress



          

Reading the back-and-forth between George Darling and William Cate made me think of another tip for the day, concerning readability: Run your code through a linter periodically as youre writing it. It helps you be mindful of code formatting and readability. For example, JSFiddle has features like TidyUp to fix most formatting errors (and as a bonus, JSHint to point out syntax errors). [Edit: javascriptlint/online_lint.php tends to be better than JSFiddles TidyUp] Running linters on my code is something I just started doing within the last year, and I wish Id started earlier. For large projects that you may need to ask someone for help on, having well-commented and properly formatted code makes it 746230x easier for them to see whats going on and identify your problem(s). As another example: for C++ programs, theres a nifty Python script that you can download and use to lint your code from the command line: google-styleguide.googlecode/svn/trunk/cpplint/cpplint.py
Posted on: Thu, 27 Nov 2014 22:57:47 +0000

Trending Topics



Recently Viewed Topics




© 2015