• Thorry@feddit.org
    link
    fedilink
    arrow-up
    23
    ·
    14 hours ago

    Oh but it can be so much worse. I’ve had to work with a task management system of a company I was doing some jobs for. This system was the absolute worst. It’s one of those SPA this isn’t a website but an app kind of thing.

    First thing I hated, as soon as you did anything, it was immediately done. Edit a title? It saves all the time, so other people see you editing. Click on a toggle, oops it’s toggled now, hope that didn’t just send an email to 30 people. Clicked somewhere in the page and it did something, but you aren’t sure what exactly? Sucks to be you. Just want to see what options pop up when changing some setting, nah it’s already set and screwed up everything.

    Another system I work with doesn’t do anything unless you explicitly click the save button. And for anything that does something right away, there is always a confirm prompt. I love that for business applications, when you do something you know what it was you did. And you can mess around with stuff, without worrying you’ve messed something up.

    But that cursed task management system was designed so you could just leave it open and the view would automatically update with any and all changes. That way you didn’t need to refresh and new stuff would always be seen immediately. Sounds like a pretty nice feature and something I would actually want (even though I do like the old refresh to make sure it’s up to date and not stalled in the background). However the way they implemented this was to have a view state. That view state was what you wanted to see and would be kept updated. Navigating wasn’t really navigating, it was just updating your view state to look at something else. This meant if you open two tabs and navigated in the first tab, the second tab would also change!

    Alright not the biggest of issues, just open up another browser profile or incognito or something and log in to for example compare two sets of data. NO! They connected the view state to the account, not the session! I simply couldn’t believe it when I first ran into this. And the app had no way of opening two tasks side by side, it was infuriating. For a second I even contemplated getting a second account, but of course it was one of those SaaS things that you’d have to pay for per account.

    • four@lemmy.zip
      link
      fedilink
      English
      arrow-up
      6
      arrow-down
      1
      ·
      13 hours ago

      Syncing the view state between different browsers is pretty impressive. Too bad they were to preoccupied with whether they could

      • ngdev@lemmy.zip
        link
        fedilink
        English
        arrow-up
        2
        ·
        8 hours ago

        i dont think its all that impressive tbh, instead of using local/session storage for state they use a server

  • 56!@slrpnk.net
    link
    fedilink
    arrow-up
    35
    ·
    edit-2
    13 hours ago

    In Firefox you can also middle click the reload button to duplicate the tab.

    Edit: other things you can middle click:

    • The back and forwards buttons: does, what the buttons do in a new tab, while duplicating the tab history.
    • The new tab button: open a new tab directly after the current tab (and in the same container as the current tab).
    • Items in the URL bar (such as autocomplete suggestions, the thing you just typed, or your frequent pages): opens them in a new tab (at the end though for some reason)

     

    You can also Ctrl+click all of these for the same result.

    • TJA!@sh.itjust.works
      link
      fedilink
      arrow-up
      14
      arrow-down
      1
      ·
      15 hours ago

      No that’s the other way around. They are just so poorly programmed that they don’t use the normal mechanisms. Everything has to be reimplemented to work in that app. If you don’t think of a basic feature in the beginning, you have a very bad time. And since a lot of SPAs nowadays are programmed as “App”. They do not even have the concept of multiple tabs.

      I am using an open source tool where there is an open ticket for years to make opening a link in a new tab possible. But because of the multi platform framework it seems very much impossible to implement.

      This is the state of frontend development. Every few years they need to reinvent the wheel and sometimes they forget a place for the axle.