Is doing an assignment inside a condition considered a code smell?
Many times I have to write a loop that requires initialization of a loop condition, and an update every time the loop executes. Here’s one example:
Is doing an assignment inside a condition considered a code smell?
Many times I have to write a loop that requires initialization of a loop condition, and an update every time the loop executes. Here’s one example:
Is doing an assignment inside a condition considered a code smell?
Many times I have to write a loop that requires initialization of a loop condition, and an update every time the loop executes. Here’s one example:
What should happen when code is reached that shouldn’t be, according to business or logic rules? [duplicate]
This question already has answers here: How should I handle exception that *should* never be thrown? [duplicate] (5 answers) How to deal with checked exceptions that cannot ever be thrown (5 answers) Closed 10 years ago. I am currently writing an application that isn’t huge but will be used through-out my company of 200+ people […]
How to avoid large function arity / exposure of underlying implementation
Currently reading Clean Code, and the authors seem to imply that any function with an arity greater than 3 should be avoided at all costs.
How to avoid large function arity / exposure of underlying implementation
Currently reading Clean Code, and the authors seem to imply that any function with an arity greater than 3 should be avoided at all costs.
How to avoid large function arity / exposure of underlying implementation
Currently reading Clean Code, and the authors seem to imply that any function with an arity greater than 3 should be avoided at all costs.
Clean Code and Hybrid Objects and Feature Envy
So I recently made some major refactorings to my code. One of the main things I tried to do was split out my classes into data objects and worker objects. This was inspired, among other things, by this section of Clean Code:
How to avoid spaghetti code when I have a lot of conditions? [duplicate]
This question already has answers here: Approaches for checking multiple conditions? [duplicate] (3 answers) Closed 9 years ago. I have the following problem: An user can withdraw money from 2 payment systems (but the number of payment systems can change anytime in the future). If user has a trusted account on either of these payment […]
Escape a GameLogic god class.
When programming a simple game as an example. I always tend to get left with a large GameLogic class somewhere which is reponsible for gluing together all of the other portions of the software.