Ask HN: What are some tools / libraries you built yourself?
121–130 of 617 posts
Re: Ask HN: What are some tools / libraries you built yourself?
#122Why? I wasn't happy with the pattern of hooking data loading into a router, and having to load all data needed for a page upfront at the route level and then plumb it through. I just wanted a way to let components specify what data to load themselves, and then do it on the fly as they render, whether on the client or on the server.
It still surprises me a bit that React itself never built in an async lifecycle method for server render that would solve this problem. React Frontload basically acts as a polyfill for that feature - it's been slowly ticking up towards 500 stars over the past couple of years, so I can't be the only one who finds this useful :-)
Re: Ask HN: What are some tools / libraries you built yourself?
#123I was building a touchscreen music-production app for Windows, and I wanted it to have a phone/tablet style interface. It would have a stack of modal popup Views that the user could tap (or click) off of to close the top View and go back down. I ended up splitting the UI system off into a separate library and kept working on it. It now has DI (with scoping) and some other features. I've since used it for a few other…
Pretty neat. Is the Music app written somewhere ? Also question to the room, is DI really worth it ? All that complexity to switch out sub-classes . A clean design but in practice it just feels like too much work for the benefit.
As for DI: in my case, it was definitely worth adding. The original music app didn't have it, so I had to come up with convoluted mechanisms to share cross-cutting services with different ViewModels, and it got messy. Some had to keep references to services that they didn't actually need themselves, but their child ViewModels did... With DI, I just register the services with the library, and let it inject whatever a ViewModel needs.
Re: Ask HN: What are some tools / libraries you built yourself?
#124I've made
- A dynamic programming language, Ink (https://dotink.co), which runs in "production" (for whatever that means for side projects) for around a dozen projects written in it.
- A compiler to compile that to JavaScript (https://github.com/thesephist/september)
- A bunch of language tooling around that language, like syntax highlighters, editor plugins, code formatters (for example, the code formatter https://github.com/thesephist/inkfmt)
- A small UI library (https://github.com/thesephist/torus)
- A suite of productivity tools (https://thesephist.com/posts/tools/) like notes, todos, shared whiteboard, contacts/CRM
- Twitter client (https://github.com/thesephist/lucerne/)
- Theres a few dozen more at (https://thesephist.com/projects/) :)
Many of these end up building on top of each other, so across the few dozen projects built on top of these tools they form a nice dependency graph -> https://twitter.com/thesephist/status/1367675987354251265
Re: Ask HN: What are some tools / libraries you built yourself?
#125Re: Ask HN: What are some tools / libraries you built yourself?
#126Re: Ask HN: What are some tools / libraries you built yourself?
#127- edit -
Yes, shadowbanned again. Have a look at the comment history on this account and decide for yourself whether this is in any way defensible.
I'm done with HN.
Re: Ask HN: What are some tools / libraries you built yourself?
#128Re: Ask HN: What are some tools / libraries you built yourself?
#129Re: Ask HN: What are some tools / libraries you built yourself?
#130I recently started to write more often, and having a consistent and surefire syntax helps a lot.
It started with custom anchors for header tags, table rows, custom classes for block quotes, highlights in code snippets, line break patterns, etc.