How to Write Clean Code - 2018-10-10 21:19:51

TL;DR Some simple practices to help you write reasonably clean code, even when you’re in a hurry: Split your code into small and simple functions Avoid too much indentation Use good variable and function names Don’t repeat yourself Do the easy optimizations Practice your trade Background Writing clean and elegant code is not easy, especially when you’re under pressure to deliver on a deadline. Sometimes you have to cut corners and whip something up that just works.