News for hackers. Stuff that matters.
Re:We Chose NanoIDs for PlanetScale’s API by skeeter2020 on Thursday December 29, 2022 @12:57PM (#34175612)
"User friendly, clickable in the browser, api urls" seems like... a made-up user requirement? Have they nailed their product so well that this is the highest value work outstanding? There's some neat technical details in there but to me this is the definition of engineering procrastination.
Re:We Chose NanoIDs for PlanetScale’s API by ripperdoc on Thursday December 29, 2022 @01:00PM (#34175646)
Choosing ID strategy is one of those early architecture decisions that has to be done upfront and that can give a lot of headache later if the choice was wrong. So I wouldn't call it procrastination if it's made before starting development. To change it later in the process, just for vanity purposes, would certainly be risking wasting time on the wrong thing.
Re:We Chose NanoIDs for PlanetScale’s API by counttheforks on Thursday December 29, 2022 @02:04PM (#34176466)
Having IDs that can't be represented cleanly in a hyperlink makes them pretty useless if you're building a web facing service.
Re:We Chose NanoIDs for PlanetScale’s API by dpkirchner on Thursday December 29, 2022 @02:42PM (#34176959)
If making the urls easy to copy saves them even a handful of support requests, it's worthwhile.
Re:We Chose NanoIDs for PlanetScale’s API by nickvanw on Thursday December 29, 2022 @02:50PM (#34177042)
Hi! I'm the VP of Engineering at PlanetScale and was at the company when we made this decision.

We had the advantage of being able to decide to do this up front when we were first building the current product. The marginal work for this was nearly zero because we did not have to migrate anything existing, we just decided to address our resources using this strategy. In that way, there was nothing procrastinated -we just decided this was a good idea, and did it.

I can speak from firsthand experience, however, how useful it is to be able to copy/paste links and references to resources. It makes support, collaboration and work much easier when you can easily share links to resources.