no unit tests huh.
/s
no unit tests huh.
/s
What you do is use a for loop to generate a million lines for you, then paste it in. Writing it manually is moronic. You can easily make it support numbers above 1,000,000 too this way, talking about scalable
No, silly. You ask chatgpt to write (steal) a loop that would generate all those lines. Haven't you heard about meta-vibe template-programming?
apart from everything else, have they never heard of a switch statement
bool isEven(int value) {
return (int)(((double)value / 2.0) % 1.0) * 100) != 50;
}
Good if you are rated by an AI that pays for LOCs.
I am more amazed that he didn't stop at 10 and think "damn this is tiresome isn't there a one liner i could do?". I want to know how far he went. His stubbornness is amazing but also scary. I haven't seen this kind of code since back in school lol lol lol
This joke was not written by the dude pictured. The author wrote a book of funny code jokes.
When did Thor become the dev for Yandere Simulator?
that's some good code right there
I want to assess coders by lines written! The more the better!
To be fair, the question is "Write a function that simultaneously determines if the number is even and works as a timer"
Throwback to when someone shared the OG version of this meme to my uni chat, I replied with "Oh you can simply do
def is_even(n: int) -> boolean:
if n > 0 return not is_even(n - 1)
elif n < 0 return not is_even(n + 1)
else return True
And instead of laughing at the joke the TA in the chat said "When you start getting internships you'll do n % 2
" like I was being serious.
Post funny things about programming here! (Or just rant about your favourite programming language.)