Yes, someone actually did this and I found it running on our server
You are viewing a single thread.
View all comments 18 points
Image Transcription: Meme
[Paneled meme with a brain that gets increasingly glowing]
[The brain is smaller than the skull]
if dayOfWeek.name == "Sunday" || dayOfWeek.name == "Saturday"
weekend = true
[The brain is glowing in some areas]
if dayOfWeek < 2 || dayOfWeek > 6
weekend = true
[The brain is shooting out rays of light]
weekend = !((dayOfWeek - 1) % 6)
I am a human volunteer who transcribes posts to improve accessibility on programming.dev and you could be one too! !transcribing@programming.dev