Rob Cook


Home | GitHub | Dev.to | Donate | Contact

Good enough


2025-01-16

How good does code need to be? This question came to mind whilst re-reading one of Fabien Sanglard's excellent game engine articles. In it, he disects the code for the classic game Duke Nukem 3D. Among such revelations are:

Try getting that past a code review in today's workplace!

Despite these unflattering traits, the game was wildly successful. So just how good does your code need to be? Are we doing it wrong these days by focussing so much on code quality?

There's another article that comes to mind, that compared the C/Unix school to the more academically inclined LISP school. The former had plenty of "flaws" but produced wildly successful software. It wasn't perfect, it was just good enough.

Perhaps today's focus should be on getting the job done. Perfect being the enemy of good and all that. Maybe letting a few imperfections past a code review won't be the end of the world. Software just needs to be good enough for the task at hand.

end