r/ProgrammerHumor • • Feb 03 '22

Meme Well Fuck

Post image
27k Upvotes

993 comments sorted by

View all comments

4

u/Sollder1_ Feb 03 '22

Should have used Java

1

u/locallaowai Feb 03 '22

Or Pascal

1

u/jfffj Feb 03 '22

Or Fortran

1

u/TeraFlint Feb 03 '22

How does that fix the issue? Remove the (void) parameter and it's valid Java code which behaves the same.

The better advice would be "use analysis tools and don't ignore compiler warnings". It's their job to catch these kinds of errors, or at least make the programmer aware of code areas which could contain unwanted behavior.

1

u/Sollder1_ Feb 03 '22

Did forget this is a serious sub...