site Search Results
Results for: Andrew Koenig
Order the NEW
Discounted Dr. Dobb's Developer Library DVD 6
Purchase the fully searchable DVD for $59.95 - a 60% discount! Features
21 years of Dr. Dobb's Journal, 15 years of Sys Admin
magazine, 14+ years of C/C++ Users Journal, 1 year worth of Dr.
Dobb's Digest, podcasts, videos and more! Order Now.
A funny story about documentation--with a moral
- Design
The Downside of Safety
- Design
What Dijkstra said was harmful about goto statements
- C/C++
Gliders, Hasslers, and the Toadsucker: Writing and Explaining a Structured Excel Life Game
"Have we forgotten what's wrong with goto statements?" asked Andrew Koenig recently. Bradford Miller had a pithy reply: you need too many "thumbs" when reading code. Better to use a language with proper control structures, not bodge them from labels that will, for all a reader can tell, leave you leaping around your program like a flea on a dog full of coffee. This reminded me of spreadsheets, which unrestricted cell references can make just as unreadable. So I'm going to show how to write and document a spreadsheet in a high-level language I've implemented: Excelsior, which I've made available here. The spreadsheet runs Life; linking a clear English-and-equations account of Life with Excel's graphic appeal, it may interest school maths teachers, as well as those seeking to write and document safer spreadsheets.
- DesignHave we forgotten what's wrong with goto statements?
- Design
*Four* Loops and the One I'm For
- Design
A straightforward solution to the 2-3-5 problem
- Design
How do we test a solution to the 2-3-5 problem?
- Design
Wow!
- Design
The 2-3-5 problem -- a first look at some solutions
- Design