The Robert C. Martin Clean Code Collection (Collection) (Robert C. Martin Series)
Rate it:
Open Preview
5%
Flag icon
what if you were a doctor and had a patient who demanded that you stop all the silly hand-washing in preparation for surgery because it was taking too much time?2 Clearly the patient is the boss; and yet the doctor should absolutely refuse to comply. Why? Because the doctor knows more than the patient about the risks of disease and infection. It would be unprofessional (never mind criminal) for the doctor to comply with the patient.
Mohammed
If the reason of complaining about writing bad code is the manager deadline, or bad requirement, or something else, Take this example:
6%
Flag icon
What Is Clean Code?
Mohammed
You can look at clean code from different perspectives: * Readability. * Unit tests. * Error handling. * Naming. * Performance. * Maintainability. * Abstraction. * Reduced Duplication and High expressiveness.
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.
10%
Flag icon
FUNCTIONS SHOULD DO ONE THING. THEY SHOULD DO IT WELL. THEY SHOULD DO IT ONLY.