Discussion about this post

User's avatar
bjkeefe's avatar

I, like @wyrdsmythe, had not heard of "parse don't validate" before just now.

Just fyi, if you're curious.

That aside, this was another great article from you. Definitely a keeper. Thanks!

Expand full comment
Wyrd Smythe's avatar

Interesting post. I've been coding since 1977, but this is the first time I've heard "Parse don't validate". Until now, if asked, I would have said "parsing IS validation" (and vice versa). That said, my natural instincts are for high-level abstractions. I'll create a new class (or a subclass of a built-in) at the drop of a hat. I may sometimes start with tuples, but if the app has any complexity at all, that quickly gets old. "What element was which, now?" I usually skip over named tuples and go right to a user-defined class.

Expand full comment

No posts