Journal eglamkowski's Journal: code maintenance 5
So, you're looking through some old code written years ago by someone long gone from the company. You stumble across a function named RandomSort(). Before even looking at what the function does, your reflexive reaction to a function name like that is?
Complain... (Score:1)
Re: (Score:2)
Some Code I Once Wrote (Score:2)
Not quite random sort, but semi-random rearrangement :o)
shucks and other comments (Score:2)
At least four problems, and I haven't even looked at what it does yet.
1. As already pointed out, it likely isn't random (this is minor in the scheme of things, but worth noting)
2. It isn't a sort. A sort, by definition CANNOT be random. If something is random, it isn't sorted. Most likely, it is a pseudorandom LIST, but now I have to check.... an unordered list is NOT a sort people.... Grrrr
3. Genius-boy appe
My reflexive action is (Score:2)
So in the real world, does it implement a sort kind of like a radix sort [wikipedia.org]?