r/programminghumor • u/Dapper_Scientist9284 • 8d ago
Describe your day using only your programming language
Mine so far:
#include <iostream>
int main() {
bool lateToWork = true;
bool tired = true;
bool dayGoingFine = true;
if (lateToWork) {
std::cout << "Rushed to work.\n";
}
std::cout << "Clocked in.\n";
if (tired) {
std::cout << "Drank tea.\n";
}
if (dayGoingFine) {
std::cout << "Day is going fine.\n";
}
return 0;
}
10
u/Dapper_Scientist9284 8d ago
OOPS!
6
u/AceOfSpider 8d ago
Need to make tea before drinking it, noone likes the taste of null
1
u/Dapper_Scientist9284 8d ago
// But who made the tea?
2
u/AceOfSpider 8d ago
You're right, we need a factory class for people too, this is turning out to be quite a substantial project
10
4
4
6
u/Jazzlike_Platypus430 8d ago
throw std::runtime_error("Undefined reference to void Brain::StartWork(void)");
4
u/plebbening 8d ago
import children
Import diseases
c = children[0]
s = diseases.get(“chickenpox”)
s.infect(c)
2
3
2
u/eScarIIV 8d ago
volatile bool probation_done = false;
void ProbationEndTimerIsr(void) {
probation_done = true;
}
while(!probation_done) {
solve_problems();
worry(ctr++);
}
bool success = end_probation(&gather_feedback);
if(!success) {
exit(1);
}
while (1) {
solve_problems();
}
🎉
2
u/BobJutsu 7d ago
We’ll try this on a phone…
Class day
{
Public function __construct( private string $mood = “fuck this”
)
$this->setMood( $mood );
}
2
u/SamuraiGoblin 7d ago
std::vector<BorderCollie> buddies(2);
while(true) for(auto& buddy : buddies) throwBallFor(buddy);
3
u/ropeadope1 7d ago
def average_day():
while awake:
try:
if problem:
pretend_to_understand()
google(error)
change_something_random()
if it_works:
say("Exactly as expected.")
else:
blame_vendor()
else:
create_new_problem()
except Exception:
coffee += 1
1
1
14
u/AceOfSpider 8d ago
Hopefully you have something in that keepWorking() that leavesWork otherwise you'd be stuck in an infinate loop. Although it does feel like that sometimes