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]
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.
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)