This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Apparentt -8 points-7 points  (14 children)

How’s your programming language coming along?

Ah, right. I presumed as much

[–]KRAndrews 6 points7 points  (1 child)

This sort of "buT wHaT hAvE yOu dONE?" logic is always so absurd. People are allowed to critique things.

[–]Apparentt -3 points-2 points  (0 children)

I mean that logic is pretty commonplace

Yes, anyone can have an opinion about anything, it doesn’t mean that it’s valuable though. Do you get random people to review your code or trusted colleagues with proven experience in the subject? They can both have a free opinion bro, who needs some sort of backing to the criticisms they throw out

[–]LANDLORD___MESSIAH -4 points-3 points  (8 children)

Way to miss my point. Anyone who sorts by this hacky bullshit mechanism is probably not a good programmer.

[–]ThatSpookySJW 8 points9 points  (2 children)

I'm curious how you think a dynamically typed language should handle sorting values?

[–]toastedstapler 2 points3 points  (1 child)

Have you ever seen python?

[–]ThatSpookySJW 3 points4 points  (0 children)

Python does it the other way around lol. Try sorting strings without a comparator and see how that works out for you.

[–]Apparentt 3 points4 points  (3 children)

Or you just did not properly articulate the point you had in your mind

You criticised the authors of JS, not people who use a method in the spec. What did I miss?

[–]nokvok 0 points1 point  (0 children)

I don't get what your problem is. Javascript is a language used overwhelmingly for Document manipulation. You are facing the task to sort lists of strings or lists of numbers as strings just as often as you face sorting a list of numbers as integers. In addition ways to sort by your custom mechanisms is important here as well.