The 10 commandments of Egoless programming
Tags: softwareengineering, businessengineering, egolessprogramming, technicalwriting
Published: 2024-01-01 15:52:01

## Background

The late basketball Hall of Famer [Kobe Bryant](https://twitter.com/kobebryant) while sharing life lessons drawn from his famous [Mamba](https://sportsacademy.us/) Mentality had this to say;-

> *“It’s not about you, man. Like ok, you feel embarrassed you are not that important like, get over yourself. That’s where you go,” —* [*Kobe Bean Bryant*](https://en.wikipedia.org/wiki/Kobe_Bryant) *(Deceased)*

And this very much applies to software development as well.

As a Tech Engineer, I couldn’t agree more that reflecting on the 10 commandments of Egoless Programming every now and then has a way of bringing out the best aspects of technical professionalism.

## Introduction

The 10 commandments of Egoless Programming was inspired by the book, [*The Psychology of Computer Programming*](https://www.goodreads.com/book/show/1660754.The_Psychology_of_Computer_Programming), first released in the 1970s, where Gerald Weinberg coined the term *“egoless programming”*. What Weinberg wrote in that book was a set of guidelines for developers working in a team environment to keep their egos separate from their code.

It is a must-read piece for developers, Software Engineers, IT Project Managers, and Tech Leads to say the very least.

## The Commandments

Today’s ever-growing technology space is continually being dominated by more developers & technical thinkers/practitioners than ordinary personnel which is a big reason why more than ever the *“*[*10 commandments of Egoless programming*](https://blog.codinghorror.com/the-ten-commandments-of-egoless-programming/)*”* should be the moral guide for all those seeking to solidify a career in software development/engineering and other applications or system development related endeavours. So let’s look at them.

#### 1. Understand and Accept That You Will Make Mistakes.
    

The point is to find them early before they make it into production. Except for a few incidences, mistakes are rarely fatal in our industry. Therefore, we can, and should, learn, laugh, and move on.

#### 2. You Are Not Your Code
    

Remember that the entire point of a review is to find problems, and problems will be found. Don’t take it personally when one is uncovered.

#### 3. No Matter How Much “Karate” You Know, Someone Else Will Always Know More.
    

Such an individual can teach you some new moves if you ask. Seek and accept input from others, especially when you think it’s not needed.

#### 4. Don’t Write Code Without Consultation.
    

There’s a fine line between “fixing code” and “rewriting code.” Know the difference, and pursue stylistic changes within the framework of a code review, not as a lone enforcer.

#### 5. Treat people who know less than you with respect, deference & patience.
    

Nontechnical people who deal with developers regularly almost universally hold the opinion that we are prima donnas at best and crybabies at worst. Don’t reinforce this stereotype with anger and impatience.

#### 6. The only constant in the world is change.
    

Be open to it and accept it with a smile. Look at each change to your requirements, platform, or tool as a new challenge, not as some serious inconvenience to be fought.

#### 7. The only true authority stems from knowledge, not from position.
    

Knowledge engenders authority, and authority engenders respect — so if you want respect in an egoless environment, cultivate knowledge.

#### 8. Fight for what you believe, but gracefully accept defeat.
    

Understand that sometimes your ideas will be overruled. Even if you do turn out to be right, don’t take revenge or say, “I told you so” more than a few times at most, and don’t make your dearly departed idea a martyr or rallying cry.

#### 9. Don’t be the guy in the room.
    

Please do not be the guy coding in the dark office emerging only to buy cola. The guy in the room is out of touch, out of sight, and out of control and has no place in an open, collaborative environment.

#### 10. Critique code instead of people.
    

Be kind to the coder, not to the code. As much as possible, make all of your comments positive and oriented to improving the code. Relate comments to local standards, program specs, increased performance, etc.

## Conclusion

I have read [*The 10 commandments of Egoless programming*](https://blog.codinghorror.com/the-ten-commandments-of-egoless-programming/) and I must say, those who spend time reading these simple guidelines will find value in their work as they lead a technically sound professional career.