Maybe you've never written a bad line of code. It's possible, but unlikely in reality. The reality is that, like every other programmer on the planet, you will produce code that has security holes, UI elements that move around, etc. This doesn't make you a bad developer. It's just that you're human - a creature that is bound to make mistakes. It is this "human nature" flaw that every developer has that drives the best developers to take responsibility for the shortcomings of the code and the underlying infrastructure and act with preparation and planning. Here is what they will do.
Assumptions A few years ago, Netflix open-sourced Chaos Monkey and the rest of the Simian Army, a suite of tools for managing cloud-based software. Essentially, Chaos Monkey ranges across Amazon Web Services infrastructure, terminating instances at will. It's basically a way to prepare for the worst by creating the worst possible scenario. As Netflix's Cory Bennett and Ariel Tseitlin wrote in a blog post at the time of the release, "Code will fail, and the less you expect it to fail or the less prepared you are, the more likely it will fail. If your application cannot tolerate instance failures, would you rather be called in at 3 a.m. or stay in the office all night?" By simulating failures in unpredictable ways, Netflix forces us to focus on the resilience of our infrastructure. Rather than assuming the worst, we can prepare for the worst. That way we can happily move on to the next process. test Above we talked about a great way to improve infrastructure, but what about code? Jeff Atwood, a programmer, has the answer: "You need to tweak your code." He writes:
In practice, this means that "programmers need to have at least some understanding of common errors, however, many programmers often do not do so, or even do the opposite." This means that your responsibility as the "God of Programming" also includes becoming the "God of Testing", actively eliminating errors in the code by "tormenting" it. Andre Medeiros added that we should be "getting better" at debugging because developers need to do more with their code. “To prevent bugs, you need to write code that is simple for any programmer to understand. To fix bugs, you need to understand your code. To understand your code in detail, you need to enumerate and verify your assumptions, and if necessary, build debugging tools.” Skyscrapers above slums Of course, one of the biggest problems with our code is that it inherits from so much other code. Especially in established enterprises, we often build on top of old code, which leads to all kinds of downstream problems. Here is a great description from Zeynep Tufekci:
It was clear that there was nothing we could do to improve the situation unless we worked on removing the technical debt. But maybe, just maybe, in the process of willingly tinkering with your code, you’ll discover how important it is to eliminate technical debt. |
<<: Talking about iOS large-scale project development
>>: After failure in India, Google's Android One is set to fail in Africa
“Every time I write a creative idea, I feel so pa...
HandlerThread is a thread class used in Android d...
What factors do you usually consider when buying ...
This article was first published by Hunzhi (WeCha...
Bloomberg cited people familiar with the matter a...
In advertising, high conversion costs, small conv...
As a benchmark in the field of virtual reality, e...
In the process of development, Internet companies...
Basic introduction of PP Assistant promotion plat...
This article mainly discusses the key delivery in...
How to prove that a product is popular? From bein...
It has become a consensus that traffic is becomin...
Since its preview, the reputation of "Dying ...
As a way of life for people to cultivate their ch...
[[121165]] Introduction In March this year, Googl...