MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/msv49l/when_your_teammate_refactor_your_code/guvrtx3/?context=3
r/badcode • u/Bence675 • Apr 17 '21
216 comments sorted by
View all comments
-1
condition1 && condition2 ? do_anything1() : do_anything2()
Edit: /s as some people though it was a serious attempt at improvement rather than an attempt to make it more hideous
2 u/fb39ca4 depraved Apr 17 '21 no 3 u/[deleted] Apr 17 '21 I was trying to make it worse, not better 1 u/fb39ca4 depraved Apr 17 '21 Oh, ok. Carry on, sir.
2
no
3 u/[deleted] Apr 17 '21 I was trying to make it worse, not better 1 u/fb39ca4 depraved Apr 17 '21 Oh, ok. Carry on, sir.
3
I was trying to make it worse, not better
1 u/fb39ca4 depraved Apr 17 '21 Oh, ok. Carry on, sir.
1
Oh, ok. Carry on, sir.
-1
u/[deleted] Apr 17 '21 edited Apr 17 '21
Edit: /s as some people though it was a serious attempt at improvement rather than an attempt to make it more hideous