DEV Community

Discussion on: My Top 10 Programming Proverbs

Collapse
 
rpalo profile image
Ryan Palo • Edited

I like

Premature optimization is the root of all evil.

Followed by

If you say you don’t like code because it is too slow, I say show me the benchmark that proves the extra complexity is worth it.

And

Think twice about writing code for potential future features. It usually makes your current feature code more complicated, and you double your work if you are wrong about what features are coming.

And slight shameless self-quote:

Write code using methods you wish you had. Then go write those methods.

Collapse
 
antjanus profile image
Antonin J. (they/them)

Go to the quotes repo and open up a PR for that self-quote!

Collapse
 
andreasjakof profile image
Andreas Jakof • Edited

That’s how I write code. 😎
First run is usually something like Pseudocode in VS, using methods that not yet exist but lining the rough path.

And then the tedious work.
Next run, the same for each of the not yet existing methods.
And so on... until all methods do, what they are supposed to.