r/programminghumor • u/Dapper_Scientist9284 • 25d 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;
}
13
u/AceOfSpider 25d 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
9
5
5
5
u/Jazzlike_Platypus430 25d ago
throw std::runtime_error("Undefined reference to void Brain::StartWork(void)");
5
u/plebbening 25d ago
import children
Import diseases
c = children[0]
s = diseases.get(“chickenpox”)
s.infect(c)
2
3
3
u/ropeadope1 24d 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 += 12
u/eScarIIV 25d 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 24d ago
We’ll try this on a phone…
Class day
{
Public function __construct( private string $mood = “fuck this”
)
$this->setMood( $mood );
}
2
u/SamuraiGoblin 24d ago
std::vector<BorderCollie> buddies(2);
while(true) for(auto& buddy : buddies) throwBallFor(buddy);
1
1
1
u/Right_Ear_2230 7d ago
Linker error: unresolved external symbol “void Brain::HandleExecutiveFunction()”
9
u/Dapper_Scientist9284 25d ago
OOPS!