Make It Read Like English
1 min read
There is a lot of advice around software engineering best practices, but I think it can be summed up into "Make It Read Like English".
I'd bet you've heard of most of these "best practices" throughout your career:
- Don't Repeat Yourself (DRY)
- Keep It Simple Stupid (KISS)
- Single Responsibility Principle (SRP)
- Pure Functions/Immutability/Functional Programming
There is nothing wrong with any of these principles. They all have their place in right contexts. It's just a lot to remember.
My favorite "best practice" is the simple statement "Make It Read Like English". I'm not sure where I first heard this, but it's been a guiding principle of how I've been writing code for many years.
The concept is simple. As I read through the code, I want it to read like simple English. By striving for this simple idea, the code you right will automatically follow many of the principles outlined above.
Make Your Code Read Like English. That's it.
Code With Love
Take a break from the internet for a few minutes and go show love to someone. Remind a friend or family member why you are grateful to have them in your life. Smile at a stranger. It's the little things that make the biggest difference.
Remember ... When you code with love, you can change the world.
Now go change the world!
- Personal experience