News for hackers. Stuff that matters.
Re:On Hubris and Humility: developing an OS for robustness i... by tgbugs on Saturday December 04, 2021 @04:10PM (#29444343)
For those looking for more on "parse don't validate" mentioned in the talk here are links to the original, and two previous discussions.

0. https://lexi-lambda.github.io/blog/2019/11/05/parse-don-t-va...

1. https://news.ycombinator.com/item?id=21476261 (original 2019)

2. https://news.ycombinator.com/item?id=27639890 (revisited 2021)

Re:On Hubris and Humility: developing an OS for robustness i... by bch on Saturday December 04, 2021 @09:25PM (#29446221)
“Parse don’t validate” reminds me of John Ousterhouts “Define errors out of existence.”[0]

[0] https://youtu.be/bmSAYlu0NcY?t=1315

Re:On Hubris and Humility: developing an OS for robustness i... by dannas on Monday December 06, 2021 @05:43AM (#29458139)
I thought the same thing when I read the blogpost.
Re:On Hubris and Humility: developing an OS for robustness i... by brundolf on Saturday December 04, 2021 @05:28PM (#29444881)
+1, it's become a mantra for me in any code I write that deals with foreign data (which is most of them). Really reshapes your thinking.
Re:On Hubris and Humility: developing an OS for robustness i... by cle on Saturday December 04, 2021 @08:06PM (#29445854)
No rule of thumb should be a mantra. Parsing when you don’t need to induces unnecessary coupling, which can be quite undesirable in many scenarios. Like any technique, there are times when it’s worth it and times when it’s not.
Re:On Hubris and Humility: developing an OS for robustness i... by clmay on Saturday December 04, 2021 @10:28PM (#29446470)
Is "No rule of thumb should be a mantra" its own counterexample?