DEV Community

loading...

Discussion on: Keeping Your Code Simple

Collapse
vonheikemen profile image
Heiker

A long time ago I read a post here on dev.to about the danger of writing clever code. The main idea of the article was this:

If you write clever code, the bugs that will come out of it will be clever.

I always try to write code that is "clean" but I know that is impossible. My perception of what is simple and clean will never be the same as other people (or even my future self).

What I do is avoid clever solutions. Most of the time the "cleverness" in the code is unnecesary complexity.

Collapse
joelnet profile image
JavaScript Joel

A long time ago I read a post here on dev.to about the danger of writing clever code.

Maybe it was this article you read dev.to/joelnet/keep-your-code-dumb-3c