News for hackers. Stuff that matters.
Re:Is-even-ai – Check if a number is even using the power of AI by Charon77 on Monday May 19, 2025 @11:40PM (#44037569)
I.. can't tell if you're joking or not. Pretty sure someone out there is unironically doing something as stupid as this in production
Re:Is-even-ai – Check if a number is even using the power of AI by ryanpandya on Tuesday May 20, 2025 @04:21AM (#44039119)
The good news is they're definitely joking. The bad news is that indeed, there's definitely someone out there doing this unironically.
Re:Is-even-ai – Check if a number is even using the power of AI by whynotmaybe on Tuesday May 20, 2025 @07:01AM (#44040095)
Yes, there is.

A former co-worker had to print 5 lines of text. Sometimes, some of the lines were empty but he didn't want to print an empty line.

So he did the usual, use 'if', a lot of 'if'. He handled all the possible cases of empty VS not empty lines.