Skip to Content
97 Things Every Programmer Should Know
book

97 Things Every Programmer Should Know

by Kevlin Henney
February 2010
Beginner
255 pages
6h 10m
English
O'Reilly Media, Inc.
Content preview from 97 Things Every Programmer Should Know

Chapter 58. A Message to the Future

Linda Rising

image with no caption

MAYBE IT’S BECAUSE MOST OF THEM ARE SMART PEOPLE, but in all the years I’ve taught and worked side by side with programmers, it seems that most of them thought that since the problems they were struggling with were difficult, the solutions should be just as difficult for everyone (maybe even for themselves a few months after the code was written) to understand and maintain.

I remember one incident with Joe, a student in my data structures class, who had to come in to show me what he’d written. “Betcha can’t guess what it does!” he crowed.

“You’re right,” I agreed, without spending too much time on his example and wondering how to get an important message across. “I’m sure you’ve been working hard on this. I wonder, though, if you haven’t forgotten something important. Say, Joe, don’t you have a younger brother?”

“Yep. Sure do! Phil! He’s in your Intro class. He’s learning to program, too!” Joe announced proudly.

“That’s great,” I replied. “I wonder if he could read this code.”

“No way!” said Joe. “This is hard stuff!”

“Just suppose,” I suggested, “that this was real, working code, and that in a few years, Phil was hired to make a maintenance update. What have you done for him?” Joe just stared at me, blinking. “We know that Phil is really smart, right?” Joe nodded. “And I hate to say it, but I’m pretty smart, too!” Joe grinned. “So if I can’t ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

40 Algorithms Every Programmer Should Know

40 Algorithms Every Programmer Should Know

Imran Ahmad
Five Lines of Code

Five Lines of Code

Christian Clausen

Publisher Resources

ISBN: 9780596809515Errata PageSupplemental Content