Hacker News new | past | comments | ask | show | jobs | submit login

That's like saying that because one browser tab tried to parse some invalid JSON then my whole browser should crash.



Well yes because you're describing a system where there are really low stakes and crash recovery is always possible because you can just throw away all your local state.

The flip side would be like a database failing to parse some part of its WAL log due to disk corruption and just said, "eh just delete those sections and move on."


Crash the tab and allow all the others to carry on!

The problem here is that one individual document failed to parse.


The other “tabs” here are other airplanes in flight, depending on being able to land before they run out of fuel. You don’t just ignore one and move on.


Nonsense comparison, your browser's tabs are de facto insulated from each other, flight paths for 7000 daily planes over the UK literally share the same space.


You don't know that the JSON is invalid. Maybe the JSON is perfect and your parser is broken.


No, it's more like saying your browser has detected possible internal corruption with, say, its history or cookies database and should stop writing to it immediately. Which probably means it has to stop working.


It definitely isn't. It was just a validation error in one of thousands external data files that the system processes. Something very routine for almost any software dealing with data.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: