this post was submitted on 05 May 2024
823 points (99.0% liked)

Programmer Humor

19817 readers
44 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 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 39 points 7 months ago (2 children)

Nah Hanoi was easy stuff, first year. Definitely more traumatizing practice problems.

[–] [email protected] 12 points 7 months ago (2 children)

Hanoi […] practice problems.

Like you come to the exam and there's a 64 piece Tower of Hanoi you need to solve manually to pass the exam

[–] [email protected] 3 points 7 months ago (1 children)

Assuming 1 second per swap, a 64 disk tower of hanoi would take 585 billion years to solve - it has 2^64 -1 swaps.

[–] [email protected] 2 points 7 months ago

And that makes It good enough for an exam

[–] [email protected] 2 points 7 months ago

Calm down, satan

[–] [email protected] 7 points 7 months ago (3 children)

Yea, get back to me when you get to parallel programming.

[–] [email protected] 3 points 7 months ago

Writing kernels for parallel execution with OPENCL gives me flashbacks every time I remember them

[–] [email protected] 3 points 7 months ago (1 children)

Or even just try to understand pthreads.

[–] [email protected] 2 points 7 months ago

You’re doing it again

[–] [email protected] 2 points 7 months ago

Tis' not hard, just add some sleeps to make sure other thread reads data before it is destroyed 🌚