Home About The Codist RSS Feed

All I Need To Know To Be A Better Programmer I Learned In Kindergarten
Apr 05, 2007 11:01 perm link Readers: 51072

Programming is complicated stuff, but a lot of what makes a good programmer isn't all that different from the earliest learning we did in school.

The inspiration for this list came from the essay "All I Really Need to Know I Learned in Kindergarten" by Robert Fulghum at http://www.robertfulghum.com/.

1. Share everything.

Use open source where possible, and contribute to it when you are able. The collective wisdom of the entire community is better than the limited vision of a few large companies.

2. Play fair.

Give other technologies, frameworks, methodologies and opinions a chance. Don't think your choices are the only ones that work. The other choices may very well be better than yours; it doesn't hurt to check them out with an open mind.

3. Don't hit people.

Like #2, don't attack people just because they happen to use .Net or Java or PHP (I learned my lesson there!). Sometimes they might be more usable and useful than you think. You can learn a lot more from someone when you are not pounding them to a pulp.

4. Clean up your own mess.

Strive to deliver code that works. Never expect QA to find all of your bugs for you. Test your code often, both narrowly and broadly.

5. Don't take things that aren't yours.

Follow the licenses for stuff you use, don't just steal it and claim innocence later.

6. Say you're sorry when you hurt somebody.

Code reviews are a good but rarely used idea. Mentoring programmers with less experience than you helps the entire team. Just don't criticize people openly. Learning is not belittling people. Sometimes people will listen and sometimes they won't. Sometimes you might learn a lot from people you think are inferior to you.

7. Wash your hands before you eat.

Try to understand things before you set out to write code. Do prototyping, check out examples on the web, talk with other folks who do it, or even just play around. Architecting something you've never done before or worked with is tough cold turkey. The end result will work much better if you start with a clue.

8. Flush.

Don't be afraid to replace, rewrite, refactor or give up on something that is crap. Sometimes "when in doubt throw it out" is the best philosophy. Never fall in love with your code.

9. Warm cookies and cold milk are good for you.

Yes, programmers should be well supported in their work environment. A good chair, a quiet place to work, a decent computer and tools that make coding better and easier are essential. Managers should act as umbrellas to keep the crap from flowing down to the programmers. As a programmer, don't accept a life of lowly servitude. If the employer treats you poorly then find one who treats you better.

10. Live a balanced life - learn some and think some and draw and paint and sing and dance and play and work every day some.

I like Google's deal where 20% of your time is devoted to whatever you think it worth working on. Employers should (discretely) offer nap rooms or game rooms or some kind of chillout environment. Programming is hard mental work; sometimes you really need to give your brain a rest. Refuse to routinely work 80 hour weeks as the quality of your work will wipe out any gains in hours.

11. Take a nap every afternoon.

Working 24 hours a day doesn't make you more productive. Take breaks, go home, take a real nap. Often I have solved nasty problems by going home, and the solution came to me as I was driving away, or the next morning.

12. When you go out in the world, watch out for traffic, hold hands and stick together.

Community is good for the soul; read blogs, learn about new languages or frameworks, participate in discussions and see what other people are doing. Just doing your job isn't going to make you a better programmer. Keeping your head down means you will eventually be obsolete.

13. Be aware of wonder. Remember the little seed in the Styrofoam cup: the roots go down and the plant goes up and nobody really knows how or why, but we are all like that.

Every day something new and wonderful appears in the programming (and technology in general) world. Check it out. Be amazed. Learn something new everyday. It keeps your mind fresh, your options open, and your skills up to date. If you think programming is boring or dead then you may need a new career.

14. Goldfish and hamsters and white mice and even the little seed in the Styrofoam cup - they all die. So do we.

Code goes stale and dies. Sometimes you just have to bury it and do it again. Fight against keeping terrible code bases around just to save money.

15. And then remember the Dick-and-Jane books and the first word you learned - the biggest word of all - LOOK.

You won't learn anything at all if you don't try. Everything I learned in programming came from trying new stuff and generally playing around. Every morning I read a lot of sites to see what is happening in the programming world; I have been doing this since my first job in the early 80's (when it meant reading catalogs and magazines).

See, programming is easy when you look at it through 5-year-old eyes.

My Tags:

  • Hassan Omar: Apr 06, 2007 09:41

    Good article ,,, Specially 7,8.

    Thanks..

  • Shawn the Rock: Apr 06, 2007 11:42

    It's good.I agree with you even Im a newbie programmer.Bible taught us all of you mentioned but we get lost day by day.Dont let us dead inside.

  • Jason: Apr 06, 2007 15:53

    Refreshing post thanks. I wish more people were as positive.

  • Matt Blodgett: Apr 06, 2007 19:09

    Great post. It's nice to see positive stuff like this. Thank you.

  • mirko¸: Apr 06, 2007 22:33

    Fantastic. This is post from experience men.Specially 11 - non stop work killing people.

  • ESN: Apr 06, 2007 22:43

    Good one!

  • hafizan: Apr 06, 2007 23:14

    Yes,Thats true,Just be fun like kids,or like lego but sometimes you need remember

    this.Idea like non programmer like me are no limit vs u programmer too technical detail and spoil.

    If i a boss i do the same things as google.Get a life ma.Problem come with real life and situation.

  • JoeBlow: Apr 06, 2007 23:26

    Hey, I got to number 15, and I thought to myself I should probably be reading more. Can any of you suggest any good sites and blogs for the programming world?

    Thank you!

  • Jack: Apr 07, 2007 00:55

    I worked for 20 years for a company that does everything the wrong way. It employs thousands of programmers and serves some of the largest companies in the world. It makes a lot of money and pays quite well. The code produced there is pure crap and a programmer's life there is hell on earth. That's why everybody wants to get ahead, stop coding, become managers and scare the shit out of coders. There are some people there who think coding can be fun though, and that's because they do open source on their free time.

  • well done and read: Apr 07, 2007 01:57

    well expressed

  • David J. Smith: Apr 07, 2007 02:08

    I like it.

  • pat: Apr 07, 2007 02:35

    Thanks for that, a pick me up at the end of an all nighter.

  • JoshC: Apr 07, 2007 03:23

    Really appreciate all the helpful insights and reminders provided here - I hope to use it as a guide to my starting career as a software programmer. Thanks.

  • erik: Apr 07, 2007 03:54

    nice article and good ideology...

  • Matt Jaynes: Apr 07, 2007 06:40

    Woohoo! Awesome article. You really put together some awesome points here. Kudos.

  • UserError: Apr 07, 2007 08:19

    great list you've got here. can't say i've anything to add ;)

    @JoeBlow, i've found www.thedailywtf.com to be a nice dose of daily programming mojo

  • flavin: Apr 07, 2007 11:56

    Waooo very good article, thanks for tips.

  • Friedbeef: Apr 07, 2007 23:59

    Excellent piece!

  • lucifer_v: Apr 08, 2007 03:49

    good idea, i go to sleep now..

  • Daniel: Apr 09, 2007 11:13

    Very nice job. Every programmer should read these.

  • Anand Muthu: Apr 11, 2007 04:02

    Looks more *Concrete* Stuff. Thanks.

  • mihai: Apr 11, 2007 05:38

    You have some good points there, really simple and important to keep in mind.

    Thank you.

  • Sanket: Apr 12, 2007 04:05

    Really good

    Thanks

  • Nenad Ristic: Apr 12, 2007 05:17

    This is brilliant

  • HT: Apr 13, 2007 14:09

    Super!

  • Invincible: Apr 15, 2007 01:17

    Good article...will help a lot.

  • Gk: Apr 15, 2007 22:58

    A very simple and perfect article

    Will help a lot for .....*Programmers*

  • Manish Bharucha: Apr 15, 2007 23:13

    A very good article. Motivating. Thanks

  • engtech: Apr 16, 2007 12:07

    Yup, that just got me to subscribe to your feed.

  • Joao Inacio: Apr 21, 2007 04:23

    I can see myself in some of these points!

    Brilliant indeed

  • Surendra: Apr 22, 2007 21:48

    Brilliant and inspiring . I like it

  • Vanderleun: Apr 25, 2007 11:01

    I know for a fact that Fulghum really likes this article.

  • Motorcycle Guy: Apr 25, 2007 16:54

    I've seen titles like this alot lately lol. I wonder which one was the original. I remember my gf wrote a piece similarly titled talking about how pluto isn't a planet now. Anyway good article.

  • MVp: May 04, 2007 23:28

    TOO GOOOOOOOOOOOOOOD

    THanks

  • Manish: Oct 21, 2007 22:53

    Really nice article.

    Thanks

  • Steve McGrath: Dec 25, 2007 11:50

    Came from ProBlogger and was worth the read.

    Great post!

  • Steve McGrath: Dec 25, 2007 11:51

    I forgot: Merry Christmas to all!

  • Ben: Dec 25, 2007 15:51

    Great post, I also came over here from Problogger and I am glad I did. In fact your post has inspired me to write one similar to yours and expand on the points a little bit.

    Thanks

  • Add Comment

Name:


Optional URL:


Comment:


Save Cancel

Copyright © 2007 By Andrew Wulf