
The Pragmatic Programmer: From Journeyman to Master
by Dave Thomas
"The Pragmatic Programmer: From Journeyman to Master" by Dave Thomas offers essential insights into software development, emphasizing a pragmatic approach to programming. Central themes include the acceptance of imperfection in software,acknowledging that perfect code is unattainable allows developers to focus on continuous improvement rather than chasing an elusive ideal. The concept of "Kaizen," or continuous small improvements, is highlighted as crucial for both skill development and project evolution. Thomas encourages programmers to not be constrained by existing code or historical decisions, advocating for refactoring when necessary, even if it impacts schedules. He underscores the importance of effective communication and collaboration with users to manage expectations and create delightful surprises in software delivery. The book also stresses the significance of meaningful naming conventions, the power of tools in enhancing productivity, and the importance of maintaining good regression tests to facilitate confident refactoring. Programmers are compared to artists, as both disciplines require a balance of creativity and critique, with the reminder that one must know when to stop adding complexity. Ultimately, the book advocates for a mindset of ongoing learning and adaptation, likening programmers to medieval craftsmen whose techniques may evolve, but whose dedication to quality craftsmanship remains timeless. By nurturing both technical skills and effective communication, developers can become masters in their craft.
30 popular highlights from this book
Key Insights & Memorable Quotes
Below are the most popular and impactful highlights and quotes from The Pragmatic Programmer: From Journeyman to Master:
The greatest of all weaknesses is the fear of appearing weak.
Don't be a slave to history. Don't let existing code dictate future code. All code can be replaced if it is no longer appropriate. Even within one program, don't let what you've already done constrain what you do next -- be ready to refactor... This decision may impact the project schedule. The assumption is that the impact will be less than the cost of /not/ making the change.
You Can't Write Perfect Software. Did that hurt? It shouldn't. Accept it as an axiom of life. Embrace it. Celebrate it. Because perfect software doesn't exist. No one in the brief history of computing has ever written a piece of perfect software. It's unlikely that you'll be the first. And unless you accept this as a fact, you'll end up wasting time and energy chasing an impossible dream.
An investment in knowledge always pays the best interest.
Tools amplify your talent. The better your tools, and the better you know how to use them, the more productive you can be.
Kaizen" is a Japanese term that captures the concept of continuously making many small improvements.
Great software today is often preferable to perfect software tomorrow.
Names are deeply meaningful to your brain, and misleading names add chaos to your code.
The editor will be an extension of your hand; the keys will sing as they slice their way through text and thought.
Don't gloss over a routine or piece of code involved in the bug because you "know" it works. Prove it. Prove it in this context, with this data, with these boundary conditions.
In some ways, programming is like painting. You start with a blank canvas and certain basic raw materials. You use a combination of science, art, and craft to determine what to do with them. You sketch out an overall shape, paint the underlying environment, then fill in the details. You constantly step back with a critical eye to view what you've done. Every now and then you'll throw a canvas away and start again. But artists will tell you that all the hard work is ruined if you don't know when to stop. If you add layer upon layer, detail over detail, the painting becomes lost in the paint.
We who cut mere stones must always be envisioning cathedrals. —Quarry worker's creed
Every day, work to refine the skills you have and to add new tools to your repertoire.
One hundred years from now, our engineering may seem as archaic as the techniques used by medieval cathedral builders seem to today's civil engineers, while our craftsmanship will still be honored.
A good idea is an orphan without effective communication.
Don't leave "broken windows" (bad designs, wrong decisions, or poor code) unrepaired. Fix each one as soon as it is discovered. If there is insufficient time to fix it properly, then board it up. Perhaps you can comment out the offending code, or display a "Not Implemented" message, or substitute dummy data instead. Take some action to prevent further damage and to show that you're on top of the situation.
All software you write will be tested—if not by you and your team, then by the eventual users—so you might as well plan on testing it thoroughly.
If you work closely with your users, sharing their expectations and communicating what you're doing, then there will be few surprises when the project gets delivered. This is a BAD THING. Try to surprise your users. Not scare them, mind you, but /delight/ them.
The amount of surprise you feel when something goes wrong is directly proportional to the amount of trust and faith you have in the code being run.
By coding at a higher level of abstraction, you are free to concentrate on solving domain problems, and can ignore petty implementation details.
People find it easier to join an ongoing success. Show them a glimpse of the future and you’ll get them to rally around.[7]
In some ways, programming is like painting. You start with a blank canvas and certain basic raw materials. You use a combination of science, art, and craft to determine what to do with them.
Programmers are constantly in maintenance mode.
Just as in financial investing, you must invest in your knowledge portfolio regularly.
In an article in the April 1999 CACM, Robert Glass summarizes research that seems to indicate that, while code inspection is effective, conducting reviews in meetings is not.
There is a simple marketing trick that helps teams communicate as one: generate a brand. When you start a project, come up with a name for it, ideally something off-the-wall. (In the past, we've named projects after things such as killer parrots that prey on sheep, optical illusions, and mythical cities.) ...Use your team's name liberally when talking with people. It sounds silly, but it gives your team an identity to build on, and the world something memorable to associate with your work.
We who cut mere stones must always be envisioning cathedrals.
Providing a comfortable transition through familiar metaphors is one way to help get buy-in.
...maintaining good regression tests is the key to refactoring with confidence.
In addition, build dependencies may not be the same as test dependencies, and you may need separate hierarchies.