Nick

12%
Flag icon
Prefer Exceptions to Returning Error Codes Returning error codes from command functions is a subtle violation of command query separation. It promotes commands being used as expressions in the predicates of if statements.
Nick
· Flag
Nick
The number of times I've passed back ints or tuples makes me feel dirty now! Nothing left to do but wander from file to file muttering "out damn spot" and refactoring.
John Schneider
· Flag
John Schneider
Exceptions take a lot of work, lots of definitions handlers finals and cleanup
Nick
· Flag
Nick
True, and this does kind of clash with the statement to "keep exceptions exceptional". But when I think back to the amount of times that I've cluttered up several layers of function calls with logic t…
The Robert C. Martin Clean Code Collection (Collection) (Robert C. Martin Series)
Rate this book
Clear rating
Open Preview