r/badcode • • Jun 23 '20

java 'val' is a boolean value.

Post image
1.0k Upvotes

58 comments sorted by

View all comments

-5

u/madanaman Jun 23 '20

Hahaha. Can't stop laughing 😂😂😂 Only reason for this code's existence could be that it's developed by a newbie who have learnt functions but skipped the chapter on datatypes.

4

u/garfield1147 Jun 23 '20

As someone who is reviewing more code then I write, I smirk rather than laugh.

The only good thing with this is that it signals to the rest of the team, of there is such, to closely watch this persons code for more beginner mistakes.

On a tangent, we have all been there, though, but seeing lots of things like this might have a negative impact on your mind about the futility of quality and trust in people. I try to involve new devs into the reviews as soon as possible.