Someone recently emailed me asking me how to write good code. I was feeling a bit under the weather, so I rambled a bit. I’m feeling better now, so I wanted to share the following thoughts because I think they’re an interesting starting point for this important discussion. At the time, I wrote:
That’s what I thought of. What do you want to add, delete, or modify about my list of “how good code is made”? I look forward to seeing your thoughts. renew Seivan Heidari suggested adding: Good code does not expose internal implementation details when exposed as an API to the outside world. Anonymous suggested adding: Good code is natural. Good code does what you need it to do and is delivered on time. The rest is bullshit. Dave DeLong suggested adding: Good code inspires awe in those who read it, and inspires those who read it to write good code of their own. Paul Cantrell suggested adding: Good code pays attention to trade-offs. It makes trade-offs based on engineering, not absolute dogma. It also doesn't make tools or techniques in-group status markers. Rainer Brockerhoff suggested adding: Good code can be easily reused (even after several years) and can be extended or adapted with just a few lines of code. |
>>: Next time your boss asks you to refactor your system, let him read this article
According to the ban on the 18th, the 20th was or...
Douyin advertising, Douyin promotion Dou+ is Douy...
Most people have this understanding: coarse grain...
In iOS development, it is easy to write an App, b...
According to foreign media reports, Tesla's C...
The era of content-based e-commerce has quietly a...
The iPhone is criticized every year, so why does ...
[Smart Farmers] Are all colorful fruits and veget...
Do you think that Xiaoguan Tea became popular all...
iOS is a mobile operating system developed by App...
How popular is WPS in the country? An office soft...
Google is in talks with Chinese internet company N...
As the temperature continues to rise, it is a goo...
With the arrival of Teachers' Day, there must...
This article is reproduced from the public accoun...