
Software Engineer | Created Nollup | Opinions are my own.
Ireland
Joined March 2019
- Tweets243
- Following34
- Followers58
- Likes106
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.
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.
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
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.
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
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
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.







