News for hackers. Stuff that matters.
Re:The web as a GUI toolkit by mrec on Thursday February 13, 2020 @01:28PM (#22320057)
> With the web almost everyone has a machine that has a programmable environment by default again. I feel this is a very important and powerful advantage that’s often overlooked.

As someone else who cut their teeth on an 8-bit micro back in the day, I agree with this 100%.

And I think it's a large part of the reason I'm so suspicious of the stampede in webdev toward very heavyweight toolchains over the past 5+ years; while they may have had the best of intentions, I think they do end up putting gatekeeper-ey accessibility barriers around the web's original rough democracy. It's not that the underlying technology has gone away, more that when someone starts looking around the mainstream web to see how things are put together, that's not what they're going to find.

Re:The web as a GUI toolkit by IshKebab on Thursday February 13, 2020 @01:45PM (#22320212)
I agree. Node, webpack, npm, babel, etc. all add a huge amount of friction to getting started. It doesn't help that they're all overly complex and every little thing has a different tool or configuration file.

It's a huge complex house of cards that nobody really wants to have to deal with. Compare it to writing a Qt app, or even something like a Flutter app. You pretty much just install an SDK and go file -> new project.

Re:The web as a GUI toolkit by kls on Thursday February 13, 2020 @02:17PM (#22320501)
Personally I would argue that it is no more complex than JSP/JSF/Spring or ASP.NET/Web Components / Web Forms, then you have to bolt on server side session management, state transfer and the other patterns that emerge from sending everything to the server. In my opinion doing all of the UI interaction on the client is easier to reason about and simplifies state management.

Now I would tend to agree that classic ASP / PHP was conceptually simple and probably simpler than the current client side landscape, but they where beasts at scale.

I am not arguing that the current state of client side is where we want to be, but in a lot of ways it beats where we have been, and that is how we got here. It will never compete with desktop development because the web just injects a while host of complexities into the mix that you circumvent with desktop where you are delivering from the run-time up. For better or worse, the browser, the webserver and the middleware stack all dictate how we get to go about building applications for the web.

Re:The web as a GUI toolkit by zerkten on Thursday February 13, 2020 @02:53PM (#22320857)
> In my opinion doing all of the UI interaction on the client is easier to reason about and simplifies state management.

Is this even true in most cases? You almost always have some state that needs to be in both places. The more you choose strategies to optimize for client-side development and treat the backend as just a store for "blobs" of data, the more problems you have given enough scale, requirements, or just the passage of time.

What you state is correct for a subset of applications, but it's not universally applicable. With enough time and experience you'll likely understand the limitations. I'm not going to keep arguing with you because your subset can get you very far, and it's probably the right thing to do for your needs.

> I am not arguing that the current state of client side is where we want to be, but in a lot of ways it beats where we have been, and that is how we got here. It will never compete with desktop development because the web just injects a while host of complexities

Can you elaborate on the complexities? The desktop (as in Win32, Qt, etc.) and the web are on different ends of a spectrum. With JavaScript frameworks we have an in-between. In many ways you can put native mobile development in the desktop bucket because they are effectively have similar constraints, although some of the ideas/tools are a more modern implementation.

When you try and build abstractions to make the web feel more and more like desktop you expose the limitations of web development. The web will support more and more application features, but progress is naturally going to be slow around the maturation of these features than if you had gone with full desktop. What's interesting is that the web keeps pace enough that it never gets eliminated from the race. This is very important part of web and why people keep betting on it.

Re:The web as a GUI toolkit by mrec on Wednesday February 19, 2020 @01:36PM (#22368523)
Oh, I'm not necessarily talking about going back to old server-side stacks, more that the heavy client-side stacks seem to get used all the time even if the problem didn't need them.

If you're writing something really horrendously complicated, yes, some sort of framework will help. If it's a little throwaway tool for internal or casual use, it's usually perfectly feasible to do the whole thing in one or two hundred lines of HTML+CSS+script. No tooling, no dependencies. It's so much quicker and so much less painful, and yet bizarrely people look at you like you're a wizard because the whole thing is 5k uncompressed and doesn't even need a webserver.

Re:The web as a GUI toolkit by yyyk on Thursday February 13, 2020 @10:07PM (#22323658)
"Personally I would argue that it is no more complex than JSP/JSF/Spring or ASP.NET/Web Components / Web Forms"

Both of these stacks are themselves deprecated and replaced by better solutions in the same ecosystem. "We're only as bad as 10-15 year old stacks" is hardly a compelling argument.

Re:The web as a GUI toolkit by unlinked_dll on Thursday February 13, 2020 @02:27PM (#22320590)
That sounds ridiculously more complex than clicking "new project" and just going with it.
Re:The web as a GUI toolkit by kls on Thursday February 13, 2020 @02:35PM (#22320676)
No, I want to be clear, I certainly was not arguing that point, just making the point that I view the current state as an advancement over where we have been, in relation to past web development trends.
Re:The web as a GUI toolkit by AnIdiotOnTheNet on Thursday February 13, 2020 @02:02PM (#22320360)
Or compare it to something like Lazarus, where you install the environment (sadly it is not at all portable) and can construct GUI applications with a WYSIWYG editor that compile directly to native binaries for multiple platforms.
Re:The web as a GUI toolkit by unlinked_dll on Thursday February 13, 2020 @02:30PM (#22320622)
GUI editors always go in cycles, and we always come back around to writing code as the editors can't represent the things we want to do.
Re:The web as a GUI toolkit by AnIdiotOnTheNet on Thursday February 13, 2020 @02:38PM (#22320700)
Except for a huge number of use cases where they can, of course. Obviously not everything can be abstracted away, but things like Lazarus or HyperCard or even Excel offer a starting off point for people to build powerful tools to solve their problems without acquiring a traditional programming education, and offer a ramp into programming for when people need to do more with those tools.
Re:The web as a GUI toolkit by preommr on Thursday February 13, 2020 @02:41PM (#22320739)
It's still possible to get 99% of the results with 1% of the effort using something like parcel+(vue/react).
Re:The web as a GUI toolkit by IshKebab on Thursday February 13, 2020 @03:05PM (#22320965)
Right but part of the problem is the proliferation of different tools. If I choose Parcel I can no longer use Vue CLI, and 99% of documentation, blog posts, stackoverflow answers etc. no longer apply. Plus I have to learn what Parcel is.
Re:The web as a GUI toolkit by Kerrick on Thursday February 13, 2020 @05:29PM (#22322068)
This is why I've stuck so strongly with Ember for web development. Even with the modern edition of Ember, Octane, it's as simple as `ember new my-project` and off you go. No choices to make, no toolchains to configure, just writing productive code.
Re:The web as a GUI toolkit by zelcon on Thursday February 13, 2020 @11:20PM (#22323929)
Qt, Flutter, JavaFX, hell even Swing is infinitely better than any JS framework. Easier to get started with. Easier to ship. Easier to maintain. Easier to do actual, you know, computer stuff with because you can do actual I/O and talk to the OS. It's not even in the same solar system as JS, from either the user's or the developer's perspective.

The state of the art in web is React which is an ad-hoc, informally-specified, bug-ridden, slow implementation of half of Win32's UI loop.

Re:The web as a GUI toolkit by Aperocky on Thursday February 13, 2020 @11:34PM (#22323987)
Could have been, but I’m happy to develop in js and upload it so anybody could just visit the site and run. Build till worldwide is infinitely faster. Especially for smaller projects. e.g

http://aperocky.com/prehistoric

Re:The web as a GUI toolkit by zelcon on Friday February 14, 2020 @12:05AM (#22324092)
This is cool but it would have been easier to build in Java or Dart or C++.
Re:The web as a GUI toolkit by hombre_fatal on Friday February 14, 2020 @01:14AM (#22324346)
Meanwhile, I don't think any of the non-web client platforms can compete with how nice it is to develop web clients, from React to Elm to trivial async-everything + async/await + the simple Promise and concurrency management. Just to give you another viewpoint.
Re:The web as a GUI toolkit by xyz0 on Thursday February 13, 2020 @02:09PM (#22320429)
Sure, modern JS tooling is complex, but a 14-year-old just looking to play around with programming isn't going to build a Facebook clone as their first project. You can always create a barebones HTML file and drop some JS into a `<script>` tag and be up-and-running in two minutes. If you don't want to use modern tooling that was designed for large-scale SPAs, then don't.
Re:The web as a GUI toolkit by kart23 on Thursday February 13, 2020 @04:32PM (#22321640)
I was really turned off by react because of the necessity to use JSX, which in turn required me to use babel, its just adding too much complexity. So I'm still just using jquery.
Re:The web as a GUI toolkit by Signez on Thursday February 13, 2020 @05:11PM (#22321939)
I would suggest you to take a look at Vue; you can use it without any transpiler or heavy toolchain, just adding a good ol' script tag in your headers and voilà. The getting started guide [1] is awesome and translated to a gazillion of languages, so it also helps :)

I recommand Vue to any Javascript beginner that want to add interactivity to their page without having to handle the DOM manipulation themselves.

[1]: https://vuejs.org/v2/guide/

Re:The web as a GUI toolkit by pjmlp on Friday February 14, 2020 @02:24AM (#22324650)
That is what I love about it.
Re:The web as a GUI toolkit by pier25 on Thursday February 13, 2020 @05:18PM (#22321995)
I hated JSX too when I started doing React 4-5 years ago. Then I used Vue for a couple of years in part because of templates.

After that I tried InfernoJS which uses JSX because I needed the performance for a project and now I've turned around on JSX.

Personally I couldn't go back to template based frameworks like Vue or Svelte because they usually put you into this one component per file mindset. I much prefer being able to create micro-components in the same file like say buttons or table rows.

The thing that annoyed the most with JSX was that writing conditionals and loops inline was ugly or a pita. Then I discovered this Babel plugin and I love it:

https://github.com/AlexGilleran/jsx-control-statements

Re:The web as a GUI toolkit by xodeus on Thursday February 13, 2020 @07:21PM (#22322753)
That plugin is the worst thing I've ever seen
Re:The web as a GUI toolkit by iaml on Thursday February 13, 2020 @09:14PM (#22323418)
I'm currently working on a project where some people had a bright idea of implementing this exact <If /> via a component instead of babel transform, so not only it looks like shit, it also breaks if you mention something that doesn't exist at this point...
Re:The web as a GUI toolkit by Quekid5 on Friday February 14, 2020 @11:37AM (#22327916)
Some reasoning would be nice.

I'm guessing this is mostly a nicety to paper over the fact that 'if' is not an expression in JS, so you have to do things like

    var foo;
    if (something) {
       foo = <SomeComponent.../>;
    } else {
       foo = <OtherComponent .../>;
    }
    
    <Container>
       {foo}
    </Container>
whereas if JS has if-expressions, you'd just say

    <Container>
       {
         if (something) {
            <SomeComponent.../>;
         } else {
          <OtherComponent .../>;
         }
       }
    </Container>
(or similar). From that perspective it seems like a nice little thing to have.
Re:The web as a GUI toolkit by lasagnaphil on Saturday February 15, 2020 @03:57AM (#22334123)
Dart actually observed this exact thing and added if expressions inside the language; more exactly, "if" works as an expression if it is inside of an initialization of a collection. It might seem a bit less elegant that the semantics of such an important token changes with context, but I think it solves this particular problem pretty well.

Dart also has spread operators and for-expressions to make writing "UI with code" much easier. It's fresh to see how language design choices are being made more by pragmatic ones (for Dart it's the fact that it's primarily being used for Flutter to make UIs) instead of ideological ones (One might claim that "if" should be a pure expression following the tradition from functional languages like ML, but that also has its own set of problems in a language designer's perspective)

https://medium.com/dartlang/making-dart-a-better-language-fo...

Re:The web as a GUI toolkit by Quekid5 on Saturday February 15, 2020 @02:00PM (#22337155)
Yup, it's such a small thing, but it actually makes a huge difference. C++ has the same problem when dealing with optionals, etc. etc.

(I know absolutely nothing about Dart, but it does sound a bit weird that the expression-ness of an if is contextual. Is there a good underlying reason for the exceptionalism here?)

Re:The web as a GUI toolkit by pier25 on Thursday February 13, 2020 @08:38PM (#22323245)
How come?
Re:The web as a GUI toolkit by Legion on Thursday February 13, 2020 @11:54PM (#22324046)
I'm not the person that insulted the plugin, but I had a less than positive reaction to it too. I would say that this is putting into the template what belongs as JavaScript.

In pretty much every case, where the README shows the "before transformation" and "after transformation" comparison, the "after" part is what you should be writing to begin with. This feels like adding an extra layer of abstraction just for the purpose of not learning to do some simple things in JavaScript itself.

I would be pretty annoyed if I started working on an existing React project and it had that sprinkled across all the components.

Re:The web as a GUI toolkit by claytongulick on Thursday February 13, 2020 @09:35PM (#22323525)
Try lit-html. You'll never look back.
Re:The web as a GUI toolkit by MR4D on Friday February 14, 2020 @12:21PM (#22328256)
If the cleanliness of their website is a hint to their usability, then this might catch on fast!
Re:The web as a GUI toolkit by atrilumen on Friday February 14, 2020 @04:51AM (#22325279)
Try Choo (4kb ninja sword).

I think the design really nails it: just enough architecture, tagged template literal rendering, functional DOM tree composition with an optional component system.

I prefer to avoid stateful components in favor of pure rendering functions, as much as possible.

Choo's renderer is based on morphdom, which is interesting because it diffs against the real DOM rather than maintaining a virtual one.

I use monoapp, which is a fork of Choo allowing you to bring your own renderer (such as lit-html).

https://github.com/choojs/choo

https://github.com/jongacnik/monoapp

Re:The web as a GUI toolkit by hastes on Thursday February 13, 2020 @04:45PM (#22321730)
I would look into CRA (https://github.com/facebook/create-react-app). It handles all the Babel/Transpiling/Webpack mumbo-jumbo for you so you can focus on writing code.

Although I would eventually recommend learning how to utilize Babel & Webpack yourself because knowing why and how it works is useful.

Re:The web as a GUI toolkit by brlewis on Thursday February 13, 2020 @04:53PM (#22321815)
If kart23's objection to complexity is how long it takes to get up and running, I agree about CRA. I agree about knowing the why of Babel and Webpack. But how they work isn't something everybody has to learn.

If it's some other objection to complexity, I'd recommend learning modern web dev using https://mithril.js.org/ which can use JSX, but in documentation the non-JSX form is primary.

Re:The web as a GUI toolkit by pier25 on Thursday February 13, 2020 @05:20PM (#22322016)
I second Mithril with JSX. I've been using for a couple of months and it's amazing.

I started working on making the JSX docs a little better but got stalled... hopefully I will have some time later this month.

https://github.com/MithrilJS/mithril.js/pull/2551

Re:The web as a GUI toolkit by spankalee on Thursday February 13, 2020 @05:06PM (#22321903)
You might like lit-html, which has a very similar structure as JSX, but does so with standard JavaScript: https://lit-html.polymer-project.org/

React:

    const Welcome = (props) => <h1>Hello, {props.name}</h1>;
    ReactDOM.render(<Welcome name="Taylor" />, document.getElementById('react-welcome'));
lit-html:

    const welcome = (name) => html`<h1>Hello, ${name}</h1>`;
    render(welcome('lit-html'), document.getElementById('lit-welcome'));
Re:The web as a GUI toolkit by Scarbutt on Thursday February 13, 2020 @05:18PM (#22322000)
What do you get in return for losing all the react ecosystem?
Re:The web as a GUI toolkit by spankalee on Thursday February 13, 2020 @05:36PM (#22322112)
Less required tooling, better performance, smaller bundle sizes, and more interoperability.
Re:The web as a GUI toolkit by zelcon on Thursday February 13, 2020 @11:13PM (#22323905)
disclosure: this is your project
Re:The web as a GUI toolkit by victorvation on Thursday February 13, 2020 @08:28PM (#22323174)
React is usable without JSX, which is just syntactic sugar for `React.createElement()` calls. If it's the complexity of babel/tooling that turns you off, it's also possible to use _just_ JSX without other transpilation steps: https://reactjs.org/docs/add-react-to-a-website.html#optiona....
Re:The web as a GUI toolkit by kart23 on Thursday February 13, 2020 @10:19PM (#22323712)
I know I can use just JSX, but it looks really ugly, plus I have to set all the html attributes in createElement.

I guess my bigger complaint is that its all 'possible', but not recommended for production, its going to slow down your site in some way, etc. There are always drawbacks to not using the recommended way. Its like eating soup with a spork. Yeah you can do it, but its going to take you a lot longer than with the proper tool.

Re:The web as a GUI toolkit by CSSer on Friday February 14, 2020 @08:16AM (#22326199)
Not sure what you mean by necessity. I promise I’m not trying to be pedantic, but it’s not required. Plus, there are other, newer JS frameworks out there that use html templates and the like. The struggle is just maintaining valid HTML.
Re:The web as a GUI toolkit by Sophistifunk on Thursday February 13, 2020 @04:53PM (#22321812)
You don't need to use JSX, it just makes things nicer. But if your project doesn't already have enough complexity that it needs some sort of build tool, then react is probably overkill for your project anyway.
Re:The web as a GUI toolkit by kart23 on Friday February 14, 2020 @02:23AM (#22324644)
I dont use any build tool right now. You're right, I'm not building the most complicated thing in the world, but my site would definitely benefit from using react and I mostly want to switch to make future things easier, and jquery is already becoming pretty annoying.

Theres pages of content that can be sorted and filtered, so I mainly want to use it to dynamically update the elements, with the data coming from ajax calls.

Re:The web as a GUI toolkit by ramijames on Friday February 14, 2020 @12:27AM (#22324173)
I was also really turned off by JSX. It still feels like an abomination.

I love the fuck out of Vue.js/NUXT though.

Re:The web as a GUI toolkit by tsukurimashou on Friday February 14, 2020 @03:34AM (#22324958)
unless you have to support internet explorer, modern browsers have a lot of native functions and APIs that can replace jquery easily (been hearing that for years, but last time I checked it really looked promising)
Re:The web as a GUI toolkit by ferzul on Thursday February 13, 2020 @07:15PM (#22322718)
if you want to skip jsx, just write React.createElement(ComponentName, props) and your done. jsx just makes it a bit simpler to read, so no one feels tempted by horrible angular like template languages shudder
Re:The web as a GUI toolkit by zelcon on Thursday February 13, 2020 @11:31PM (#22323973)
Honestly I would not shed a single tear if node.js and npm got thanos'd out of existence overnight. It is hands down the worst thing to happen to software, arguably even worse than C.
Re:The web as a GUI toolkit by josefx on Thursday February 13, 2020 @06:07PM (#22322300)
> You can always create a barebones HTML file and drop some JS into a `<script>` tag and be up-and-running in two minutes

Local "file://"? That isn't even trusted, current browsers outright block simple functionality like loading other files with XmlHttpRequest by default. You either have to completely disable various security settings or spin up a simple http server. At least I think that http is still enough for localhost, with the push for https you might want to set up a LetsEncrypt cert before you even think about starting a JS Hello World.

Re:The web as a GUI toolkit by Quekid5 on Thursday February 13, 2020 @06:49PM (#22322555)
Not to put too fine a point on it, but is

> loading other files with XmlHttpRequest

simple functionality? To me that actually does sound kind of like an 'advanced' thing to even think of from a beginner's perspective... i.e. someone who's just trying to learn to make a web page with perhaps a little bit of interaction.

(But then, maybe my idea of a beginner's level of ambition is hopelessly old-fashioned, I don't know.)

I do think that it would be great if there were a way to tell a web browser through its Dev-thingy to actually serve a folder to itself as if it were served by a bona-fide web server with HTTPS. I mean, it's not that hard to start a python-http-module-server, or install the npm module 'http-server' (or whatever it's called), but y'know...

EDIT: I don't necessarily disagree with you, but I think it may be a matter of degree.

Re:The web as a GUI toolkit by jimbosis on Thursday February 13, 2020 @10:58PM (#22323855)
> I do think that it would be great if there were a way to tell a web browser through its Dev-thingy to actually serve a folder to itself as if it were served by a bona-fide web server with HTTPS.

I'd like to plug Beaker Browser as an amazing tool for getting started with barebones HTML, CSS, and JS. I would say Beaker marvelously fulfills this wish for a browser to serve a folder to itself.

https://beakerbrowser.com/

Because it is built around the peer-to-peer dat:// protocol, it also ends up being "local-first" regarding web pages that you write with it (as well as sites that you decide to seed).

@staltz has an interesting presentation on the utility of Beaker Browser: https://staltz.com/beaker-frontend-dev-dream-browser/#0

On the other hand, I don't know enough to speak to Beaker's capabilities with XmlHttpRequest.

Re:The web as a GUI toolkit by nkrisc on Friday February 14, 2020 @08:39AM (#22326370)
When I was a teenager learning how the web works I used the free version for MAMP for this. It was super straightforward, as I recall. Open it up, choose a folder, and serve. I think it even included PHP.
Re:The web as a GUI toolkit by forgotmypw1 on Thursday February 13, 2020 @09:32PM (#22323504)
i share your frustrations, especially as a retro and nojs fan.

today, for now, it's still mostly workable, with some fiddling, and yes, setting up a local web server.

Re:The web as a GUI toolkit by GuiA on Thursday February 13, 2020 @03:40PM (#22321229)
In my experience teaching 14 year olds, that is precisely the kind of thing they first want to build: the things they know and use everyday (in 2020 it’s more likely to be Snapchat/Instagram/TikTok than Facebook, but the point remains).

And indeed, with a batteries included kind of solution like PHP/MySQL, one can build a basic Facebook like in a week long workshop or so. You won’t understand everything that’s going on under the hood of course, but the fact remains that it’s way more accessible than the webpack/Babel/react.js/etc stacks that web devs push these days (waiting for the inevitable “oh no one uses webpack anymore, it’s all about ChirpChirp.js these days!” :)

Re:The web as a GUI toolkit by spankalee on Thursday February 13, 2020 @02:18PM (#22320513)
Luckily you can now use standard JS modules and web components to nicely organize code and widgets without buying into any tooling or framework. Things are getting a lot better.
Re:The web as a GUI toolkit by Vinnl on Friday February 14, 2020 @01:02AM (#22324300)
But then you're buying into Web Components and their limitations instead.

Luckily, whatever people could do in the pas, they can still do today, because the web is largely backwards compatible. Then at some point they'll run into some things that seem harder than they need to be, at which point they can start looking at the tooling that was designed to solve those exact problems.

Re:The web as a GUI toolkit by lucasverra on Thursday February 13, 2020 @07:32PM (#22322812)
do you have a sample app / repo to illustrate ? You can use repl.it to host
Re:The web as a GUI toolkit by divbzero on Friday February 14, 2020 @01:39AM (#22324452)
> With the web almost everyone has a machine that has a programmable environment by default again. I feel this is a very important and powerful advantage that’s often overlooked.

For this same reason, I’m disappointed that mobile browsers such as iOS Safari have yet to enable DevTools, e.g. a page inspector, network inspector, and JavaScript console. Especially for younger generations, there are many whose first computer will be a mobile device.

Re:The web as a GUI toolkit by pjmlp on Friday February 14, 2020 @02:23AM (#22324645)
They are enabled, kind of, you need to plug the device into its bigger brother.

However, iOS more so than Android, has plenty of mature interactive code environments.

Re:The web as a GUI toolkit by divbzero on Friday February 14, 2020 @04:12AM (#22325098)
> you need to plug the device into its bigger brother

This exactly is the challenge. If your first computer is a mobile device, you would not have that “bigger brother” available.

iOS does have Swift Playgrounds [1] and Android has the excellent Termux [2] but access to the built-in JavaScript engine would open a whole new set of possibilities.

[1]: https://www.apple.com/swift/playgrounds/

[2]: https://termux.com/

I was introduced to programming on a dinky little graphing calculator. My hope is that other “first computers” could offer similar opportunities for tinkering.

Re:The web as a GUI toolkit by pjmlp on Friday February 14, 2020 @05:54AM (#22325556)
Agreed, but as mentioned there are also on device coding environments.

On iOS you also have Pythonista, Continuous, Shaderific, Codea, all much better than learning FX-4500p, FX-850P Basic.

Sadly on Android, most of the alternatives are quite lacking versus the iOS variants in capabilities and quality.

Re:The web as a GUI toolkit by jaywalk on Thursday February 13, 2020 @01:34PM (#22320111)
Are you saying that we shouldn't have the advanced web applications that we do today?
Re:The web as a GUI toolkit by DougWebb on Thursday February 13, 2020 @01:38PM (#22320138)
I would say that we shouldn't have an advanced web application unless we need an advanced web application. Most of the time, we really don't need it.
Re:The web as a GUI toolkit by andai on Thursday February 13, 2020 @02:18PM (#22320514)
You must enable JavaScript to view this static text blog.
Re:The web as a GUI toolkit by bdcravens on Thursday February 13, 2020 @02:00PM (#22320343)
This presumes that heavy toolchains are a prerequisite of advanced web applications. The toolchains seem to be more about ergonomics than creating new capabilities.
Re:The web as a GUI toolkit by WorldMaker on Thursday February 13, 2020 @02:16PM (#22320493)
A large part of the toolchains are also bandaids on a lot of unnecessary friction caused by changing standards and moving targets. The web platform is almost to the point where a lot of those bandaids could just be ripped off: ES2015 modules are directly supported in most browsers today, same with CSS modules / syntax through ES2017 or more recent / and so forth, and protocol upgrades in HTTP2 and HTTP3 remove a lot of the performance-specific needs for things like bundling and minification.

The biggest hurdle to ripping off the bandaids (as with so many things in software development) is the rough edges of the long tail of legacy code. The biggest example being that there's still so much code written for CommonJS (or AMD) that needs shims to play well in ES2015 module worlds. (Because no one wants to stop the Node world and rewrite everything all at once.)

Re:The web as a GUI toolkit by fwip on Thursday February 13, 2020 @02:57PM (#22320893)
pika.dev is coming really close to shimming a ton of existing libraries into module world.
Re:The web as a GUI toolkit by mrec on Thursday February 13, 2020 @07:45PM (#22322901)
I'm not at all convinced that the heavyweight toolchains have led to any improvement in webapp quality. Maybe there are rockstar apps out there I just haven't seen, but for the most part the web these days is vastly more bloated and somewhat less stable than it used to be, without doing anything more that any user actually wants. This is not progress.
Re:The web as a GUI toolkit by thrower123 on Thursday February 13, 2020 @04:31PM (#22321621)
I can't think of a case in the past decade where I've really wanted to have a web application rather than a proper native thick client.

I understand the attraction, and I've had to build my fair share of them, but I don't like it at all.

Re:The web as a GUI toolkit by pjmlp on Friday February 14, 2020 @02:26AM (#22324655)
Actually yes, we don't need SPAs to display basic blocks of text with some animation.