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
We once predicted that SSD would replace HDD and ...
As a meat lover, I believe everyone must love por...
Seven Paint 2022 Tiktok From Novice to Elite Prac...
With the progress of science and technology, huma...
On the morning of November 22, after several days...
This is a good sign for 2016. What apps do you us...
Learn SEO with zero basic knowledge and fun, deton...
◎ Science and Technology Daily reporter Tang Fang...
In recent times, Alibaba has been adept at playin...
This is a golden age of creativity. We believe th...
With the further deepening of regulation and cont...
Recently, market research firm Gartner released a...
Recently, six departments in Shenzhen jointly iss...
Four national departments jointly issued a docume...
People in the industry all know something about t...