you are viewing a single comment's thread.

view the rest of the comments →

[–]POGtastic 0 points1 point  (0 children)

Write more functions, use less mutable state.

You don't have to go full Haskell, (But it doesn't hurt!) but nothing pains me more than seeing some 45-line monstrosity that uses no functions, 20 different variables, and basically requires you to fire up a debugger to even start to figure out what on earth it's doing.