838
Amazon AI (lemmy.world)
you are viewing a single comment's thread
view the rest of the comments
[-] fckreddit@lemmy.ml 24 points 4 days ago

That's nothing, I wrote the code to return if the input is even or not in 1M lines of code.

[-] Siethron@lemmy.world 17 points 3 days ago

If 1 no else if 2 yes else if 3 no....

[-] Shayeta@feddit.org 6 points 3 days ago

If you want to learn natural language processing, this is actually a fun example to generate code for.

[-] fckreddit@lemmy.ml 4 points 3 days ago
[-] prime_number_314159@lemmy.world 1 points 3 days ago

Are you working with 20 bit integers? You'll never get it down to a million lines like that...

There's a million lines of If >4096, subtract 4096

Then a quick lookup case statement for whether the remaining number is even.

this post was submitted on 11 Mar 2026
838 points (99.3% liked)

Programmer Humor

30365 readers
1126 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS