@Gargron You are missing
if (Boolean.valueOf(condition) == true)
@Gargron if (true)
@Gargron I'm old school, I use the second one :P
Same here. The second one seems a lot more intuitive to anyone who isn't a programmer, but maybe that's just me 🤔
That is to say, I always choose readable code over compact code, it makes sense!
I think the bottom one is the same as the slightly less awful:
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 if (String.valueOf(condition).startsWith("t"))
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!