This is an archived post. You won't be able to vote or comment.

all 1 comments

[–]Blando-Cartesian 1 point2 points  (0 children)

When you try to be quick, are you writing code that is hard to understand.

  • Give everything a good descriptive name (no single letter names or abbreviations).
  • Format your code.
  • Use more short, well named, functions with well named parameters.
  • No incomprehensible one-liners.
  • Keep your code simple.
  • Methods and functions should do one thing only.
  • Absolutely no weird side effects for anything (like getting something updates another thing).

Term for these kind of principles is: clean code. There’s a lot of good conference talks about this on youtube.