Scott on Writing

Musings on technical writing...

Why is Programming Fun?

I recently started reading Fred Brooks, Jr.'s The Mythical Man Month, an influential collection of essays on software project management.

In the introductory essay he has a paragraph that starts with the following words: "Why is programming fun? What delights may its practitioner expect as his reward?" He then goes on to list five reasons, in prose that is poetic:

First is the sheer joy of making things. As the child delights in his mud pie, so the adult enjoys building things... I think this delight must be an image of God's delight in making things, a delight shown in the distinctness and newness of each leaf and each snowflake.

Second is the pleasure of making things that are useful to other people. Deep within, we want others to use our work and to find it helpful. In this respect the programming system is not essentially different from the child's first clay pencil holder "for Daddy's office."

Third is the fascination of fashioning complex puzzle-like objects of interlocking moving parts and watching them work in subtle cycles, playing out the consequences of principles built in from the beginning. The programmed computer has all the fascination of the pinball machine or the jukebox mechanism, carried to the ultimate.

Fourth is the joy of always learning, which springs from the nonrepeating nature of the task. ...

Finally, there is the delight of working in such a tractable medium. The programmer, like the poet, works only slightly removed from pure thought-stuff. He builds his castles in the air, from air, creating by exertion of the imagination.

Of course, we all know that in addition to these joys that make programming fun, there are realities that subtract from the overall enjoyment. Brook addresses these later in the essay by enumerating the woes of programming. The first one dates Brooks's essays, which were written in 1975:

First, one must perform perfectly. ... If one character, one pause of the incantation is not strictly in proper form, the magic doesn't work.

While the programming language syntax rules are strict and literal, today's tools make this a non-issue. If I make a typo writing my code, Visual Studio underlines it with a squiggly. And the cacophony of information on the Internet provides a bounty of code snippets, tutorials, FAQs, and guides that virtually anyone these days can become a magician.

The next two woes Brooks lists are still applicable to today's programmers and are spot on.

Next, other people set one's objectives, provide one's resources, and furnish one's information. One rarely controls the circumstances of his work, or even its goal. ...

The next woe is that designing grand concepts is fun; finding nitty little bugs is just work. With any creative activity come dreary hours of tedious, painstaking labor, and programming is no exception.

The final woe Brooks lists is still applicable today, even more so than it was in 1975:

The last woe, and sometimes the last straw, is that the product over which one has labored so long appears to be obsolete upon (or before) completion.

For me, this is not a woe, as it does not subtract any fun from programming for me. Perhaps it's because I grew up with computers and the rapid and unceasing technology churn. It's second nature for me and most people whose birth date coincided with or came after the birth of the personal computer in the late 70s. But I can see an adult in 1975 would feel overwhelmed by the incessant improvements in technology, each new one rendering the older generation obsolete.

Brooks ends the essay on an upbeat note:

This then is programming, both a tar pit in which many efforts have floundered and a creative activity with joys and woes all its own. For many, the joys far outweigh the woes, and for them the remainder of this book will attempt to lay some boardwalks across the tar.

I'll leave you with some background on Fred Brooks:

  • He has the honor of having a "law" named after him - Brooks's Law states that "adding manpower to a late software project makes it later."
  • He founded the Department of Computer Science at the University of North Carolina in 1964, after leaving his job at IBM.
  • He received the highly prestigious Turing Award in 1999 for his contributions to computer architecture, operating systems, and software engineering.

posted on Wednesday, August 27, 2008 8:18 AM

Feedback

# re: Why is Programming Fun? 8/27/2008 12:35 PM Bryant

His paper "No Silver Bullet—Essence and Accidents of Software Engineering" is a remarkable work. I give a copy to non-IT coworkers when they don't understand why new feature ABC is going to take 2 days to add to application XYZ.

# re: Why is Programming Fun? 8/28/2008 6:27 PM Dave Schinkel

Programming can be fun IF:

1) The IT culture in which you work, your job allows the following

a) change
b) attention to best practices and always improving code
c) good communication and teamwork between developers

Otherwise if you are coding for a code-and-run shop who only cares about the fasted deadlines on the planet, programming becomes a nightmare.

so it depends on which context you put that in. Are you sitting at home coding for fun, or coding in a lousy shop where there is spaghetti code and you're not able to "enjoy" programming.

Fortunately I've seen a little bit of both.

# re: Why is Programming Fun? 10/16/2008 6:08 PM PG

Having had the privilege of meeting him in person at his son's residence, I can remember him as a very gentle and humble person, someone you can talk to for hours.

Title:  
Name:  
Url:
Protected by Clearscreen.SharpHIPEnter the code you see:
Comments   

My Links

Ads Via DevMavens

Archives

Post Categories

 

I am a Microsoft MVP for ASP.NET.
I am an ASPInsider.
<November 2008>
SMTWTFS
2627282930311
2345678
9101112131415
16171819202122
23242526272829
30123456

Comment Stats

DayTotal% of Total
Sunday 1986.9%
Monday 40314.1%
Tuesday 48216.8%
Wednesday 53118.5%
Thursday 55619.4%
Friday 51918.1%
Saturday 1776.2%
Total 2866100.0%

Hour1Total% of Total
12:00 AM 712.5%
1:00 AM 762.7%
2:00 AM 652.3%
3:00 AM 772.7%
4:00 AM 612.1%
5:00 AM 1154.0%
6:00 AM 1113.9%
7:00 AM 1645.7%
8:00 AM 1806.3%
9:00 AM 1545.4%
10:00 AM 1786.2%
11:00 AM 1846.4%
12:00 PM 1966.8%
1:00 PM 1796.2%
2:00 PM 1625.7%
3:00 PM 1344.7%
4:00 PM 1133.9%
5:00 PM 1003.5%
6:00 PM 953.3%
7:00 PM 1033.6%
8:00 PM 893.1%
9:00 PM 832.9%
10:00 PM 853.0%
11:00 PM 913.2%
Total 2866100.0%

Comments by Blog Entry Date/Time

Day Entry MadeAvg.Total
Sunday 5.18145
Monday 5.10362
Tuesday 4.28462
Wednesday 7.51653
Thursday 6.70643
Friday 5.32431
Saturday 5.00170
Total 5.682866

Hour1 Entry MadeAvg.Total
12:00 AM 5.0035
1:00 AM 1.002
5:00 AM 0.000
7:00 AM 6.3338
8:00 AM 4.72118
9:00 AM 6.04284
10:00 AM 6.12257
11:00 AM 4.23186
12:00 PM 6.75344
1:00 PM 3.05122
2:00 PM 5.29222
3:00 PM 8.60301
4:00 PM 3.7694
5:00 PM 5.86164
6:00 PM 4.56114
7:00 PM 9.15183
8:00 PM 8.42160
9:00 PM 5.00115
10:00 PM 6.3395
11:00 PM 4.5732
Total 5.682866

Learn More About Comment Stats
1 - All times GMT -8...


Blog Stats

Favorite Web Sites

My Books

My MSDN Articles