> Now, this is a time-memory tradeoff, but my time on this earth is limited so I decided to meta-program the if statements using a programmer program in a different programming language.
for i in range(2*8):
if i % 2 == 0:
No comment...I think we can improve this. Just make a microservice who generates the code on the fly and streams it to the compiler. Then you also just have to create the necessary code and don't waste the SSD with unused code-paths.
How horridly inefficient, he should have just flipped a Boolean on each iteration.
It should have used a flag that is being toggled.
Claude's version:
even, odd = "even", "odd"
for i in range(2\*32):
print(f' if (number == {i}) puts("{even}");')
even, odd = odd, even
As usual, a non-marginally superior mind to commentators.
Yeah... I come here to talk about that. Should have been
or