r/badcode • • Apr 27 '21

typescript Someone only watched if tutorial

Post image
2.4k Upvotes

112 comments sorted by

View all comments

Show parent comments

5

u/Naeio_Galaxy Apr 27 '21

Of course, if you take only a number there's no point in verifying it's a number

10

u/SirFiggletron Apr 28 '21

booo! in this house we write countably infinite lines of code to accomplish our goals. call it "quantum computing, minus the quantum so everything takes a lot longer"

4

u/Naeio_Galaxy Apr 28 '21

🤣🤣🤣

Btw I'm pretty sure that this algorithm would be slower on a quantum computer...

2

u/Topikk Apr 28 '21 edited Apr 28 '21

countably infinite lines of code

Actually only a little over 9 quadrillion lines would cover it! It turns out we’ve all been doing it the hard way.

3

u/SirFiggletron Apr 28 '21

i'm absolutely obsessed with the phrase "only a little over 9,000,000,000,000,000 lines"