this post was submitted on 08 Apr 2025
737 points (98.4% liked)

Programmer Humor

22513 readers
1104 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
[–] shortrounddev@lemmy.world 21 points 1 week ago (8 children)

If it's about problem solving and using logic, why do we need to memorize quicksort? That's not an example of using logic or problem solving

[–] xigoi 8 points 1 week ago* (last edited 1 week ago) (4 children)

You don’t need to memorize quicksort. If you understand how it works, it’s trivial to work out the exact details.

[–] sus@programming.dev 2 points 1 week ago (2 children)

you can also 'trivially' derive the quadratic formula using completing the square, but does anybody actually do that instead of just memorizing the formula?

[–] xigoi 2 points 1 week ago

That depends on how often you use it. If I needed to write quicksort as often as the quadratic formula, I’d probably remember it. And if I only used the quadratic formula as often as I do quicksort, I’d just derive it each time.

load more comments (1 replies)
load more comments (2 replies)
load more comments (5 replies)