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
If the fight continues this year, the iPhone 6s s...
Introduction to the training course content: From ...
The author of this article provides 8 ways (ideas...
This article was first published by Hunzhi (WeCha...
gossip Children who can talk happily and communic...
This year is an extraordinary year. Various compa...
In October, the article "Watching Douyin and...
Recently, GAC Group officially announced that its...
Reservation arrangements on the Chengdu New Tea w...
If you buy a 16GB iPhone, this means you’ll soon ...
In this era of paid knowledge , whether you are a...
The world is accelerating the construction of 5G ...
Summer is here, and Crocs are back. Although they...
Chinese name: Women's Prison Foreign name: Or...
There is a popular saying in the automotive indus...