Paul Sweeney (@PepsRyuu) profile picture

Software Engineer | Created Nollup | Opinions are my own.

Ireland
Joined March 2019
Photo by Paul Sweeney (@PepsRyuu)Photo by Paul Sweeney (@PepsRyuu)Photo by Paul Sweeney (@PepsRyuu)Photo by Paul Sweeney (@PepsRyuu)Photo by Paul Sweeney (@PepsRyuu)Photo by Paul Sweeney (@PepsRyuu)
Had to start working on a Macbook for the first time, and it's been incredibly frustrating. So what does a developer do in these situations? Write an app! Dock Window Preview, an open-source alternative to HyperDock. Very early still, but it's a start! github.com/PepsRyuu/dock-win…
1
2
To explain what is happening: Each major company here is practically ignoring the setting entirely, instead using fixed size to maintain a consistent user experience. With massive user bases, it's reasonable to assume not using rem, does not result in major accessibility issues.
Been doing my occasional check into the px and rem debate. Pretty much convinced now that px is the way to go here.
1
1
I've seen all of the pros/cons in this debate for several years now, and while there's some good points, I'm more concerned about what's practical and works best for both developers and all users.
1
Been doing my occasional check into the px and rem debate. Pretty much convinced now that px is the way to go here.
1
2
I really can't understand why people like to use CSS frameworks. Constantly finding myself fighting against them because they're limited, and if they want to be flexible, they have to effectively reimplement CSS. CSS is not that hard to use, it's often just not taught properly.
2
I've been trying to wrap my head around ESM circular dependencies and how they're resolved. I'm probably late to realising this, but I just learned that export declarations are evaluated before the module itself is evaluated. Makes so much more sense now.
1
1
4
Also it doesn't matter when the function or class declarations are exported, as long as they're exported, they're made available first before the rest of the code is evaluated.
Trying Angular for once. Setting up and optimising a Rollup project with Angular, super easy, got exactly what I wanted in a few minutes. Angular CLI on the other hand, complete nightmare, lots of unexpected behaviours and meaningless errors. Perfect example of over-engineering.
1
1
A legitimate use case for "with" blocks: Simulating live-bindings. 👀Is it a hack? Yes. Does it work for all projects? No. But if it works for your project, you can save a huge amount of time on bundling. 😁
Went back to figuring out how to implement live-bindings. Much better attempt this time around and it works, but it's so frustrating how many things you have to check for, and probably missing some. Native ESM cache invalidation is needed badly! github.com/PepsRyuu/nollup/b…
Replying to @JoviDeC
@JoviDeC Curiousity, is there any plans on releasing some generic wmr plugins separately like htm? Also it seems based on wmr like it's possible for Prefresh to preserve state without the need for Babel? Is this theoretically possible to add as an option for all Prefresh plugins?
1
Doing some proper benchmarking with Nollup to try and maximise performance. Bundling still doesn't cost anything really. 625 files with 5 imports each and 5 lines of code bundles in 1.5 seconds. However, the second you add Babel with no plugins, it adds 5 seconds. 🤦‍♂️
1
2
Removing the node-resolve plugin, and it bundles 625 small files in 0.4 seconds. Acorn is shockingly fast. It's not really the bundling that's slow, it's the plugins that are added on top.
1
youtube.com/watch?v=BPmhPSlA… @JoviDeC and @FredKSchott do a great job explaining the limitations of native ESM and HMR. I hope we get module invalidation at minimum, as that's the only thing stopping me from implementing a no-bundler solution.
1
7
Released 0.15.0 of Nollup which includes the experimental PluginContainer API. Very happy now with the quality of the project, less coupling between different parts of the system which will make it easier to try new ideas, like different code generators. github.com/PepsRyuu/nollup/r…
2
Before ESM, I used to love AMD because it could run natively in browsers. One of my first open-source projects was a faster and more accurate AMD loader and optimiser. CJS always frustrated me with forced tooling requirements and lack of consistency in usage in packages.
Warm take: CommonJS was a terrible idea. Node should have known that it is unusuable in browsers and just adopted AMD. CJS has caused a decade of churn in the JS ecosystem, and we're finally starting to dig out of the hole that was dug with it.
github.com/PepsRyuu/nollup/p… Large refactor almost done, with an experimental "sdk" for other bundlers/no-bundlers to re-use Rollup plugins in development setups. 👀
Should have hopefully an interesting release of Nollup soon. No new features for app developers, just a massive refactor that should in theory make it easier for tooling developers to write a Rollup compatible bundler/no-bundler. 🤔
Experimenting with having a "no-bundle" bundler always seem to have drastic flaws. A benefit is real live bindings, but a huge downside is that it significantly downgrades HMR. You can't for example track who imports what nor invalidate the cache leading to memory leaks.
1
4
The current workaround of "?=timestamp" forces a fresh copy to be downloaded, but parent modules will still be using an old instance which can lead to some unintended consequences. Also constantly reloading a module will lead to your devtools being flooded with old copies.
1
1
github.com/PepsRyuu/jscollab Might be useful for someone. Needed something to conduct interviews where screen-sharing isn't possible, and other services were either unstable, or not free. Haven't tested this properly yet, but so far locally it's working decently.
2
Had a thought, and working on a prototype for Nollup, allowing you to keep modules separate rather than bundled, but maintaining full compatibility with Rollup plugin API. It doesn't actually require a lot of modifications to get it to work.
1
1
The problem with a lot of "no-bundle" solutions is that they run plugins far too late, which is fundamentally incompatible with Rollup's plugin API without heavily restricting it, and require strange workarounds by plugins.
1
1
For some reason, a lot of examples online about using React and D3 Force, always use D3 functions to generate and manipulate elements - completely unnecessary. Just import the utility functions and use refs to access the DOM elements.
Absolutely loving WSL2. So much faster than WSL1, and even GUI performance is pretty good. Can't wait for WSLG to add proper native support for rendering apps.