@Gargron You are missing
if (Boolean.valueOf(condition))
if (Boolean.valueOf(condition) == true)

@hashRaygoza

Same here. The second one seems a lot more intuitive to anyone who isn't a programmer, but maybe that's just me 馃

@hashRaygoza
That is to say, I always choose readable code over compact code, it makes sense!

@Gargron

I think the bottom one is the same as the slightly less awful:

if("true".equals(condition))

Which is still null safe.

@Gargron in a programming interview
1) not hired (too inexperienced)
2) still not hired
3) Promoted to tech director

@Gargron I cant believe I actually understand this meme oh my god
@thehottestpotato are you proud of me

Sign in to participate in the conversation
Mastodon

Follow friends and discover new ones. Publish anything you want: links, pictures, text, video. This server is run by the main developers of the Mastodon project. Everyone is welcome as long as you follow our code of conduct!