mwguerra liked a comment+100 XP
2mos ago
BaseCode Reloaded: Ep 4, Avoid Nested Code
When working with a team, I've found it's good to be mindful when combining guards. The next dev could come in behind you and follow the pattern, chaining more into the conditional, making it harder to read. I've seen an if with ten different conditionals shoved into one. Moving those into their own guards does take more lines, but it's easier to read.
mwguerra liked a comment+100 XP
2mos ago
BaseCode Reloaded: Ep 4, Avoid Nested Code
@scottzirkel for sure. This kind of gets into Symmetry. Which will be covered later.