All Questions
Tagged with coding design-patterns
2 questions
0
votes
3
answers
1k
views
Eliminate duplicate code in nested IFs without creating a function [duplicate]
Let's say we have two ifs that depend on each other:
if var exists {
if var is array {
//Do stuff with var
} else {
//Resolve the problem
}
} else {
//Resolve the ...
14
votes
3
answers
3k
views
Tips/advice on how to reduce the use of "manager" classes?
I sometimes hear that having too many "manager" classes in your program's design is code smell and add an unnecessary layer of complexity. To me it makes sense that people want to use manager classes ...