Most active commenters
  • haiku2077(3)

←back to thread

741 points chirau | 17 comments | | HN request time: 0.626s | source | bottom
Show context
theLiminator ◴[] No.44358222[source]
uv and ruff are a great counterexample to all those people who say "never reinvent the wheel". Don't ever do it just for the sake of doing it, but if you have focused goals you can sometimes produce a product that's an order of magnitude better.
replies(7): >>44358352 #>>44358435 #>>44358583 #>>44358604 #>>44360352 #>>44361046 #>>44362201 #
1. mort96 ◴[] No.44358604[source]
Honestly "don't reinvent the wheel" makes absolutely no sense as a saying. We're not still all using wooden discs as wheels, we have invented much better wheels since the neolithic. Why shouldn't we do the same with software?
replies(5): >>44358832 #>>44358840 #>>44358965 #>>44361544 #>>44363481 #
2. aalimov_ ◴[] No.44358832[source]
I always took this saying as meaning that we don’t re-invent the concept of the wheel. For example the Boring company and Tesla hoping to reinvent the concept of the bus/train.. (iirc your car goes underground on some tracks and you get to bypass traffic and not worry about steering)

A metal wheel is still just a wheel. A faster package manager is still just a package manager.

replies(1): >>44358855 #
3. haiku2077 ◴[] No.44358840[source]
Right, wheels are reinvented every few years. Compare tires of today to the ones 20 years ago and the technology and capability is very different, even though they look identical to a casual eye.

My primary vehicle has off-road capable tires that offer as much grip as a road-only tire would have 20-25 years ago, thanks to technology allowing Michelin to reinvent what a dual-purpose tire can be!

replies(1): >>44359616 #
4. haiku2077 ◴[] No.44358855[source]
That's not how I've ever seen it used in practice. People use it to mean "don't build a replacement for anything functional."
5. simonw ◴[] No.44358965[source]
When asked why he had invented JSON when XML already existed, Douglas Crockford said:

The good thing about reinventing the wheel is that you can get a round one.

https://scripting.wordpress.com/2006/12/20/scripting-news-fo...

replies(1): >>44359814 #
6. nightpool ◴[] No.44359616[source]
> Compare tires of today to the ones 20 years ago and the technology and capability is very different, even though they look identical to a casual eye

Can you share more about this? What has changed between tires of 2005 and 2025?

replies(1): >>44359884 #
7. idle_zealot ◴[] No.44359814[source]
You can get a round one. Or you can make yet another wonky shaped one to add to the collection, as ended up being the case with JSON.
replies(2): >>44360171 #>>44360730 #
8. haiku2077 ◴[] No.44359884{3}[source]
In short: Better materials and better computational models.

https://www.caranddriver.com/features/a15078050/we-drive-the...

> In the last decade, the spiciest street-legal tires have nearly surpassed the performance of a decade-old racing tire, and computer modeling is a big part of the reason

(written about 8 years ago)

9. simonw ◴[] No.44360171{3}[source]
What makes JSON wonky?

Personally the only thing I miss from it is support for binary data - you end up having to base64 binary content which is a little messy.

replies(2): >>44360686 #>>44362261 #
10. idle_zealot ◴[] No.44360686{4}[source]
Quoted keys, strict comma rules, very limited data types, are the main ones. There are a host of others if you view it through the lenses of user-read/write, and a different set of issues if you view it as a machine data interface. Trying to combine the two seems fundamentally misguided.
replies(1): >>44379739 #
11. psunavy03 ◴[] No.44360730{3}[source]
Insert the xkcd about 15 competing standards . . .
replies(2): >>44361001 #>>44396654 #
12. oblio ◴[] No.44361001{4}[source]
Standards do die off, up to a point. XML is widely used but the last time I really had to edit it in anger working in DevOps/web/Python was a long time ago (10 years ago?).

At this point XML is the backbone of many important technologies that many people won't use or won't use directly anymore.

This wasn't the case circa 2010, when I doubt any dev could have really avoided XML for a bunch of years.

I do like XML, though.

13. rocqua ◴[] No.44361544[source]
I came here to (wrongly) say that wooden disks were never used as wheels, and that ot all started with spokes. Some checking showed that, in fact, the oldest known wheels have a lot of solid disks. E.g: https://en.m.wikipedia.org/wiki/Ljubljana_Marshes_Wheel

Hopefully this can disabuse others of similar mistaken memory.

14. Myrmornis ◴[] No.44362261{4}[source]
Lack of comments seems like a big one seeing as it's so widely used for "configuration". It's a big enough downside that VSCode and others have violated it via ad-hoc extensions of the format.

The comma rules introduce diff noise on unrelated lines.

15. sashimi-houdini ◴[] No.44363481[source]
I also like Dan Luu's take (starting with a Joel Spolsky quote)

“Find the dependencies — and eliminate them.” When you're working on a really, really good team with great programmers, everybody else's code, frankly, is bug-infested garbage, and nobody else knows how to ship on time.

We had a similar attitude, although I'd say that we were a bit more humble. We didn't think that everyone else was producing garbage but, we also didn't assume that we couldn't produce something comparable to what we could buy for a tenth of the cost. From talking to folks at some competitors, there was a pretty big cultural difference between how we operated and how they operated. It simply didn't occur to them that they didn't have to buy into the standard American business logic that you should focus on your core competencies, that you can think through whether or not it makes sense to do something in-house on the merits of the particular thing instead of outsourcing your thinking to a pithy saying.[0]

[0] https://danluu.com/nothing-works/

16. collinmanderson ◴[] No.44379739{5}[source]
I consider JSON's very limited data types to be part of what makes it so good.
17. mort96 ◴[] No.44396654{4}[source]
Probably the world's most over-used and misused comic strip. JSON wasn't created as a response to a situation where there were too many data interchange standards.