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
Wang Wei's Zero-Based Commercial Short Video ...
Once there is an incident and a discussion, a fir...
How to increase the popularity of Douyin live str...
1. What is operation in your mind? The operation ...
How to use copywriting to drive traffic to matern...
I often hear advertisers complain that SEM promot...
As WeChat and Weibo operations become increasingl...
" Laso " receives cosmic rays from W51 ...
As we all know, data tracking and conversion is a...
One of the new features of iOS 12, which will be ...
Next, let’s talk about the design forms of market...
Why would you give up placing an order? There are...
Author | jzg, a senior front-end development engi...
In 2022, three physicists were awarded the Nobel ...
Lao Wang from the west of the village "2022 ...