HNHacker News
TopNewBestAskShowJobs

rsanheim

1,423 karma · joined March 31, 2008

https://rsanheim.com https://github.com/rsanheim
submissionscomments
rsanheim··on Twitter to start layoffs -internal email
For engineers at least:

git ls-files -z | xargs -0n1 git blame -w | perl -n -e '/^.?\((.?)\s+[\d]{4}/; print $1,"\n"' | sort -f | uniq -c | sort -n | head 1500

Merged with a hitlist of people who have made anti-musk comments internally or externally of course.

A purge based on silly metrics and grudges, as all good bullies and tyrants do.

rsanheim··on Turbopack, the successor to Webpack
We've already migrated our old webpack rails front end to esbuild as of a couple months ago, and couldn't be happier.
rsanheim··on Turbopack, the successor to Webpack
esbuild remains a fantastic, stable, well documented choice. It does one thing, and does it very well, and is well beyond "version 1.0" quality software.

Comparing an alpha just open-sourced today to an established tool like esbuild isn't even a fair comparison, for either tool.

rsanheim··on Turbopack, the successor to Webpack
Looks impressive, but proof will be in the actual day to day dev experience and configuration, not the perf. Vite and esbuild are fast enough, and I feel the winner will be more about usability, docs, easy config, etc.

That aside, it is just so frustrating and sad that this just continues the fragmentation in the JS build space. It is beyond exhausting at this point. I don't care about vite vs (or with) esbuild vs turbo. I just wanna `script/build` or `yarn dev` and not think about it anymore.

It seems like collaboration and consolidation around common tooling is just impossible and not even considered a possibility at this point. We are forever stuck in this world of special snowflake build toolchains for damn near every app that wants to use modern JS.

rsanheim··on I help seniors with technology issues
Wow. I think your reply demonstrates the crux of the issue perfectly. I can't tell if its satire or not.

It is insane that this level of workaround and hacks is required to avoid advertising and crapware on a £500+ _television_. Normal people have almost no hope for a good experience when you consider something like a Lenovo laptop from the OP.

You have the manufacture-installed adware, windows 10 + edge nonsense constantly nagging you, and then there is just the state of the web itself. Its all just too much.

rsanheim··on Finding relationships between Ruby’s top packages and their dependencies
Not true at all, at least for Ruby.

Most larger React projects have _far more_ dependencies_ than an equivalent Ruby project. You could chalk it up to a few things I think:

* the JS ecosystem is just much larger - more devs (especially inexperienced ones) means more code and more copy/pasting solutions that rely on `npm install` from the web.

* JS has just not been as stable and mature as Ruby or Python until the past couple of years (thanks to ES5/ES6), especially if you consider the browser acceptance of latest ES.

* The general explosion of NPM packages that do dumb, trivial shit - see https://www.npmjs.com/package/is-odd and https://www.davidhaney.io/npm-left-pad-have-we-forgotten-how... for two examples.

* There are at least four major tools to manage dependencies in JS: npm, pnpm, yarn, and yarn 2. This often means you end up with multiple ways teams are handling JS deps in their projects, with all the non-essential complexity that comes with it. In Ruby there is just one way - Bundler. I don't even want to talk about python.

* There are more leading frameworks to choose from in JS, which means you have libraries that support all of them, doing things in slightly different ways. Consider a legacy Angular app that updated to React in 2018 and is updating to Svelte or whatever now. If the team hasn't been very disciplined in updating and removing all transitive dependencies through the upgrades, you will inevitably end up with a ton of stuff (is `react-date-wrangler-jobber` used? I still see references to it, but is that page live? who knows!?) in your bundle hanging around and cluttering up your build.

I've been updating things across our main React/Rails product at $current_job. Most major dependencies were out of date by 1-2 years. Updating Ruby has been *so much* easier, whereas the React / npm stuff often ends up in a rats nest of conflicting dependencies. And this is after we made a major effort in our build and packaging setup across the board.

I do think it is getting better in the npm world, slowly. Ever so slowly.

rsanheim··on Linear.app
It doesn't take much to beat JIRA ;).

But seriously, Linear is one of the best project management tools I've used. They do an SPA pretty well, which is rare, and its powerful yet pretty simple to use. I do find it a bit hard to wrangle saved views and find things via search sometimes, but overall its one of the 'least bad' tools in this category.

The only other app that I would say is comparable is Shortcut (https://shortcut.com), which I've used in anger at previous jobs. It's a bit simpler than Linear, a bit easier to get up to speed with, but less powerful.

But both are very good. And god help you if you have to use JIRA.

rsanheim··on I wish my web server were in the corner of my room
I'm surprised no-one has mentioned Unraid here yet (https://unraid.net).

You install it to a USB, put the USB into whatever you want as a server, and boot it up from the USB. The OS and config gets loaded into a ram drive. You now have a linux server ready to go, with access to thousands of apps and add-ons (which are basically just open source things you already know on various docker containers).

So you can install postgres, redis, whatever, and you are off to the races if you want to host your own side projects. Or you can install Tailscale, plex, and whatever OSS dropbox / media server clones to have access to your media anywhere.

The magic is that it all 'just works' and has a nice web GUI to install and configure things, and you don't even need to know that Docker is handling all the things running under the hood if you don't want to. The only tricky bit can be mounting volumes from the various containers to get things working together, for which there are many many guides and youtube videos. You can always bring your own docker compose config if you you want to keep it in code.

The uptime for one of my servers was up to well over half a year, and only storm & power outage brought the server down...now I've got it on a UPS with automated safe shutoff (again configured in the web GUI, took about 5-10 mins) if power drops again.

Unraid just runs and is rock solid and stays out of your way for whatever things you want to run.

rsanheim··on Deployment and infrastructure for a bootstrapped webapp with 150k monthly visits
> SSR vs client side: NextJs does this automatically. https://nextjs.org/docs/basic-features/pages

Uh-huh. Do some simple stackoverflow searches for how to configure a real Next/Vercel app with error-handling, passing thru cookie/session state, or how to wire up third party services or components. Or check out next.js issue search for "window undefined" - https://github.com/vercel/next.js/search?q=window+undefined&... -> 1667 issues right now. Even if you discount 3/4 of those as duplicates, developer error, etc, you have a ton of issues where figuring out server vs client state is confusing for many folks.

It sounds like has worked great for you out of the box, which is great! But that isn't the case for many other developers.

This is not my definition of "automatic".

> I'd use tRPC

This looks pretty compelling if you are all-in with TS everywhere, including your server/data access layer. Which doesn't apply in the OP's post, since it's a traditional CRUD app with python in front of good ole' PSQL DB.

> monitoring/observability: not quite sure what you mean, but it's only a few clicks in vercel to have a logdrain or metric drain

We are using Vercel routing its logs to datadog right now. It works fine but is extremely limited. Want to wire up full-stack transactions w/ the rest of your app, or modify _what_ it logs? Good luck.

Also, trying to use a real APM (Datadog, Scout, open source, whatever) is a complete non-starter. You need a persistent process running somewhere to take the data, buffer, and transport it _somewhere_, and so far you can't do that with Vercel's custom server support. You _can_ do this with just NextJS (no vercel), but it requires some frightening hacks I would not be comfortable adding to apps I maintain: https://jake.tl/notes/2021-04-04-nextjs-preload-hack.

I get that Vercel provides a very quick setup and a smooth dev experience, especially if you are in their sweet spot of something like a static site or blog engine. It just seems more trouble than its worth for most CRUD apps, especially anything that isn't 100% in the javascript/typescript world.

rsanheim··on Deployment and infrastructure for a bootstrapped webapp with 150k monthly visits
I'm sure everyone's mileage will vary based on experience / comfort with the particular stack here... but in my experience shipping a monolith (Python, Ruby, whatever) to a VPS is vastly simpler than a comparable Next/Vercel setup, especially for a CRUD app as the OP is talking about.

Dealing with the details of things like SSR vs client side, Apollo caching (cuz w/ Next you are _probably gonna go w/ GQL, and so you probably use Apollo), and monitoring/observability in the Next/Vercel world is hard. You don't have these problems with a simple monolith, and you can sprinkle in your front end magic with whatever lean JS approach you want as you need it.

And to be fair Vercel has some logging and datadog integration, but it is very limited compared to what you can get and can configure as-needed with real agent based monitoring.

I'm increasingly feeling like the 'benefits' of server-side rendering in all its flavors for the big JS frameworks are just a boondoggle and not worth the complexity and cost for _most_ apps, even ones where the cost of an SPA are worth it.

rsanheim··on Google loses EU appeal and is fined a record $4B
> If there was an alternative app store on iOS everyone would jump ship immediately

citation needed.

if there was an alternative app store, 90% of apple users wouldn't even be aware of it, the other 8% would hear about it and never use it, and maybe, _maybe_ 2% would install it.

rsanheim··on John Carmack on avoiding distractions
I do basically the same thing. I use the pomodoro technique (https://en.wikipedia.org/wiki/Pomodoro_Technique) when I'm really struggling to focus. I either use an old school analog kitchen timer or https://pomofocus.io if I'm feeling real web 2.0-ish.

Some sort of self-imposed time constraint, whether basic time tracking or pomodoros, is one of the most effective ways I've found to just power through work I don't really want to do.

If _most_ of my work is hard to complete due to excessive distraction and lack of focus, that usually means something larger is wrong. That's when its time to reflect and figure out if I'm working on the wrong team or project or even company.

rsanheim··on Whytheluckystiff's original domain back as an archive
I could've been more clear in my original post. I'm not just thinking about "getting an app running": ruby, rbenv, and bundler has had that solved for many years, and npm, nvm (or whatever and js is stable there as well.

If you take any app built three years ago, you are going to have critical security vulns in libraries you depend on. With java think of the log4j fiasco. With Ruby there are nokogiri or rails things. With javascript there are probably at least a handful of downstream packages that have pretty big security issues. Now you have to update dependencies, and then the real fun begins.

If it a walled-off intranet app on a VPN, or a small CLI app, sure, maybe you can ignore that issue. But if its a public web or mobile app that is gonna see real use, you are going to have to head down the security audit + package update rabbit-hole.

rsanheim··on Whytheluckystiff's original domain back as an archive
Are you being serious? Have you tried to get a "modern JS app" or Python web app running (safely, w/o massive security vulnerabilities) that is even a few years old?

All code rots, and it rots quickly. Its the a reality of modern software.

rsanheim··on Interview with Marc Andreessen on learning to love the humanities, and RSS
Can't listen to anymore interviews w/ Andreesen after the rambling, self-serving podcast he gave on Econtalk (https://www.econtalk.org/marc-andreessen-on-software-immorta...), which is normally one of my favorite podcasts.

Unfortunately Roberts (the host) barely pressed Andreesen on his visionary love-fest for NFTs and crypto, which barely surpassed the typical nonsense spewed on twitter from NFT nuts who just so happen to have a lot to gain from folks buying in to their latest crypto site or NFT marketplace. Lots of talk of decentralized data and the power of people owning their own data, and ignoring the reality that 1) this idea has failed before and 2) it has always failed in the face of massive corporate greed, convenience, and walled gardens.

Andreesen was right about "software eating the world", I just wish he (or any VCs with his money and power) would try to grapple with or even acknowledge the negative consequences that have come from it.

rsanheim··on We Put Half a Million Files in One Git Repository, Here’s What We Learned
It took me a while to find out what Canva actually does, but from https://www.canva.com it appears they are an online design / collab tool.

To be fair, that could mean a _lot_ of functionality and code providing a rich, SPA, JS heavy experience. Modern JS frameworks aren't exactly known for being concise.

But still, 60 million lines of code and half a million files is a sure sign that someone said at one point "sure, we can throw all these generated files into git!". Didn't someone on the team say "hey, it takes 10 seconds to run git status, can we move this junk out and do this another way??"

Given that 70% of their repo is generated files, that discussion and the tradeoffs involved don't get nearly enough attention from OP.

rsanheim··on Dear Spotify, can we just get a table of songs?
I refused to use Spotify from early on because it is so anti-album. The interface just sucks for playing albums, and its ridiculous that they haven't fixed it. Playlists are fine for parties or when you want to discover new music, but if you are doing more focused listening albums are the way to go.

I use Apple Music for streaming / high quality downloads while on the go or airplaying around the house, and Roon (https://roonlabs.com) for dedicated in-home album listening. Its definitely a more expensive combo than Spotify, but worth it.

rsanheim··on Why companies move off Heroku (besides the cost)
Yuuup. That is the genius of Heroku. They make almost everything very simple and the tougher stuff relatively easy to understand and configure. All of that took many many years of iteration and refinement, which is why the competitors are going to take awhile to get there.
rsanheim··on Why companies move off Heroku (besides the cost)
I agree 100% on the misdirection happening on many of these so-called Heroku replacements.

Offering me 'kube-as-a-service' over a layer of AWS or whatever on top of some massive cloud provider isn't really a heroku competitor. Thats just throwing some plywood over a ball of mud and trying to offer some hand holding with all the rough edges. I don't wanna have to decide between AWS or GCP (see one of the first docs on Porter: https://docs.porter.run/getting-started/provisioning-infrast...), or even think about them. I don't want to learn k8s to spin up some side-projects, and ultimately if you go with one of these the abstractions _will_ leak. I don't wanna go look at AWS UIs to see the status of my database (see https://docs.porter.run/deploying-addons/postgresql#persiste...).

The fact is if you need k8s, then you probably need a team of smart people setting it up and continually managing it who are very knowledge about your app and its specific needs, because you better have the scale that requires. Because if you are spinning up a k8s cluster for a monolith or a few microservices w/ 200 customers, you are just going to burn thru dev time and cash.

Heroku has been constantly praised since it took off because it does massive amounts of things behind the scenes to abstract away all the operations you don't want to worry about. You can launch a tiny prototype or small to medium startup in under an hour. You can add a DB and Redis w/ snapshots and automated backup and monitoring all w/i the Heroku API or UI. Does it expose the full power of the datastore and let you do everything you can do with RDS or a VPS? Of course not, but thats a totally valid trade off when you are just trying to get something shipped to see if it has traction.

So if you are looking for Heroku alternatives: know that things like Porter aren't really direct competitors, no matter how much they are marketing themselves as. From what I've seen Render and Railway are much more in line to be the next Heroku-replacement.

edit to mention, since the parent brought it up: I have no horse in this race. I'm still a fan of Heroku and use it daily, but don't work for anything to do with dev tools or PaaS.

rsanheim··on Twitter set to accept Musk's $43B offer – sources
From what I’ve heard from people who use Twitter far more than me: the only way to avoid them is to use a 3rd party client for Twitter.
rsanheim··on Attack campaign involving stolen OAuth tokens issued to third-party integrators
Good to know - thanks!
rsanheim··on Attack campaign involving stolen OAuth tokens issued to third-party integrators
Yikes. This is bad. On a friday night no less.

Some questions that come to mind:

* Would encrypted secrets for GitHub Actions be exposed to these tokens?

* How to best audit for unauthorized access to exposed repos?

* Were Heroku encrypted secrets exposed?

rsanheim··on Switching from pyenv, rbenv, goenv and nvm to asdf
I switched to using asdf away from nvm/rbenv for a few projects in about a couple hours of time, and that included the install/build time for various versions of things and the time to re-run bootstrap and verify things worked from a fresh clone.

It was really impressive how smooth and quick the process was. Great tool!

rsanheim··on Switching from pyenv, rbenv, goenv and nvm to asdf
Yes! You can swoop into any thread discussing other packaging / build tools, and recommend nix, immediately sidelining any conversation about the original topic.
rsanheim··on Lumber rally cools with transport snarls easing, buyers balking
That was probably closer to the real price if your lunch.

We’ve had a glut of restaurants all up and down the “star level” here in Madison, WI. I think that is true in many cities.

When you account for real wages and costs, many of those places shouldn’t and wont survive over the next few years. We don’t need 6 dollar burritos delivered for 15, and we don’t need five places found farm to table for 30 bucks a plate. If that means service and cooks and dishwashers have to work three jobs in that world, to hell with it.

rsanheim··on What I learned during my three days offline
I skimmed the essay and it is satire right? At least 1/3 satire? Please?

The problem isn't knowing that there is a problem with phone/online addiction, the problem is finding a balance between work that requires us being online, real world things that make it so useful, and the rest that drives our dopamine centers in our free time. Taking a break is good, but what happens after?

rsanheim··on What we lost
I agree that many meetings are often useless and much could be gained if more folks could learn to express ideas and debate and converse in long form writing (not slack messages, not what passes for code review at many shops).

I don’t think that contradicts Rands’ main tpoint that something significant is lost when a good discussion or debate or rant can only be held over video conf. Modern management dictates endless meetings to justify its existence, but that is largely a separate issue from the fact that a truly “alive” face to face human interaction can not be replicated by current tech, not even close. I’ve worked primarily remote for 10+ years, but I still cherish the times when a good team I was on got on-site to debate or argue and then figure out a way forward and plan it out l. I think it can be easy to forget that with the rise of remote-first jobs and endless travel restrictions we live with.

The highest bandwidth conversation is done in person, and I don’t think tech has really come close, regardless of how far it has come. I hope that gap narrows and more younger folks can experience what they have missed if their only real job experience has been done over zoom and slack.

rsanheim··on Spotify deletes 70 Joe Rogan episodes
If you care about music creators or podcasts (in the original spirit of the medium), you have long ago left Spotify or never subscribed to begin with.
rsanheim··on Spotify deletes 70 Joe Rogan episodes
Exactly this. Joe Rogan entertaining anti-vax theories in the spirit of "open discourse" is not scientific discussion or a sign of healthy public discourse.

It's just Rogan knowing that he can peddle the line and bring in both the skeptics and the opposition and pretend that he is just promoting an open discussion. Or he is just ignorant, but I think the dude is smart enough to know that controversy drives up impressions and increases ad revenue and ultimately the success and dollars from his brand.

rsanheim··on Heroku Is Down
Sad to see Heroku falling by the wayside.

It was truly revolutionary when it came out, and I have yet to see anything that makes it so dead simple to spin up a side project or just a 'live mockup'.

It still works great for my team for review apps on every pull request, which is great for live testing and avoiding contention around a staging server.

← PreviousPage 4 of 10Next →