Comment on Ask HN: How do you write code so it's easy to change?Comments−gitgud6yHere's a couple of mantras to write clean code:- Code is written once and read at least once, have empathy for the readers...- If code cannot be understood, it cannot be changed safely...- Less dependencies on other code, makes code easy to understand...- The smaller the context is, the easier it is to understand the code...
Comments
Here's a couple of mantras to write clean code:
- Code is written once and read at least once, have empathy for the readers...
- If code cannot be understood, it cannot be changed safely...
- Less dependencies on other code, makes code easy to understand...
- The smaller the context is, the easier it is to understand the code...