| Essay 35 | Teach with Obvious Examples |
For newbies, good examples are devoid of abstractions. They are concrete and clearly—almost too clearly—convey the intentions of what we’re teaching. They provide good context.
On the other hand, poor examples are littered with abstractions and vague differentiations. Here’s a classic case of such an example.
When Clarity Met Sally
Imagine we’re teaching a beginning programmer the basics of object-oriented programming. We might start, naturally, by discussing class constructors and object instantiation. At some point in our talk, we scribble a line of code like this:
| | Object myObject = new Object(); |
For us, this is a ho-hum line of example code. It says to create an instance of an object of type Object ...
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.
Read now
Unlock full access