If you can’t provide a convincing before/after code for your pattern, you’re selling snake oil.
Welcome!
We agree with David Heinemeier Hanson.
If you propose a programming technique, you should be able to demonstrate as concisely as possible how your proposal is better than what was there before. The before/after approach puts all the facts on the table: you can directly compare the new code to the old code. Only then can you make an informed decision about which one’s better.
The same holds true when you’re learning how to program. Comparing good code to bad code is really helpful when you’re trying to figure out how to code in Java.
We used to teach programming at a university for over six years. After a few lectures, ...
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