HN user

viiralvx

380 karma
Posts17
Comments118
View on HN

Damn, Unpoly looks great! Never tried HTMX but have been a fan of it, it solves a UX problem that frameworks like Django and Rails suffer from, without needing to bring in something heavy like React.

I'm currently working on a side project in Rails using Stimulus but sometimes I wonder if Stimulus is overkill with all of the controllers and stuff as well. Do you have an opinion on when you should reach for something like Inertia or Stimulus over htmx?

Template Partials and HTMX seems like the Django equivalent of View Components and Stimulus for Rails, which is nice.

Also, good to see first class support for Tasks, among a lot of other niceties!

It's pretty cool that QR codes were created by a Japanese automotive company in order to address the limitations of scanning bar codes, mainly that the scans only worked with a certain orientation. [1]

That being said, I believe bar codes have the UPC number below it in case the code itself is damaged. Could QR codes have a similar textual encoding to identify them? And would that even fit legibly in the square?

[1] https://www.microsoft.com/en-us/microsoft-365-life-hacks/pri...

My Homelab Setup 2 years ago

This is a really dope setup! Honestly, it sucks that your Wi-Fi is only 50 mb/s, but hopefully that gets an upgrade soon!

I'd suggest reading up on what some of these new database providers are doing to help prevent or fix mistakes like this. Since you mentioned PlanetScale, I'll use them as an example.

1) PlanetScale has IP ACLs, which locks down passwords to specific IP addresses. [1] Additionally, with TailScale or another VPN solution, locking down based on IP isn't necessary foolproof.

2) They also have Safe Migrations. When enabled, it prevents DDL from being run directly on a database. [2] Additionally, using deploy requests for zero-downtime schema migrations also allows you to use reverts, which will revert the migration. [3]

[1] https://planetscale.com/blog/introducing-ip-restrictions

[2] https://planetscale.com/docs/concepts/safe-migrations

[3] https://planetscale.com/blog/behind-the-scenes-how-schema-re...

From what I see, it highlights a difference in design cultures between the organizations. GitHub has an amazing Product Design organization who have really evolved the product from the early days to what it is today. When I look at GitLab's UI, I get a feeling that it's a UI that feels designed by an engineer without much thought about these design principles you mentioned. It would take a huge overhaul of their design team, culture, and code for GitLab to bring their UI up to par.

A lot of ex-Hubbers went to Shopify. Additionally, a lot of upstream commits to Rails occurred from things pulled out of GitHub. GitHub has (had?) an entire team dedicated to Ruby and Rails and performance and optimizations/improvements

Ableton Push 3 3 years ago

Stop man, I was trying to talk myself out of buying one and now you got me reconsidering it. I was trying to look out for my bank account.

Related if you can afford it, NextDNS[1] on my mobile device has been a godsend for blocking ads. Literally amazing how much speed it saves when sites aren't loading a bunch of ads / tracking libraries. I use it on my router and mobile devices and it's made a huge difference.

Re: competition being removed, that really sucks. I'm a Google Fi customer which has similar pricing, only downside is that if I switch to an iPhone, the service pretty much becomes useless as you lose access to WiFi calling and hotspots, things that work seamlessly on my Pixel :/

Edit: Apparently Google Fi now supports WiFi calling and mobile hotspots on iPhone as of iOS 13 Hmmmmm, maybe I can switch with no problems now.

[1] https://nextdns.io

I was an early part of the team that helped build GitHub Actions. It had some crazy moments of flying for impromptu meetings and rewriting parts of the system (three times) to what Actions became today, but overall, I think its the most impactful thing I've worked on in my career yet. Seeing it go from its infancy to where it is today (even though I've since left GitHub) is amazing.

Oh trust, my friends are amazing and great. But doesn't stop the always present anxiety of everything collapsing and going wrong. Worked on some CBT to also help me manage it, but medicine has been a really great solution for me, in my opinion. And honestly, I feel like my anxiety has gotten worse as I've aged, I wasn't anxious at all like this in college and I'm now 30.

Yeahhhhh, I worked at a big company on their CI product and I had this bug bite me and break builds for a little bit.

Luckily caught my mistake and fixed it within 15 minutes, but it's always easy to overlook.

I don't know if I 100% agree with this blog post. Additionally, having foreign key constraints isn't a "catch-all" solution and breaks at scale. There's frameworks like Rails that can still handle these discards for the user via the `dependent` option on the model with some extra code.

At my current employer, we noticed that `acts_as_paranoid`'s default behavior was not what we wanted, so we migrated over to `discard`. We also added a concern that reflects on dependent associations, finds if they are discardable, and discards them if possible. And that cascades down, easing those concerns. This `Discardable` concern is automatically added to every single soft-deletable model and it has been working out great for us.

[1] https://github.com/jhawthorn/discard

A buddy of mine has started on a better designed alternative to Goodreads. It's in early access right now but it has potential and I'm looking forward to seeing what else he adds to it: https://readng.co

Anybody interested in reading more about Japanese fashion should read "Ametora: How Japan Saved American Style". Uniqlo's story is told there as well,but it paints a picture of the history behind how's Japan's fashion scene evolved from imitating American style to becoming something unique and desirable in its own manner.