The theorem has been expressed colloquially as “you can’t comb a hairy ball flat without creating a cowlick” or “you can’t comb the hair on a coconut”.

  • ltxrtquq@lemmy.ml
    link
    fedilink
    English
    arrow-up
    10
    ·
    2 days ago

    Whoever posted the link was on mobile at the time and didn’t feel like deleting the m. after copy pasting.

        • nogooduser@lemmy.world
          link
          fedilink
          English
          arrow-up
          6
          arrow-down
          1
          ·
          2 days ago

          It would be better to handle it by detecting what device you’re on rather than having encoded into the url. That way it wouldn’t matter what device the page was shared from.

          • sga@lemmings.world
            link
            fedilink
            English
            arrow-up
            5
            arrow-down
            1
            ·
            edit-2
            2 days ago

            usually it is just a redirection. One of the reasons wiki does this is that their stack is more older device friendly (for the most part, you can use wikipedia perfectly fine without any js), and having adaptive view usually requires js (there are some other ways too), but wiki is constrained. So when browser recieves a request from a mobile user agent, they just redirect to mobile site.

              • sga@lemmings.world
                link
                fedilink
                English
                arrow-up
                1
                arrow-down
                1
                ·
                2 days ago

                That may be the case, but i have seen websites use js for it. Another thing is, what version of css does wikipedia target, as ye older verisons might not have that.

                • FooBarrington@lemmy.world
                  link
                  fedilink
                  arrow-up
                  3
                  ·
                  2 days ago

                  Sure, some websites do that, but it’s simply wrong to say “having adaptive view usually requires js”. No, it doesn’t, usually responsive design doesn’t need JS.

                  If a browser doesn’t support media queries, it would just show the desktop version. Media queries have been broadly supported since 2015. It’s possible that Wikipedia still targets older browsers, but IMO it would be fine to show the desktop version on mobile browsers older than that.

                  • sga@lemmings.world
                    link
                    fedilink
                    English
                    arrow-up
                    1
                    arrow-down
                    1
                    ·
                    2 days ago

                    Even in my original comment i said there are non js ways. But what i primarly meant here is, there are differnt “ideas” of implementing a mobile site, some just change element sizes, and make them vertical viewing friendly, but others do change quite a lot, for example, remove most clickable items from the header-bar or title bar, and move them to a kebab/hamburger menu. And I know even this particular example can be done in pure css, but I still feel my statement is not simply wrong.

                    Also I am not a front end dev, so I am sorry if I get stuff wrong.

            • jagged_circle@feddit.nl
              link
              fedilink
              English
              arrow-up
              3
              ·
              2 days ago

              Its not just old devices. I turn js off for security. There’s a whole class of high-risk users that this is for. Even on modern hardware and software.

              • sga@lemmings.world
                link
                fedilink
                English
                arrow-up
                2
                arrow-down
                1
                ·
                edit-2
                2 days ago

                me too, i was simplifying it. I have a global js disable rule, and whitelist a shorter list

          • jagged_circle@feddit.nl
            link
            fedilink
            English
            arrow-up
            2
            arrow-down
            1
            ·
            edit-2
            2 days ago

            That’s a terrible idea. Because many users change their user agent for security.

            No, you can’t expect to detect what devices someone has. That’s the thought process of an inexperienced dev.

            • nogooduser@lemmy.world
              link
              fedilink
              English
              arrow-up
              1
              arrow-down
              1
              ·
              2 days ago

              They already do this to redirect from the desktop view to the mobile view so they could do it the other way but don’t for some reason.

              If a user changes their user agent to something that would cause a site to not be able to determine whether they are on desktop or mobile then they can expect that some sites aren’t going to work well.

              • jagged_circle@feddit.nl
                link
                fedilink
                English
                arrow-up
                3
                ·
                2 days ago

                The problem is that the site tries to detect the device type. If you let the user choose it and make it sticky by domain, you dont have that issue.

                • nogooduser@lemmy.world
                  link
                  fedilink
                  English
                  arrow-up
                  1
                  arrow-down
                  1
                  ·
                  2 days ago

                  But your users have the problem that they go to the wrong site if someone on a mobile device shares a link when you’re on desktop.

                  It just seems inconsistent for them to detect mobile devices but not desktop devices.