Skip to content

Comment on Ask HN: How do you write code so it's easy to change?

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...

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.