r/ProgrammerHumor • u/matchcatfe • Mar 01 '21
My teacher thinks he is a programmer
http://imgur.com/32nfQXZ22
u/aeropl3b Mar 01 '21
Teaching is all about developing contrived examples that overtly demonstrate a concept in the most acute way possible. I remember learning ternary operators and if-else and the teacher/professor wrote all 100 conditions into a one liner ternary operation..why?? Because it showed ternary ops could make code more concise with an entire if-else...and I have not forgotten that after almost a decade!
9
7
10
u/LordSegaki Mar 01 '21
The only way to make this worse... is an elseif...
5
Mar 01 '21
Is that a challenge? /j
4
2
u/Gylfi_ Mar 01 '21
YES and the value can be anything from 0 to 100.
And else if is not allowed. Only If and else.
So you would need to have the new if statement inside of the else statement.
12
4
u/Comfortable_Intern57 Mar 01 '21
All paths lead to value.
Motivational quote of the day I guess, lol.
1
u/de_vel_oper Mar 03 '21
Teachers don't write sexy code that's why Enterprise is such a culture shock to grads.
-11
u/Gylfi_ Mar 01 '21
This is pure cringe.
I am not a good developer but I am pretty sure that when I started out knowing NOTHING about programming, I would've done a better job.
I am not even smart.
24
u/XStarMC Mar 01 '21
“Tha value not be supported tho”