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

Programmer Humor

32371 readers
572 users here now

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

Rules:

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

Finally, I can find the month I want!

Now to enter my phone number...

[–] SomeBoyo@feddit.de 3 points 1 year ago

Finally! A worthy opponent!

[–] DM_Gold@lemmy.dbzer0.com 37 points 1 year ago (2 children)

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

[–] InverseParallax@lemmy.world 13 points 1 year ago* (last edited 1 year ago)

Imagine being able to autocomplete months.

[–] flamingarms@beehaw.org 3 points 1 year ago

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

[–] kite@lemmy.world 29 points 1 year ago

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

[–] AnalogyAddict@kbin.social 22 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.

[–] VirtualAlias@reddthat.com 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@lemmy.world 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@lemmy.world 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.

[–] AnalogyAddict@kbin.social 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.

[–] Lifter@discuss.tchncs.de 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.

[–] AnalogyAddict@kbin.social 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.

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.

[–] Grandwolf319@sh.itjust.works 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.

[–] subway@lemmy.fmhy.ml 6 points 1 year ago (2 children)

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

[–] Grandwolf319@sh.itjust.works 10 points 1 year ago

No, it has to be month 0 to 11.

[–] lugal@sopuli.xyz 10 points 1 year ago (1 children)

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

[–] feck_it@sh.itjust.works 4 points 1 year ago (1 children)

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

[–] lugal@sopuli.xyz 4 points 1 year ago (2 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.

[–] feck_it@sh.itjust.works 2 points 1 year ago

Oh, why i didn't consider that, my education background didn't help i guess, thank you.

[–] President_Pyrus@feddit.dk 2 points 1 year ago

Which is why ISO 8601 is superior.

[–] lowleveldata@programming.dev 12 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

[–] some_guy@lemmy.sdf.org 12 points 1 year ago* (last edited 1 year ago) (1 children)

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

[–] akariii@lemmy.blahaj.zone 3 points 1 year ago

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

[–] Perry@kbin.social 8 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.

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

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

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

For organization?

[–] 99nights@lemmy.world 2 points 1 year ago

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

[–] netvor@lemmy.world 2 points 1 year ago

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

I agree with this programmer.

load more comments
view more: next ›