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
[[225690]] In the strategic layout of enterprise ...
1. China Telecom’s “Flow Treasure” and China Unic...
In the daily work of SEO, if someone talks about ...
Since Xingyuan opened up the recruitment of blogg...
Recently I saw a growth-related topic on Zhihu, w...
What does an APP need to do to retain users? 1. D...
Do you lack motivation to lose weight? What if lo...
The short video industry still has great potentia...
Course Contents: Section 1: Rising Point System.m...
Since last year, many merchants should have disco...
“Weijing wants to be the Alibaba of VR.” At a med...
Whether for marketers or operators , advertising ...
Written at the beginning: "Half of my advert...
In a video, we can see the following scene: A chi...
During the Spring Festival holiday, you may have ...