Last Updated: February 25, 2016
·
2.529K
· tim_heap

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.

Have a fresh tip? Share with Coderwall community!

Post
Post a tip
Did you know?

JavaScript on a page runs with the privileges of that origin. One altered library, tag manager, or snippet can read inputs, change what people see, and call your APIs as the user.

Security insights from Cside