logoalt Hacker News

tialaramexlast Thursday at 4:22 PM2 repliesview on HN

What the hell language was Muratori teaching with that he doesn't have a sort?

Even C provides a halfway useful comparison sort in the box† and they're so cheap they don't even supply the O(1) growable array type

† It's named qsort, but despite the name it might not just be Hoare's "Quicksort". However it also won't be somebody's half-remembered bubble sort.


Replies

benalast Thursday at 4:35 PM

He's using C++ as closely to C as possible.

Part of the purpose of the series of Handmade Hero is to build a game from the ground up with no dependencies. So I don't think he's bringing in stdlib

So he could use that, but goal is to be someone who doesn't necessarily need to do that.

show 1 reply
01HNNWZ0MV43FFlast Thursday at 4:34 PM

Handmade Hero teaches depth-first development. I'm not sure who it benefits