this post was submitted on 16 Jul 2023
646 points (97.9% liked)

Programmer Humor

32710 readers
485 users here now

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

Rules:

founded 5 years ago
MODERATORS
 
top 34 comments
sorted by: hot top controversial new old
[–] joeyshabadu 69 points 1 year ago (3 children)

Finally, I can find the month I want!

Now to enter my phone number...

[–] [email protected] 3 points 1 year ago

Finally! A worthy opponent!

[–] [email protected] 35 points 1 year ago (1 children)

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

[–] InverseParallax 13 points 1 year ago* (last edited 1 year ago)

Imagine being able to autocomplete months.

[–] kite 29 points 1 year ago

Probably forgot to check the default for sort order. I've done that before.

[–] [email protected] 21 points 1 year ago* (last edited 1 year ago) (2 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.

[–] [email protected] 6 points 1 year ago (1 children)

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.

[–] QuaternionsRock 7 points 1 year ago* (last edited 1 year ago)

Or shitty SQL.

SELECT MAX(day_of_month), month
FROM why_does_this_table_exist
GROUP BY month
[–] Blamemeta 5 points 1 year ago (1 children)

Im sorry. Im a front end dev, i wish i could make everything pretty, but theres just too many meetings and too much process for everything to get much done.

[–] [email protected] 3 points 1 year ago* (last edited 1 year ago) (1 children)

Haha! Exactly! I do some coding, too, but I can't think like a UXer and a dev at the same time.

It's the "making it pretty" part that makes me bitter. That is the LEAST part of what we do.

It's like asking an architect to come in and fix the building after it's already mostly built. Bad PMs insist on seeing us like interior decorators, but we are primarily architects.

[–] [email protected] 1 points 1 year ago (1 children)

They don't want to pay architect salary to do decorating work and I fully agree. Problem is that stuff like this are often overlooked until someone makes a fuss about it, costing PR. The other 90 % of the overlooked stuff is never found though so it's still a good decision to skip stuff like this.

[–] [email protected] 1 points 1 year ago

I'd believe that, if they weren't already paying the architect salary to have us do interior design. They hire us, then shackle us.

[–] [email protected] 21 points 1 year ago

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.

[–] [email protected] 13 points 1 year ago (1 children)

Obviously it’s a an act of protest so the months are officially remade to be alphabetically ordered.

[–] [email protected] 6 points 1 year ago (2 children)

Can't we just call them month 1 to month 12 like CJK languages do?

[–] [email protected] 10 points 1 year ago (1 children)

But in alphabetical order: 1, 10, 11, 12, 2, 3, 4, 5, 6, 7, 8, 9

[–] [email protected] 4 points 1 year ago (1 children)

This is not even in alphabetical order, three couldn't be before the four.

[–] [email protected] 4 points 1 year ago (1 children)

Computers sometimes sort in this logic: "1" is the first digit so everything that starts with "1" comes first. Alphabetical in this sense, not the names of the numbers written out as done in another comment under this post.

[–] [email protected] 2 points 1 year ago

Which is why ISO 8601 is superior.

[–] [email protected] 10 points 1 year ago

No, it has to be month 0 to 11.

[–] [email protected] 11 points 1 year ago* (last edited 1 year ago) (1 children)

Unpopular opinion: the person in charge of that menu hates everyone. :)

[–] [email protected] 3 points 1 year ago

thats neither unpopular not an opinion. that's a well-known fact

[–] [email protected] 11 points 1 year ago (1 children)

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

[–] [email protected] 3 points 1 year ago (1 children)

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

[–] [email protected] 1 points 1 year ago

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

[–] [email protected] 7 points 1 year ago* (last edited 1 year ago)

They are probably reusing a component that happens 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.

[–] [email protected] 4 points 1 year ago

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

[–] [email protected] 3 points 1 year ago

For organization?

[–] netvor 3 points 1 year ago

Months are an unnecessary and leaky abstraction, they don't need to be taken seriously.

I agree with this programmer.

[–] 99nights 1 points 1 year ago

My birthday still lands in the middle of the year. Poor me

load more comments
view more: next ›