An Interest In:
Web News this Week
- April 2, 2024
- April 1, 2024
- March 31, 2024
- March 30, 2024
- March 29, 2024
- March 28, 2024
- March 27, 2024
May 20, 2022 06:51 pm GMT
Original Link: https://dev.to/sublimegeek/lets-get-one-thing-straight-code-is-read-by-humans-interpreted-by-machines-4pnm
Let's get one thing straight: Code is read by humans, interpreted by machines
It doesn't matter how eloquent your code is or how you turned a bunch of code into a one-liner. If you are the only one who can read the code, have someone else go find a manager or executive...because it's their problem now.
Spell. Out. Your. Code.
Make it readable. Add comments, abstract it out into functions that read like a sentence.
Because at the end of the day, humans have to maintain it. Machines interpret it. So as long as the logic is sound, make it easy and pleasant to read.
Original Link: https://dev.to/sublimegeek/lets-get-one-thing-straight-code-is-read-by-humans-interpreted-by-machines-4pnm
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To