this post was submitted on 16 Nov 2023
220 points (95.5% liked)

Programmer Humor

19315 readers
2 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 1 year ago
MODERATORS
 

Yes, someone actually did this and I found it running on our server

you are viewing a single comment's thread
view the rest of the comments
[–] DroneRights@lemm.ee 1 points 10 months ago* (last edited 10 months ago)

It's one line as part of a larger function. Also, it doesn't actually say weekend, it just executes some other functionality if !(day % 6). I made it more readable so that everyone here could understand what it does