UI Bites



  • @Zecc said in UI Bites:

    Carnage "It's pronounced Cahr-NAH-je "woof!". Get it right."

    🔧



  • @Zerosquare said in UI Bites:

    @Carnage said in UI Bites:

    If I ever get a citizenship in another country, I intend to only have a first name in that citizenship. Just to be an asshole to shitty developers.

    ...and regret it immediately, as your life turns to hell because countless public and private services refuse to accept your name.
    (:hanzo:)

    Nah, that just means that I'd not have to deal with them. 😄 And I'd always have my Swedish nationality to fall back on.



  • @dkf said in UI Bites:

    @Carnage said in UI Bites:

    @Arantor said in UI Bites:

    @LaoC I remember dealing with AAD in parts of the world where only having a single name was common. AAD fails at this but not as hard as the HRIS system wired up to it


    If I ever get a citizenship in another country, I intend to only have a first name in that citizenship. Just to be an asshole to shitty developers.

    You should also make sure that the name is legally all lower case and misspelt relative to some much more common name. See just how many get it wrong


    With at least one ' in there as well.


  • Considered Harmful

    @dkf said in UI Bites:

    @Carnage said in UI Bites:

    @Arantor said in UI Bites:

    @LaoC I remember dealing with AAD in parts of the world where only having a single name was common. AAD fails at this but not as hard as the HRIS system wired up to it


    If I ever get a citizenship in another country, I intend to only have a first name in that citizenship. Just to be an asshole to shitty developers.

    You should also make sure that the name is legally all lower case and misspelt relative to some much more common name. See just how many get it wrong


    Fuck no. My wife's first name is the Latina spelling of a very common one and her last name a weird spelling of a European one. Misspelled visa documents, bank cards that don't match the passport (make sure you keep your CC of the card application to prove it's their fault or they'll try to charge you for the fixed card), "no, Ma'am, we don't have your ticket in the system"—the possibilities for fun are endless.


  • Considered Harmful

    @Arantor said in UI Bites:

    And that’s before you have the French who do things like “Michel MICHEL” to indicate that the second name is their surname because it’s not uncommon to have a surname that could also be a given name.

    In my first admin job at univerity in Germany I once took literally 15 minutes to find out what the user name of a Chinese student ("first and last letter of first name plust last name") should be. He didn't speak enough of anything but Chinese to explain, and while he had it romanized alright I didn't know if he'd kept it in the Chinese/Bavarian "Last First" form or converted it to big endian already.

    Names are hard and solveable in most places with a single “name” box. Though this does lead to other drama as shown but honestly for the purposes of “showing initials in Teams”, just pick the first two capital letters and go with it.

    If the script has capital letters to begin with. It's a pretty weird concept tbh.


  • Notification Spam Recipient

    @Arantor said in UI Bites:

    @Carnage which is most of them.

    The number of systems that insist in having first name/last name is obscene.

    I feel sorry for the folks who got “Not Assigned”, “Null” or —- as their “first name” as different systems couldn’t handle the idea of a user with only a “surname”. The usual compromise was to enter the same name twice.

    The reality is never that the developers suffer, it’s that the poor users are expected to just get on with it.

    Similarly users who expect to put in their middle names are inevitably fucked over in the opposite direction (middle names are sometimes supported but often as a second class citizen).

    And that’s before you have the French who do things like “Michel MICHEL” to indicate that the second name is their surname because it’s not uncommon to have a surname that could also be a given name.

    Names are hard and solveable in most places with a single “name” box. Though this does lead to other drama as shown but honestly for the purposes of “showing initials in Teams”, just pick the first two capital letters and go with it.

    This is precisely why, in my re-design of the registration software, I'm collapsing the name_first and name_last fields into just name_display. We literally never use the names independently ever and always concatenate them together, so what is the fucking point?


  • ♿ (Parody)

    @Tsaukpaetra said in UI Bites:

    @Arantor said in UI Bites:

    @Carnage which is most of them.

    The number of systems that insist in having first name/last name is obscene.

    I feel sorry for the folks who got “Not Assigned”, “Null” or —- as their “first name” as different systems couldn’t handle the idea of a user with only a “surname”. The usual compromise was to enter the same name twice.

    The reality is never that the developers suffer, it’s that the poor users are expected to just get on with it.

    Similarly users who expect to put in their middle names are inevitably fucked over in the opposite direction (middle names are sometimes supported but often as a second class citizen).

    And that’s before you have the French who do things like “Michel MICHEL” to indicate that the second name is their surname because it’s not uncommon to have a surname that could also be a given name.

    Names are hard and solveable in most places with a single “name” box. Though this does lead to other drama as shown but honestly for the purposes of “showing initials in Teams”, just pick the first two capital letters and go with it.

    This is precisely why, in my re-design of the registration software, I'm collapsing the name_first and name_last fields into just name_display. We literally never use the names independently ever and always concatenate them together, so what is the fucking point?

    Users might want to search for people at some point. Or see them sorted in a consistent manner.

    But, I mean, there's a reason we call them lusers.



  • 👔: But we need to address customers by their first name! It makes us look friendly!


  • Java Dev

    @Zerosquare Tends to be even worse in Dutch, since we still have separate formal and informal modes of address.

    Whenever possible I either omit my first name, or just enter initials.


  • BINNED

    @PleegWat said in UI Bites:

    or just enter initials

    :wtf: luckily Flemish is much more informal in that regard and doesn't care for such things


  • đŸšœ Regular

    @Luhmann But if you remove the initials, don't the next letters become new initials?


  • BINNED

    @Zecc

    In Dutch it is acceptable to enter Mr. Luhmann N. in a name field in Flemish we don't take to this kind of frivolity ... but we also don't use middle names ... but both last and first names can have multiple parts sometimes with a - or not ... also Dutch/Flemish uses different capital rules for last names consistent of multiple parts ... it's a 'poepen' kind of thing I guess


  • đŸšœ Regular


  • Notification Spam Recipient

    @boomzilla said in UI Bites:

    @Tsaukpaetra said in UI Bites:

    @Arantor said in UI Bites:

    @Carnage which is most of them.

    The number of systems that insist in having first name/last name is obscene.

    I feel sorry for the folks who got “Not Assigned”, “Null” or —- as their “first name” as different systems couldn’t handle the idea of a user with only a “surname”. The usual compromise was to enter the same name twice.

    The reality is never that the developers suffer, it’s that the poor users are expected to just get on with it.

    Similarly users who expect to put in their middle names are inevitably fucked over in the opposite direction (middle names are sometimes supported but often as a second class citizen).

    And that’s before you have the French who do things like “Michel MICHEL” to indicate that the second name is their surname because it’s not uncommon to have a surname that could also be a given name.

    Names are hard and solveable in most places with a single “name” box. Though this does lead to other drama as shown but honestly for the purposes of “showing initials in Teams”, just pick the first two capital letters and go with it.

    This is precisely why, in my re-design of the registration software, I'm collapsing the name_first and name_last fields into just name_display. We literally never use the names independently ever and always concatenate them together, so what is the fucking point?

    Users might want to search for people at some point.

    Searching impact is negligible in the combined form.

    Or see them sorted in a consistent manner.

    Eh. We're not making a phonebook. you find them or you don't, nobody cares that they're lined up in the right order so the extra confoundation is irrelevant to this application.


  • Discourse touched me in a no-no place

    @loopback0 said in UI Bites:

    @boomzilla said in UI Bites:

    MS Teams uses circles with your initials as a default avatar. Domain accounts tend to be displayed as, "LastName, FirstName MiddleInitial." In its wisdom, Teams interprets this as:

    LM

    ...instead of what you'd expect:

    LF

    ...or better yet:

    FL

    Ours does it as LF.

    Now it's decided to use FL đŸ€·


  • Notification Spam Recipient

    @loopback0 said in UI Bites:

    @loopback0 said in UI Bites:

    @boomzilla said in UI Bites:

    MS Teams uses circles with your initials as a default avatar. Domain accounts tend to be displayed as, "LastName, FirstName MiddleInitial." In its wisdom, Teams interprets this as:

    LM

    ...instead of what you'd expect:

    LF

    ...or better yet:

    FL

    Ours does it as LF.

    Now it's decided to use FL đŸ€·

    Silverquill - "Continuity" Clip – 00:05
    — Skylos



  • @loopback0 said in UI Bites:

    Now it's decided to use FL

    Florida ManTeams?


  • Considered Harmful

    16422589672130.jpg
    Make sure you use a high Derps Per Image setting for wall-size printouts.

    16422589673341.jpg
    So which aspect of my video display is it that the client wasn't satisfied with?


  • BINNED

    Bildschirmfoto 2022-01-17 um 10.42.09.png

    : sOmEtHiNg WeNt WrOnG! :mocking_spongebob: 🙊

    If it wasn't for the 7000% inflation I'd say fuck it and retire from this industry to become a bee keeper.



  • @LaoC said in UI Bites:

    So which aspect of my video display is it that the client wasn't satisfied with?

    My guess, using VLC.


  • I survived the hour long Uno hand

    @topspin
    Afraid that the reduced income scale would really sting?


  • BINNED

    Bildschirmfoto 2022-02-16 um 09.39.27.png

    Good Jorb, Teams.


  • BINNED

    Download app, log in to Microsoft account, literally the first thing after logging in:

    7E6DD65D-F749-4BA5-A365-DED428F27BC1.jpeg

    (Note the cut off text)
    These morons are a trillion dollar company. :facepalm:



  • @topspin it probably fits fine in English and all the other languages are simply doing it wrong.

    It’s been the case forever that non-English gets a second-class level of support from software in general, and RTL a distant third-class level of support.


  • BINNED

    @Arantor said in UI Bites:

    @topspin it probably fits fine in English and all the other languages are simply doing it wrong.

    It’s been the case forever that non-English gets a second-class level of support from software in general, and RTL a distant third-class level of support.

    Yeah, we know that Nadella's first order of business was to fire the whole QA department, so them not noticing a glaring problem as the first thing after installation is not unexpected.

    But it's not like the technology to correctly word-wrap hasn't been invented yet. Also, every single other app manages to ask this question just fine without problems, since they just use the native pop-up window that actually works. But that wouldn't be reinventing everything in fucking electron.


  • Discourse touched me in a no-no place

    @topspin said in UI Bites:

    we know that Nadella's first order of business was to fire the whole QA department

    Yeah, because now they sell the products to the QA department



  • @topspin said in UI Bites:

    Download app, log in to Microsoft account, literally the first thing after logging in:

    7E6DD65D-F749-4BA5-A365-DED428F27BC1.jpeg

    (Note the cut off text)

    Well, how else would you handle "Blindenschrift" in so little space.



  • @Arantor said in UI Bites:

    it probably fits fine in English and all the other languages are simply doing it wrong.

    actually, those "..." should be just 2 letters: "ck".
    How did they manage to use an ellipsis here?
    That's the question.
    Also M$ won't be able to answer it.



  • @BernieTheBernie Probably the same thinking behind this:

    366afd1a-719c-4878-a6a3-1e3446155215-image.png


  • Banned

    @topspin said in UI Bites:

    Bildschirmfoto 2022-01-17 um 10.42.09.png

    : sOmEtHiNg WeNt WrOnG! :mocking_spongebob: 🙊

    If it wasn't for the 7000% inflation I'd say fuck it and retire from this industry to become a bee keeper.

    It's a reference to the old error 500 page they've had 10 years ago or so. The one with highly trained monkeys. It was so funny and original at the time that I'm willing to give Google a pass on all error-monkey imagery as a grandfather exception.

    Edit: found a screenshot.

    IMG_20220216_105013.png



  • @BernieTheBernie said in UI Bites:

    actually, those "..." should be just 2 letters: "ck".
    How did they manage to use an ellipsis here?

    The ellipsisizing is autofuckic. There is a CSS style that does that for texts that don't fit and it's probably applied to the title, because they don't want it wrapped for some wrong reason. And for some other wrong reason they failed to make the box scale itself properly.



  • @topspin said in UI Bites:

    (Note the cut off text)

    It's in German (I assume). This is expected behavior.



  • @BernieTheBernie said in UI Bites:

    actually, those "..." should be just 2 letters: "ck".
    How did they manage to use an ellipsis here?

    :3px: (actually, probably just 1)



  • @Gąska said in UI Bites:

    It's a reference to the old error 500 page they've had 10 years ago or so.

    Given the level of support Google offers, I'm not sure they don't employ actual monkeys trained to push buttons.


  • Banned

    @BernieTheBernie said in UI Bites:

    @Arantor said in UI Bites:

    it probably fits fine in English and all the other languages are simply doing it wrong.

    actually, those "..." should be just 2 letters: "ck".
    How did they manage to use an ellipsis here?
    That's the question.

    I know how! I've done it myself.

    if (str.length() > MAX_LEN)
        str = str.substring(0, MAX_LEN) + "\u2026";
    

  • BINNED

    @Gąska except for variable width fonts. But same idea.


  • Banned

    This post is deleted!


  • The comedy of these is from ye olden times when we only had ... instead of a real ellipsis and you'd say have a limit of 25 characters, feed it a 26 character string and end up with a 28 character result.

    Good times.



  • @Arantor I had to explain to my product owner that deciding when and how to truncate text so it doesn't clip (when it can't wrap for other reasons) is hard. Especially on a variable width element nested under a bunch of other elements from the best place to know the width. And with variable size fonts and zooms.



  • @Benjamin-Hall good times!

    I remember having to do this on IE6 many years ago from a totally dynamic (as in literally everything was rendered from JavaScript) way and ended up writing the text to a div of a fixed size and rewriting it over and over taking a character off the end until it fit.



  • @Arantor said in UI Bites:

    ended up writing the text to a div of a fixed size and rewriting it over and over taking a character off the end until it fit.

    Programming confessions thread is :arrows:


  • BINNED

    @Arantor said in UI Bites:

    @Benjamin-Hall good times!

    I remember having to do this on IE6 many years ago from a totally dynamic (as in literally everything was rendered from JavaScript) way and ended up writing the text to a div of a fixed size and rewriting it over and over taking a character off the end until it fit.

    The fun thing is that is oh so close to the correct approach, but still so far.
    If you had all the necessary information available, like the engine has, you'd just use the font metrics to calculate what the most letters is you can get into the available space, one by one. Same idea, orders of magnitude faster/better (/harder/stronger).



  • @topspin Work is never over!


  • Discourse touched me in a no-no place

    @topspin said in UI Bites:

    except for variable width fonts

    Yes, they make things quite a bit more complicated as you need access to the font rendering engine to measure things (this isn't a problem BTW; measuring text in a specific font is one of their fundamental services). The real problem is that you can't just go back one character at a time until things fit because you can have multiple characters per glyph. 😒


  • Discourse touched me in a no-no place

    @topspin said in UI Bites:

    If you had all the necessary information available, like the engine has, you'd just use the font metrics to calculate what the most letters is you can get into the available space, one by one.

    You have to handle combining characters too.


  • Considered Harmful

    @dkf said in UI Bites:

    @topspin said in UI Bites:

    except for variable width fonts

    Yes, they make things quite a bit more complicated as you need access to the font rendering engine to measure things (this isn't a problem BTW; measuring text in a specific font is one of their fundamental services). The real problem is that you can't just go back one character at a time until things fit because you can have multiple characters per glyph. 😒

    \X is your friend, at least if you have another friend who's a decent regex engine:

    $ perl -CS -Mutf8 -E'for("àș‚àș”້ເàș«àșàș·à»ˆàș­", "Người") { say for  /\X/g; say "" }'
    àș‚àș”້
    ເ
    àș«
    àșàș·à»ˆ
    àș­
    
    N
    g
    ư
    ờ
    i
    


  • @LaoC said in UI Bites:

    \X is your friend, at least if you have another friend who's a decent regex engine:

    Data, is that you?


  • Considered Harmful

    @LaoC note however, that Perl is no-one's friend. It plots against you even now.


  • Notification Spam Recipient

    @Rhywden said in UI Bites:

    @topspin Work is never over!

    Harder (to debug), better (for job security) , faster (to fail), stronger (to wack people with) ?


  • Notification Spam Recipient

    @Gribnit said in UI Bites:

    @LaoC note however, that Perl is no-one's friend. It plots against you even now.

    Ever since it was cast before the warthogs it has planned its revenue...

    Edit: revenge, even.


Log in to reply