• Coldus12@reddthat.com
    link
    fedilink
    English
    arrow-up
    3
    ·
    9 months ago

    This seems interesting, and I might try it.

    But… I’m kind of sick of web applicatioms. Why does everything need to be a web application or a “not” web app using electron. (In this case I see the use case and reason, but in general)

    • zef@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      6
      ·
      9 months ago

      I can’t speak to the general case, but let me answer why I picked the web app route in this particular case.

      This was/is my reality:

      1. I want access to my space from my laptop (mac), phone (iPhone) and tablet (iPad) and browny points for my Boox e-reader (Android) and even more browny points for just having access from any random computer in the world (with a web browser)
      2. I have a full-time job, and this would just be a hobby project
      3. I have been doing (or been involved in) web development for 25 years

      What are my options? I could go native and develop this either as a native iOS app and Mac app, and then do an Android app because why not. This is hypothetically possible, but would mean that 2 years in I’d probably not be anywhere near the functionality that SB has today.

      I could go with a cross-platform stack like react-native or Flutter. This would have been an option, I suppose, but neither of those stacks I fully trust in terms of long-term viability yet. And RN is not really built for desktop apps.

      Another part of the reality: CodeMirror exists (https://codemirror.net/). This is an amazing piece of engineering that took years to build, it’s a pretty amazing code editor that is very extensible and… it’s a web thing. Having to implement this natively would likely literally take me years.

      So I decided on the web app approach. I’ve had native wrappers (Electron and one for mobile apps) along the way, but ultimately removed them because they take too much time to maintain and test, and I’m just a one person army with a few hours available here and there. PWA support is pretty nice these days and gives you a reasonable experience at a reasonable development cost. It’s a good trade off.

      Would I make different choices given infinite time and resources? Absolutely, but you know… reality.

      This is my story and it doesn’t apply to everybody, but likely other projects have similar reasons.

      • SchizoDenji@lemm.ee
        link
        fedilink
        English
        arrow-up
        0
        ·
        9 months ago

        If you’re using it on the host device, web apps make zero sense. But web apps provide the flexibility of using it with any device.

        • rickyrigatoni@lemm.ee
          link
          fedilink
          English
          arrow-up
          0
          arrow-down
          1
          ·
          9 months ago

          You can use a regular program on any device if you save your workspaces and configs on a NAS or any number of file synchronization systems.

    • SayCyberOnceMore@feddit.uk
      link
      fedilink
      English
      arrow-up
      0
      ·
      9 months ago

      Generally, user interfaces are hard work. If you just want to code, then having a web app means you’re already 50% done.

      Actually should be 90% done, but each browser has differences which means more coding… I’m looking at you, Internet Explorer

      • bluGill@kbin.social
        link
        fedilink
        arrow-up
        0
        arrow-down
        1
        ·
        9 months ago

        mobiles and desktops are very diffrerent and need different user incerfaces. So you are not savin, much work. In fact trying to handle both in on may be worse because of all the special cases. Be glad you don’t have to support teletypes, they demand different user interfaces.