Sidechat icon
Join communities on Sidechat Download
My teammate dead ass removed my one liner for this in our group project ….
165 upvotes, 5 comments. Sidechat image post by Anonymous in Computer Science. "My teammate dead ass removed my one liner for this in our group project …."
upvote 165 downvote

default user profile icon
Anonymous 27w

Wouldn’t rand # & mod combo compile faster than nextBoolean?

upvote 6 downvote
default user profile icon
Anonymous 27w

Crash out

upvote 5 downvote
default user profile icon
Anonymous 27w

Something I like doing is splitting the ternary operator over multiple lines. Best of both worlds. Like this: return random.nextBoolean() ? a : b;

upvote 5 downvote
default user profile icon
Anonymous 27w

was there any justification?

upvote 3 downvote
default user profile icon
Anonymous 27w

Didn’t even omit the else block 💔💔

upvote 3 downvote
default user profile icon
Anonymous 27w

His is more quickly understandable

upvote 1 downvote
default user profile icon
Anonymous 27w

The first line isn’t even that hard to understand and is a lot cleaner. Your teammate is crazy

upvote 1 downvote
default user profile icon
Anonymous replying to -> #2 27w

He didn’t see it he said

upvote 9 downvote