this post was submitted on 08 Apr 2025
112 points (98.3% liked)

Programmer Humor

35551 readers
390 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
top 8 comments
sorted by: hot top controversial new old
[–] [email protected] 6 points 1 month ago (2 children)

And if you're in a language that doesn't implement it

[–] [email protected] 2 points 1 month ago (1 children)

You might need a custom one as well. Modify the algorithm.

Good to demonstrate the divide and conquer approach.

[–] [email protected] 1 points 1 month ago

And if you're working from a secure compartmentalized environment or are working on a high security project that doesn't let you pull libraries from outside. Lots of reasons for being able to roll your own. Besides the fact that it takes like two minutes to write it correctly.

[–] [email protected] 1 points 1 month ago (1 children)

Which languages would that be? I imagine it is used in most cases.

[–] [email protected] 3 points 1 month ago* (last edited 1 month ago) (1 children)
[–] [email protected] 2 points 1 month ago
[–] [email protected] 5 points 4 weeks ago* (last edited 4 weeks ago)

I mean, they teach sorting algorithms because they illustrate all the basic ideas of complexity theory while being immediately understandable in a way linear programming or primality testing or something aren't.

[–] [email protected] 2 points 4 weeks ago

To quick sort out the bad jobs.