Better HN
topnewbestaskshowjobs
Log inSign up

moth11

3 karma · joined May 14, 2024 (2y ago) · 1 submissions

Submissions

comment 2mo ago · link · parent

Nobody is denying that it's effective. They're denying intelligence

A programming contest has a problem where given N < 10000, do something hard like come up with the number of primes less than N

You can come up with all sorts of algorithms that do intelligent things. But the most effective solution is to use metaprogramming to make a massive switch statement that contains all the answers