hot take, javascript
@serapath Just a .concat wouldn't be enough because it doesn't create a module scope; that's what the small amount of additional wiring is for, but that's also just strings
hot take, javascript
@serapath Neither Browserify nor Webpack do code transformation (or at least for Webpack that's true in its initial version). Both just do concatenation.
Both support plugins, which *can* do code transformation, but that happens entirely outside of the bundler.
hot take, javascript
@serapath Like, to be explicit about this: bundling code does not require *any* kind of code parsing or processing beyond identifying require/import calls, which can be done even if with a regex if you want. Which I believe is exactly what Browserify does, too.
hot take, javascript
@serapath None of those things (code transforms, tree shaking, minifying) are bundling. Source map generation is only a part of bundling insofar it describes the mapping from many files to one JS file.
Calling code transforms 'bundling' is like saying that Make 'compiles' your code. It doesn't. It just invokes the thing that does, if that's what you tell it to do in the process.
(Notably, switching from bundles to manifests also removes exactly zero of those things-that-are-not-bundling from your build stack)
hot take, javascript
@serapath Generating manifest files is functionally the same thing as bundling. "Bundling" is nothing more than statically traversing the dependency tree and string-concatenating the results with a minimal amount of boilerplate code to make the references work.
I don't know where people are getting this idea that bundling is some kind of highly complex or objectionable or slow process. It's kind of bizarre.
re: hot take, javascript
@clarfonthey That's a whole different discussion, though, that isn't really relevant for my original post - which is that bundling is, itself, fundamentally a very simple operation (it's basically somewhat structured string concatenation) and there is no reason for people to reinvent that wheel 10 times.
re: hot take, javascript
@clarfonthey Bundlers have never been slow. You can bundle the frontend code for whole production sites in under like 400ms. The slow part was always all of the shit that people inserted *into* the bundling process (like code analysis, minification, etc.)
hot take, javascript
@serapath Bundlers are necessary because traversing a dependency graph over a high-latency link like the network is fundamentally not viable.
The problem I am talking about is not the existence of bundlers; it's that there are so many, and that most of them bring absolutely nothing to the table that wasn't already possible in their predecessor.
i hacked a led backlight into a thinkpad r61 this weekend. was kinda pissed at myself because i did the same thing years ago with a x200, but didn't keep notes, and had to basically reverse-engineer myself. so this time i kept notes, which means that in case you need some guidance for hardware crimes, i got you covered:
https://blog.nadja.top/led-backlight-for-thinkpad-r61t61-and-x200.html
@pseudoramble (It's also achievable through a rule in uBlock Origin, using the mechanism that it uses for tracker sites - which presents an interstitial telling you that it was blocked, and whether you want to proceed)
@pseudoramble I *think* LeechBlock can do this, but I don't remember whether it was that or StayFocusd (the Chromium equivalent).
Happy New Year 2025! Wishing you a year of creativity, inspiration, and full of hidden treasures.
Bird photography is relatively gear-intensive because birds are small and usually prefer staying away from humans. But after doing this for awhile, I know of no piece of gear that makes more of a difference than consistently being on the beach when the sun comes up. The light and the water and the sand know how to show off, and you just need to be there to click the button.
Technical debt collector and general hype-hater. Early 30s, non-binary, ND, poly, relationship anarchist, generally queer.
- No alt text (request) = no boost.
- Boosts OK for all boostable posts.
- DMs are open.
- Flirting welcome, but be explicit if you want something out of it!
- The devil doesn't need an advocate; no combative arguing in my mentions.
Sometimes horny on main (behind CW), very much into kink (bondage, freeuse, CNC, and other stuff), and believe it or not, very much a submissive bottom :p
My spoons are limited, so I may not always have the energy to respond to messages.
Strong views about abolishing oppression, hierarchy, agency, and self-governance - but I also trust people by default and give them room to grow, unless they give me reason not to. That all also applies to technology and how it's built.