"Parse, don't validate" through the years with C++
32 points
2 days ago
| 3 comments
| derekrodriguez.dev
| HN
bregma
42 minutes ago
[-]
Author has used LLMs to generate Java code in C++. It detracts from his point.
reply
jsymolon
43 minutes ago
[-]
First thought, assuming that birth year starts at 1900 is bad for a number of reasons; one of which, "process this list of authors and ..."

What about everyone born before 1900?

reply
alpinisme
32 minutes ago
[-]
It’s a contrived example. And I have to assume the author intended it to be contrived given that he also put an upper bound at 1999 in an article written in 2026 in an industry that skews young.

But the pattern applies regardless of the validation logic.

reply
Neywiny
25 minutes ago
[-]
Or what if they were born after 1999?

It's just a toy example not a production ready birthday validation library.

reply
rienbdj
1 hour ago
[-]
C++ could use some do-notation
reply