mwguerra liked a comment+100 XP
1mo ago
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
1mo ago
@scottzirkel for sure. This kind of gets into Symmetry. Which will be covered later.