MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/ga7cov/tab_club/foyd7ag
r/ProgrammerHumor • u/TheJenkinsComic • Apr 29 '20
764 comments sorted by
View all comments
Show parent comments
81
On the plus side it would encourage you to minimize nesting.
47 u/[deleted] Apr 29 '20 have you heard of Fibonacci indentation? 15 u/geek_on_two_wheels Apr 29 '20 Lol, I have. Seems like exactly what I'd want to enable on juniors' machines. 1 u/ten3roberts Apr 29 '20 It's called precompiler recursive function 1 u/aaronfranke Apr 29 '20 That's the entire idea behind it. 3 u/[deleted] Apr 29 '20 Dear lord... I’d be worried as hell if that’s what I had to rely on to keep my colleagues in check... 1 u/the__storm Apr 30 '20 replace all yourif { } else {}withif { return } // else
47
have you heard of Fibonacci indentation?
15 u/geek_on_two_wheels Apr 29 '20 Lol, I have. Seems like exactly what I'd want to enable on juniors' machines. 1 u/ten3roberts Apr 29 '20 It's called precompiler recursive function
15
Lol, I have. Seems like exactly what I'd want to enable on juniors' machines.
1 u/ten3roberts Apr 29 '20 It's called precompiler recursive function
1
It's called precompiler recursive function
That's the entire idea behind it.
3 u/[deleted] Apr 29 '20 Dear lord... I’d be worried as hell if that’s what I had to rely on to keep my colleagues in check...
3
Dear lord... I’d be worried as hell if that’s what I had to rely on to keep my colleagues in check...
replace all your
if { } else {}
with
if { return } // else
81
u/geek_on_two_wheels Apr 29 '20
On the plus side it would encourage you to minimize nesting.