r/badcode • • Sep 13 '20

c Found in git's bisect algorithm

Post image
744 Upvotes

17 comments sorted by

View all comments

246

u/slothefish Sep 14 '20

Is this in fact good code, because they explicitly call out that it's not worth investing the time to make it good, and that decision of time investment is good?

142

u/Catfrogdog2 Sep 14 '20

Yes: perfection is the enemy of good enough.

18

u/Talran #ksh Sep 14 '20

I've been down enough week-long holes to realize that I think..... right after I tweak this shell script to not terminate sessions that started at the same time on a leap day by the same user.

10

u/OOPGeiger Sep 14 '20

Relatable