Lint your code!
Lint your code as you write to aviod simple errors. Set up an automatic linting plugin for your favourite editor and kill the edit-refresh-"Syntax error"-fix cycle! A good linter will catch things like extra commas in JavaScript or unused imports in Python, or undeclared global variables that are probably a spelling mistake. HLint for Haskell is AMAZING, just so you know.
All the good editors support this in some form, including vim (http://bitbucket.org/tim_heap/linters.vim) and Sublime Text.
Written by Tim Heap
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Python
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#