215 karma · joined Jul 12, 2011 (15y ago) · 111 submissions
comment 6mo ago · link · parent
There's definitely a price point for some where it will make sense to rebuild your library on the Switch vs pay the higher cost of a Deck.
comment 6mo ago · link · parent
I do think there's a bright future for PC handhelds, especially when (not if) ARM processors can be utilized. I'm less sure about that if prices keep rising since that quickly becomes the difference between niche hobbyist device and mainstream gaming portable.
4.
The Inverted Reactivity Model of React(chrlschn.dev ↗)
1 points · by bwilliams · 11mo ago · discuss
comment 1y ago · link · parent
comment 1y ago · link · parent
I think this is blessing _and_ a curse. I had an idea that I built a while back that centralizes RSS feeds so you get the centralized benefits of social media while authors can own and control their own content.
If anyone's curious, I built it out here: https://onread.io but I never had the time to really share it out or push it beyond the SUPER basic MVP that it currently is. I was thinking about pivoting it more into a tool that I could turn into an RSS feed for myself, but I haven't found the time, really.
Either way, I don't think RSS feeds as-is are as useful as they once were, and social media still has significant value over feeds due to conversation, sharing of content to folks with similar taste and interests, etc.
comment 1y ago · link · parent
Living and working in a large code base that only focuses on “performance code” by default sounds very frustrating and time consuming.
comment 1y ago · link · parent
We took the opposite approach of most libraries though (and a reason we rolled our own instead of pulling in an existing gem) by avoiding handling the complex edge cases that hide trade-offs:
1. Class methods can't be memoized.
2. Methods with arguments can't be memoized (so no LRU caches, weak refs, tracking arguments, handling default args, hash/deep object equality, etc)
The thought at the time was that those more complex scenarios deserve more thought than "prefix it with `memoize`". It's been a few years since we introduced the helper and after seeing it all throughout our codebase with no issues I'm even more confident this was the correct decision.
I haven't revisited it in a while, but I'd love to add some extra niceties to it, like hooking into `ActiveRecord`s `#reload`, although I dislike memoizing in models.
10.
Show HN: I built a social RSS feed aggregator (with Go, Tailwind, and Htmx)(onread.io ↗)
3 points · by bwilliams · 2y ago · discuss
12.
Multi-Page Web Apps(adactio.com ↗)
1 points · by bwilliams · 3y ago · discuss
comment 3y ago · link · parent
The iPad could finally utilize the m1 processor to its fullest.
comment 3y ago · link · parent
comment 3y ago · link · parent
Still, it's really cool to see how far we can push/mold the language to accomplish different tasks and patterns.
comment 4y ago · link · parent
Most of the time SPA's degrade very poorly and instead of breaking they often appear as if they're somewhat working but the site is actually in a broken state and will need a complete refresh to become usable again.
comment 5y ago · link · parent
This change in outlook of existing thoughts/ideas is how many crafts grow, such as martial arts, painting, philosophy, etc (instead of stagnating). Sometimes we need to frame things in a more modern manner, and sometimes we need to discard them completely. In this case, I think re-framing the concepts is helpful, and I found it to be an interesting point of view. I agreed with a good amount of it, but I don't think we need to discard SOLID principles just yet.
comment 7y ago · link · parent
That's part of the problem, you really can't. Requirements change. You have to update that service, and hope it's backwards compatible because if not, have fun updating all the services that interact with it.
comment 7y ago · link · parent
I think services are a useful tool but for most problems you can get incredibly far with a monolith. I think a solid approach is to identify where there's a bottleneck in your monolith and extract that instead of splitting the application up for the sake of having separate services.
comment 7y ago · link · parent
comment 7y ago · link · parent
My new killer app is a tiny muji notebook and a decent quality pen or marker. I find it easier to remind myself to track, check, and create goals with the physical medium right next to me.
https://www.muji.us/store/stationery/note-books/high-quality... super thin, portable, and cheap.
comment 7y ago · link · parent
That doesn't seem like a valid issue. If a bug in a single page could take the application down then the same could be said for the API powering the front-end.
> If you leverage client-side rendering then it's easier to decouple your front-end from the back meaning you can take advantages of things like segregated micro/serverless services and progressive web apps
Your PWA point is valid but I don't think the microservices point is. Microservices add a ton of complexity and can easily become overwhelming. If you get to the point where your application can benefit heavily from microservices then congrats, you've made it.
> I think that server-side rendering is on it's way out.
If anything I think its on its way back in. So many companies bought into the benefits of client side apps and are now seeing the trade-offs that aren't very favorable.
comment 7y ago · link · parent
I strongly disagree specifically about comments like these throughout an active code base. A well named variable or method can act as a much better descriptor of what’s happening and doesn’t have the same maintenance cost.
I think we both agree that comments are valuable, just not the scope. Comments are valuable when you’re doing something unexpected or where the code fails to explain what’s happening.
For what it’s worth I mostly work with Ruby, JavaScript, and TypeScript which definitely color my views.