3 ms·
A PWA and vanilla JavaScript; we need more of these. Fantastic job!
by cube00 5y ago
A PWA and vanilla JavaScript; we need more of these. Fantastic job!
- oefrha 5y agoNot sure what's your definition of "vanilla JavaScript", but https://dirtylittlesql.com/separators.js https://dirtylittlesql.com/separators.js is clearly produced by a bundler, bundling a bunch of npm packages like events, buffer, etc. I would be pretty alarmed if someone wrote a single 7659-line vanilla JavaScript file by hand in 2021. And of course the SQLite part is wasm.
- DemocracyFTW 5y agoto be fair, in case the dependencies are pegged to specific known-good versions and are bundled into one or a few files then two concerns with dependencies go away, namely, insanely deep and wide file system trees and the lingering danger of any one of hundreds of software titles getting malware-ized. One could even add that it's probably a good idea to prefer tried-and-tested existing software over writing everything from scratch.
- maga 5y agoVanilla JS nowadays means not using a framework, in yesteryears it meant not using jQuery, in either case, it doesn't preclude from having dependencies.
- lghh 5y agoWhy does it matter that it's vanilla Javascript? I don't think this would actually fit the general definition of vanilla Javascript, but I'm more curious why it matters at all?
- mikojan 5y agoNot OP, but in my opinion: When I am reading through the source code of somebodies personal project, it's absolutely amazing to: - see how to do X in discernible, concise, modern JavaScript - follow along significant architectural decisions - watch a web API in action, not a specialized abstraction that will necessarily hide some capabilities That being said: This project doesn't offer much in that regard. It's hard to read and makes little use of modern JavaScript.