this post was submitted on 08 Apr 2025
110 points (98.2% liked)

Programmer Humor

35551 readers
75 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 month ago (2 children)

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

[–] skeletorsass@hexbear.net 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.

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

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

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

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

[–] geneva_convenience@lemmy.ml 2 points 4 weeks ago

To quick sort out the bad jobs.