6 ms·
React (and NPM for that matter) is not all web development, in the same way that Windows is not the only OS. Vanilla JavaScript these days is an absolute joy t
by mattlondon 2y ago
React (and NPM for that matter) is not all web development, in the same way that Windows is not the only OS.
Vanilla JavaScript these days is an absolute joy to code in (and highly performant compared to the past). Even lazy-loading modules are supported natively by the browser these days - you can go a long way just using purely built-in default functionality.
I avoid NPM and React, and live my professional life quite happily without them doing professional development using typescript and angular with bazel. For fun home projects there is deno which is also lovely. Bun looks interesting but appears to want to ape NPM so it is a no from me.
- dyllon 2y ago> doing professional development using typescript and angular So you aren’t using vanilla javascript, you’re using angular - yet another framework/library
- mattlondon 2y agoThere is more to life than just what I do for my job.
- galdosdi 2y agoIncidentally, I've been working on a hobby project lately and just for fun decided to use pure vanilla JavaScript to interact with all browser APIs directly -- not even my old friend jquery. It's been surprisingly fun and easy, partly because modern web browser APIs have gotten so good and are insanely well documented at MDN, to the point where stack overflow and LLMs don't really help much (and when I do use either I just use it to find the appropriate MDN pages) It's been fantastic. And I'll be able to keep my project insanely performant. I'll be posting it in a Show HN when I seen it cool enough. Couple concrete examples of web apis getting awesome: Document.querySwlector or whatever it's called, to do something very similar to original jqueery Fetch API instead of ajax Canvas API Webgpu
- oneshtein 2y agoIf you want to enjoy pure JS/HTML/CSS, you can try vanjs with a web components library, for even better experience, or you can create your own components using van-element.