• 0 Posts
  • 123 Comments
Joined 1 year ago
cake
Cake day: July 3rd, 2023

help-circle


  • madcaesar@lemmy.world
    cake
    toProgrammer Humor@lemmy.mlUsers
    link
    fedilink
    arrow-up
    3
    ·
    2 months ago

    Exactly. I’d also like to add, look at Google stuff their ui / ux is routinely horseshit. So don’t tell me there are ui/ux gurus out there GIGAchading user interfaces.

    A lot of this shit is trial and error and even then they still fuck it up.

    Make it accessible, make it legible and then fine tune it after.




  • Very interesting. Actually the part you mention about there being an initial 'btn' class is a good point. Using arrays and joining would be nice for that. I wish more people would chime in. Because between our two examples, I think mine is more readable. But yours would probably scale better. I also wonder about the performance implications of creating arrays. But that might be negligible.


  • Ok how about this then, I frequently do something like this:

    let className = 'btn'
      if (displayType) {
        className += ` ${displayType}`
      }
      if (size) {
        className += ` ${size}`
      }
      if (bordered) {
        className += ' border'
      }
      if (classNameProp) {
        className += ` ${classNameProp}`
      }
    

    How would this be made better with a functional approach? And would be more legible, better in anyway?









  • I don’t know how to phrase this, and it’s just my silly opinion, but I also think the thing that has changed is that our populations have gotten so large with enough chunks of it financially illiterate that it’s become impossible to put pressure on corporations.

    What I mean is, for every one of YOU there are 3 idiots that will pay the inflated price and put it on the card because they don’t know / care how to spend.

    It’s the same trend everywhere.

    Cars, heated seat subscription? Something that should instantly nuke a company, barley does anything because enough idiots with money are buying it.

    1000 $ phones with less features? Again, idiots buy it.

    You can go down any of the enshitification targets and you’ll find a ripe group of consumers allowing the company to hold out and wait until you and I HAVE to buy their product at inflated prices because we’re reached a point where our old item has died.

    That is the trend that I’ve noticed. Bad behavior isn’t getting punished because enough morons are oblivious.