I'm gonna add more to the compiler that any JSX that isn't the "embedded HTML document" acts as document.createElement calls, so you could do const div = <div/>... I dunno, just some more sugar here and there.
I fought against HTML for quite some time, thinking of ways to replace it. Every alternative I imagined up was just HTML and CSS with different syntax, so I just waited to see where I thought the Web was going, and HTML modules changed my mind to be in favor of an HTML-first approach
I do agree that WASM will become further into the forefront in the near future, but I also think that the majority of the web will continue to be driven by HTML
There's also another proposal out there for scoped custom element registries, so each module could define its own local tags for imported components, which helps with naming collisions
@KevinB With web components inside of HTML modules, doesn't it replace the need for frameworks like React or Angular altogether? That's my impression, being fairly familiar with the component side of things
Once you've fully considered HTML modules, the problem that my compiler solves is allowing you to write type-safe code that compiles directly into valid HTML modules
I have yet to meet someone who gave TypeScript a solid chance and decided that it sucked and they went back to plain javascript. It’s ok to be uninformed, it’s not ok to let that drive your decision making
If I ever have to write plain javascript again, I might just throw myself off a bridge. TypeScript, or choose another platform, because plain JS is automatic tech debt
@Lapys I'll warn you right now, the further you stray from convention in order to create your own, the more difficult it is for other developers to help or even follow your code, because nothing is as they expect, because you've gone and created a whole new way of doing things
This is exactly what we were talking about before he came in here, highlights all of the points we were making. I don't have patience for that anymore, or rather I guess I never did.
This is pretty standard thinking in an enterprise especially, where we don't inherently trust open source code, we always scan it first for known vulnerabilities
@Lapys you're introducing an abstraction for no reason. You should be aware of all of the code running in your application (sans extensions), so the idea that native methods will be overwritten without you knowing is pretty silly. Now you have your own abstraction on top of an API which you now also have to document and write tests for, so you're just creating tons more work for yourself without actually providing value, all out of paranoia
So you did copy/paste the code without changing the link href, and then asked why the link's href was wrong. You did not modify it, it's the same # as in the answer