MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/10jhr3k/so_i_was_coding_and_wrote_this/j5lh6tt/
r/badcode • u/-True_- • Jan 23 '23
102 comments sorted by
View all comments
1
What's so bad with this?
2 u/FGC_Orion Jan 24 '23 Perfectly fine from a correctness/readability standpoint butreturn login(driver, usr, psw)does the trick in 3 fewer lines and with one less boolean check, while also still being almost as readable 1 u/vandalism Jan 23 '23 Better to just return the result itself
2
Perfectly fine from a correctness/readability standpoint but
return login(driver, usr, psw)
does the trick in 3 fewer lines and with one less boolean check, while also still being almost as readable
Better to just return the result itself
View all comments
1
u/flankstek Jan 23 '23
What's so bad with this?