DEV Community

Discussion on: When is your code 'good enough'?

Collapse
 
bgadrian profile image
Adrian B.G.

What other said, mostly:

  • leave the code better then I found it
  • it works and solves the problem
  • passes tests and my own critique
  • add a salt of defensive programming and security concerns

If time allows or special cases:

  • profiling and performance upgrades
  • documentation
  • more extensible code/good practices

If it is a new feature on old code, before all that I have 2 extra steps:

  • delete dead code
  • refactor so the new feature can be easily added