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

Programmer Humor

35149 readers
342 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
[–] propter_hog@hexbear.net 6 points 1 week ago (2 children)

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

[–] skeletorsass@hexbear.net 2 points 1 week ago (1 children)

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

Good to demonstrate the divide and conquer approach.

[–] propter_hog@hexbear.net 1 points 1 week 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.

[–] breakcore@discuss.tchncs.de 1 points 1 week ago (1 children)

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

[–] HiddenLayer555@lemmy.ml 3 points 1 week ago* (last edited 1 week ago) (1 children)
[–] CanadaPlus@lemmy.sdf.org 5 points 1 week ago* (last edited 1 week 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.

[–] geneva_convenience@lemmy.ml 2 points 1 week ago

To quick sort out the bad jobs.