3 ms·
I can barely manage to keep nested if's straight... Trying to make sense of that is giving me a headache haha. I'm becoming a proponent of guard clauses, but it
by itsnickjames 4y ago
I can barely manage to keep nested if's straight... Trying to make sense of that is giving me a headache haha. I'm becoming a proponent of guard clauses, but its still a shift in thinking as it is. (also, first post here.)
- Gibbon1 4y agoNested if's are a sign the code is bad. Guard clauses are a good thing and you should use them. goto's are good because the label documents why the path was taken. There are two kinds of programmers, those that love programing as math and people that want to get shit done.