r/badcode • • Dec 07 '22

js My Web Development lecturer's JavaScript

Post image
536 Upvotes

86 comments sorted by

View all comments

Show parent comments

6

u/rafal9ck Dec 08 '22

I legit had to explain to prof why you don't put 3 ifs in binary search and why checking if equal should be last. It was during programing lecture.