this post was submitted on 16 Jul 2023
382 points (100.0% liked)

Programmer Humor

853 readers
1 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
top 12 comments
sorted by: hot top controversial new old
[–] DM_Gold@lemmy.dbzer0.com 20 points 1 year ago (1 children)

Instead of asking "why?" consider asking "why not?"

[–] flamingarms 3 points 1 year ago

You're right, that is an easier question to answer!

Everyone is saying this was impossible to solve without fixing the underlying tool, but just writing a prefixes from 01 to 12 would have been my solution.

Now you don’t even need to remember the months to select the correct one.

[–] AnalogyAddict@kbin.social 11 points 1 year ago* (last edited 1 year ago) (1 children)

Speaking as a UX designer, probably because some "product manager" decided it was too expensive to override the auto- sort that was applied before the designer was brought in to "pretty things up."

There is no tone of bitterness in my comment, honestly there isn't.

[–] VirtualAlias@reddthat.com 4 points 1 year ago

Yeah, I was going to say they just left a default alphabetical sort to their global droplist component and called it a day. Probably works fine in most contexts, but this one - not so much.

[–] lowleveldata@programming.dev 8 points 1 year ago (1 children)

I once got a user requirement that specifically say all drop down lists must be sorted alphabetically

[–] tiredofsametab@kbin.social 3 points 1 year ago (1 children)

eight, five, four, nine, one, seven, six, ten, three, two .... ew

[–] lugal@sopuli.xyz 1 points 1 year ago

8, 5, 4, 9, 1, 7, 6, 10, 3, 2

[–] Perry@kbin.social 4 points 1 year ago* (last edited 1 year ago)

They are probably reusing a component that happen to sort its entries alphabetically, since that is most commonly the expected behaviour. If the form is configured in a CMS, whoever built it might not even know it's happening and has entered the data properly, but it gets resorted in the presentation layer. It's also not impossible that the behaviour of the component has changed at some point and this particular case didn't have test coverage or wasn't actually part of the specification.

[–] darvocet@infosec.pub 3 points 1 year ago

For organization?

[–] LaggyKar@programming.dev 2 points 1 year ago

Why even make a dropdown? It would be quicker just to type a number