Egoless Programming: The Ten Commandments

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    Egoless Programming: The Ten Commandments

    The following text is not mine; it's a summary of Weinberg's essay on
    egoless programming; read it and realize how true it all is.

    The Ten Commandments

    1) Understand and accept that you will make mistakes. The point is to find
    them early, before they make it into production. Fortunately, except for the few
    of us developing rocket guidance software at JPL, mistakes are rarely fatal in
    our industry, so 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 rewrite 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, and patience.
    Nontechnical people who deal with developers on a regular basis 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." Don't 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.
  • kadghar
    Recognized Expert Top Contributor
    • Apr 2007
    • 1302

    #2
    I thought i had no religion at all. Thanks for the change.

    Comment

    • numberwhun
      Recognized Expert Moderator Specialist
      • May 2007
      • 3467

      #3
      Originally posted by kadghar
      I thought i had no religion at all. Thanks for the change.
      Who ever said coding was a religion? I consider it a highly evolved art form that has a plethora of form, function and beauty.

      And yes, Thank You JosAH for those awesome words of wisdom. Shall we carry them down and spread their word?

      Comment

      • JamieHowarth0
        Recognized Expert Contributor
        • May 2007
        • 537

        #4
        They are awesome words of wisdom which will be carried forward into an ever-evolving business world which demands more for less...!

        medicineworker

        Comment

        • Ramola
          New Member
          • Sep 2007
          • 35

          #5
          I am a beginner .......
          So unintensionaly I have done some of the things tht I shouldnt have otherwise ,
          and more importantly i've realized it only because of those "words of wisdom "
          So ,Jos ...........Than ks alot !


          kind regards,
          RM

          Comment

          • samatair
            New Member
            • Nov 2007
            • 61

            #6
            Thanks for the wonderful thoughts from a wonderful mind. Thank u sooo much..

            Comment

            • cristigreen
              New Member
              • May 2022
              • 1

              #7
              I think you can add this thesis:
              1. If something is work, don touch it.

              And another one:
              1. If something don't work, try to restart it.

              Comment

              Working...