unrolling loops is efficient, right? (lemmy.max-p.me)
saw a 2nd year CS guy run a maze solver (for final exam) with 300 nested if-statements. worked about 50% of the time. so he added another 5000 nested ifs and got it up to 90%. good enough!

This magazine is from a federated server and may be incomplete. Browse more on the original instance.
saw a 2nd year CS guy run a maze solver (for final exam) with 300 nested if-statements. worked about 50% of the time. so he added another 5000 nested ifs and got it up to 90%. good enough!
Explanation: it’s mostly due to how js does type conversion. for the Ls, it’s...
As title
cross-posted from: programming.dev/post/536596...
IMHO, it’s a horrible hack that is just broken. It’s obscure and we need to rewrite it because it has a bad structure. ^X^Cquit^[ESC][ESC]^C
Source: Start-Up
Is that term even used anymore? Feels like it was everywhere a couple years ago.