The Robert C. Martin Clean Code Collection (Collection) (Robert C. Martin Series)
Rate it:
Open Preview
5%
Flag icon
you already know that spending time keeping your code clean is not just cost effective; it’s a matter of professional survival.
5%
Flag icon
But the fault, dear Dilbert, is not in our stars, but in ourselves. We are unprofessional.
5%
Flag icon
Most managers want the truth, even when they don’t act like it. Most managers want good code, even when they are obsessing about the schedule.
5%
Flag icon
It’s your job to defend the code with equal passion.
5%
Flag icon
So too it is unprofessional for programmers to bend to the will of managers who don’t understand the risks of making messes.
6%
Flag icon
Some of us are born with it. Some of us have to fight to acquire it. Not
6%
Flag icon
They used the metaphor of broken windows.
6%
Flag icon
are our school of thought
7%
Flag icon
The name of a variable, function, or class, should answer all the big questions. It should tell you why it exists, what it does, and how it is used. If a name requires a comment, then the name does not reveal its intent.
12%
Flag icon
In general output arguments should be avoided. If your function must change the state of something, have it change the state of its owning object.
14%
Flag icon
it is not an excuse to leave bad code in the system.
17%
Flag icon
The functionality that you create today has a good chance of changing in the next release, but the readability of your code will have a profound effect on all the changes that will ever be made. The coding style and readability set precedents that continue to affect maintainability and extensibility long after the original code has been changed beyond recognition. Your style and discipline survives, even though your code does not.
20%
Flag icon
Objects hide their data behind abstractions and expose functions that operate on that data. Data structure expose their data and have no meaningful functions.
31%
Flag icon
postpone decisions until the last possible moment.
32%
Flag icon
Writing tests leads to better designs.