61 points · by mooreds · 2y ago · 83 comments
The toolkits, the apparently billions of dependencies, the vastly complicated build processes.
I tried again recently. HTML file and a separate JS file. Some SVG elements with a click handler.
I had mouse in and mouse out logic, and that worked great. But for some reason the click handler did not.
I tried it in Safari, Chrome, and Firefox. It worked in Firefox. It did not work in Safari, it did not work in Chrome.
Turns out in Safari, my Ad Blocker was hijacking my click handler. Chrome, still not sure what’s happening there.
But I projected what happened in Safari out to the wild. “Can’t get your app to work.” Except instead of a 50 line experiment, it’s a gazillion lines of God knows what 87 levels removed from whatever code I actually wrote.
Cross browser Hell. It’s supposed to be a sandbox only to find out the cat got there first.
And I give up. Again. It’s not my livelihood. It’s a hobby. I encountered these quickly enough to thwart me before I’ve actually invested any real time. Like starting out on a vacation and you have a flat tire and the drain plug pops out before you get out of town. Maybe there’s a cosmic message here.
And I feel stupid. Obviously folks manage, but I keep getting knocked down and kicked.
The idea of pain free distribution via a PWA is really alluring. I’d like it to work. But it seems every time I get back up, the lights go out again and the corners of the cabinets seek my head.
But then I think back to my rock climbing days, a friend used to climb in shorts. And I asked didn’t it hurt when he used his knees? He answered “it’s not supposed to hurt?”
Is it supposed to hurt?
Most "full-stack" developers I know that write web apps have literally never written a line of C++ in their life, let alone written a rich text editor using an object oriented desktop GUI API.
They don't know it's not supposed to hurt.
You're just looking at the past with extremely rose tinted glasses.
It's way,way easier to implement a UI like in the 90s with hmtl5. You're just trying to make a modern UI with all it's bells in whistles and now complain how complicated it is.
The tech ain't any more complicated. The software you're imagining has a waaaay more complicated UI then what you did in the 90s
Dude, some of us still write 90s style code, even Delphi style stuff (FreePascal and Lazarus), and can still compare it everyday to modern web dev.
It was better without any "rose tinted glasses" needed.
Same for 00s C#/.NET or even "classic" Visual Basic - dead easy to make even an elaborate UI going.
>It's way,way easier to implement a UI like in the 90s with hmtl5.
No, it really is not. What you're describing is some simple form, as if 90s UIs were constrained to that.
>The tech ain't any more complicated. The software you're imagining has a waaaay more complicated UI then what you did in the 90s
Not even close to being right. Most web apps including Electron apps are dead simple and primitive functionality wise compared to the 90s (including not having all the functionality one got for free via integration with the OS), but their codebases and dev platforms are still over-engineered and haphazardly-engineered monstrocities. And then there's the resource consumption.
As an example, there is no standard, no-one-gets-fired-for choosing complex table widget that can sort, filter, paginate, re-order, etc its rows/columns. Many of them fall just shy of a prod-ready implementation.
It was (it still is) SHIT (there are technically valid reasons), but being shit from moment 1 it was absolutely necessary to create a builder for that.
While simple UI in HTML5/js/css is wonderful to make, any user-contribution system (drag and drop builders, editors and what-have-you) is hell to manage and develop, breaks a lot more than you may think, has bold performance issues. The stack is shareware as a service, it's crazy, it's laughable thinking that probably the multi-billion system required for A-grade GPTs is more cost-efficient than living like we are accustomed to in big web development.
Hm, it is really not that bad anymore. Only if you target bleeding edge features, you will usually have issues. But a mouse click handler? I never managed to not have that working. Also I like vanilla JS. Web Apps can be really simple, if you avoid the bloat.
Current browser market share: Chrome 64%, Safari 20%, Edge 5.3%, Samsung Internet 3.5%, Firefox: 2.2%
https://www.similarweb.com/browsers/
It is hard justifying extra effort for those 2.2% marketshare, unless you count in idealism. And most companies are there for profit.
But nothing has as thorough documentation as I'm used to in native / systems programming. It's all rando tutorials and incomplete/outdated web pages.
Weeks later, I have something barely working, but it looks ugly as sin because there is no nice, well-documented GUI library like Qt, wxWidgets, and so on. And the ones that are decent would require me to rewrite my whole app around them. I find JQueryUI which is still at the level of banging rocks together to create fire. In fact, the whole process of putting a web app together feels like I'm using stone tools and blunt chisels instead of the C++ workshop full of power tools and well-lit workbenches.
I don't know how developers can live with this pain. Good for y'all--I couldn't do it day in and day out.
I too was daunted like you and that's why I chose Dart/Flutter. Though if you're wanting web technologies I'd consider looking into: https://leanwebclub.com/
Nothing to do with them but they're all about franework-less web technologies.
Instead start with pure HTML, SVG, CSS and JavaScript. Use MDN for documentation. Pick one browser to develop on (any one will do).
Why? Most importantly you are learning how the low level browser code works, and you are building your own taste about using the core languages. Just like learning machine code helps with your C++ development.
You don't need build processes unless you are developing commercially. The frameworks provide opinionated APIs, but they are often too abstract and are providing complex enterprisey features.
There is not that much difference between browsers now. And jQuery is bollocks (it was mostly golden for adding code to HTML pages that were served from a back end).
If you want to get a webdev job then maybe do some thinking on what framework and tools you want on your resume, and learn that framework/tooling after you have mastered non-framework browser development. But my guess is that webdev is likely not a good fit if you like engineering your software.
My experience is now outdated, but I wrote my own framework which morphed over time as we supported other browsers and newer versions of browsers. I started my career on embedded software, so perhaps I am more cynical than most! My framework was far better engineered than most (for the reliability we needed). Other frameworks delivered on other goals that were not aligned with our needs.
It is a very frustrating road writing pages for browsers because everything feels arbitrary and you have very little control over the engineering and you are at the mercy of browser quirks: you are often forced to come up with shitty expedient solutions that work if you are dong commercial work, and I very rarely felt clean. There is no beauty to web development: it is dirty work that I would try and do the best I could to achieve the outcomes we needed. Compromising constantly...
Thanks for this pithy summary. Beauty is the perfect one-word difference between what programming can be and what the web stack is.
Even today, big chunk of React is masking the subtle differences in event handling and other things. And whilst it forces you into a paradigm, I've never had a bug caused by the internals of React that I've had to dig into. But maybe I'm lucky or only do simple stuff?
As to it hurting, I guess I'd say, use the protective equipment! Sure, it can be bulky and awkward occasionally, but it works and it's often better than the alternatives.
Even as someone who prefers making desktop apps, making Web apps should not be comparatively harder.
I don't think this is any different with web development, GUI programming, machine learning, embedded, or anything else. I did a bit of work with Pandas recently and spent the whole time going "but this is so dumb - why would it work like this?" In reality, it was not dumb, I was just inexperienced with the task and tools I was working with, and was running into problems because of that inexperience.
There are some ways to mitigate this, and good learning resources that show you how to get onto the happy path (without bombarding you with too many best practices up front) are worth their weight in gold. But I think it's very easy to forget what it feels like to learn something new, so often when we approach a new area of programming, we notice how difficult it is to learn, and that feels surprising to us - even though it surely took us a long time to get comfortable with the stuff we already know.
1. Land on the site by searching
2. Click on the preferred/compatible AppStore link
3. Optional step for tech savy users : Read commitments and review to check if something is dubious
4. Use the app for X weeks of trying period or until a fremium limitation is reached
5. Pay in one click when you choose or when a popup remind you that you must pay to lift some limitations
That 4/5 steps instead of the 17 described by the OP, and that's probably the true value of AppStores for Developers. (Are margins fair? that's up for debate! But it's unfair to ignore the added value)
Why? Because given no other context I cannot tell apart the decent from the bullshit, let alone the good. There are no differentiators because the storefront obviously accepts everything including the bull-est of shits, being paid-for or free-beer is hardly a useful measure these days (and $5 is nothing), and basically everything outside of a very small handful comes from no-name developers and publishers (bonus points if Suspicious Chinese(tm) names).
Back in ye olde days: I could count on stores since if they put something on their shelves they clearly sold enough volume. I could/can count on word-of-mouth websites with EXE and ZIP downloads. I could/can count on digital storefronts because their userbase could be trusted (eg: Steam, GOG).
Application stores? It's all just 300% noise.
There are app stores that are curated. F-droid and Linux repositories.
What do you want to do? Ask the eternally overworked BOFH of duty to go through the month-long approval process of deploying a superior desktop app to the org, or just pay the monthly fees of a SaaS (conveniently below the approval required threshold) and have a mediocre solution right now?
The AppStore’s ease and security is what saved native apps on mobile.
The new challenge is phones. Mobile browsers do not support the File System Access API.
What is a solution to this? Is there a reputable service that converts a web page into an Android/iOS app so that it can load and save files?
How many restaurant menus have I downloaded read once and never cleared off? I don't know. I also don't care. If I did care, I would want to use "Save As..." and save to google drive.
It's probably just that the users of phones are not that "robust" and organized to care where the files are.
On the android side the file browser that comes with the phone (if any) is bare bones. This combined with various sandboxing can make it pretty annoying to know exactly where your files end up.
Then there is the fact that the small UI on phones simply isn't all that great for browsing a large list of files.
So, putting it squarely on users isn't correct imho.
Unfortunately Safari on Desktop also doesn't support the File System Access API. Ditto for WebUSB, WebBluetooth, WebMIDI, etc. Whole classes of "desktop-lite" web apps that can only be shipped on Chrome.
It's kind of a hard sell to ship a web app that just doesn't work for normal users who bought a MacBook.
Phones are an old challenge for now. Their OS is made upfront to coerce the user in having their data dealt by someone or something else out of the phone, somewhere through an Internet connection.
For Firefox and Safari users, one can offer a fallback via "download file" and "upload file" functionality. Which is clunky, because it does not reliably remember the directory. So the user often has to navigate to the correct dir again. Also it does not offer to save with the same filename by default. So the user will be offered to download "myfile(2).txt" or something instead. But at least it works and you can tell your users to use Chromium for a better experience.
There's no reason you can't do this with desktop apps, put a chunk of the functionality on the server and obtain security that way.
The trouble with web apps is compute and storage performance, for a web app you're limited by the browser - not so much for a desktop. Its not really an issue for a bingo card creator, it is if you're making blender or autocad.
This is obviously valid, but considering how powerful even low-end computers are these days, I'd say that most of the stuff we do on a computer is more like bingo card creator than blender or autocad.
Software that is slow in spite of this is generally slow because it does a thousand network requests in the background.
A 2009-era argument could have been that desktop apps are more respectful of your privacy, but that ship has long sailed due to pervasive telemetry, and it wasn't really ever true for mobile anyway.
This is not what 2FA is.
The most surprising thing is that that this was in 2009. Web apps was not common back then.
I have one big gripe with this:
> Don’t treat your newbies like you treat your power-users. You have a database. It records all their actions since the dawn of time. Use it. I have a couple very simple heuristics for “is probably still getting used to the software” and, if you are, the software treats you with kid gloves. For example, it hides complex, seldom used options by default.
First of all, your heuristics are most certainly broken. Hiding options is infuriating, if you are trying to evaluate the software you get the wrong idea of what is possible.
If you've used it before but started a new account you suddenly don't feel at home. If you are following a guide or recommendation they suddenly don't work. If you read the documentation I truly hope it is very clear that a feature might be hidden and what to do to enable it.
If you even consider the above make it very clear that you are in a simpler mode and make it easy to switch.
The article is missing the down-sides/limitations of web apps though, especially from a user perspective. Bingo Card users are in luck that the author has kept maintaining the site for 15years, but I'd say 9/10 "web apps" would not last 5 years, where a desktop application, I could at least continuing using, assuming the activation doesn't require external checks.
And then in this day and age, you never know when the enshitification of applications sets in. Yes, this can happen to desktop applications as well, but as the author points out, it's much faster to release something "new" on the web. You can A/B test the web app to max profitability, regardless of user experience or user needs.
Finally, for more complex applications, the latency on desktop applications has been severely underplayed. With web apps and web apps as desktop apps, people have been pushed into a new expectation of how fast computers can be.
If your app does something on the users local machine (or a server) and cannot just exist in a browser then there is room for a desktop app.
You can run a local web server on a high port and connect to that as the web UI but not that many apps get away with that approach.