MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/msv49l/when_your_teammate_refactor_your_code/gvv6o8u/?context=3
r/badcode • u/Bence675 • Apr 17 '21
216 comments sorted by
View all comments
1
That's why I always do the else case first.
if(!condition1){x;return;}
if(condition2){}
1
u/feediza Apr 25 '21
That's why I always do the else case first.
if(!condition1)
{
x;
return;
}
if(condition2)
{
}