Re:Anti-If: The missing patterns (2016)
by csomar on Thursday June 28, 2018 @04:47AM
(#17415140)
Like anything else in life it is about balance. If you abuse ifs, then your code is unreadable, hard to debug and hard to maintain. If you abuse the alternative patterns then your code, again, becomes hard to grasp and hard to maintain.
You need to look for a balance between ifs and alternative patterns.
You need to look for a balance between ifs and alternative patterns.