Hacker News new | ask | show | jobs
by RandomBacon 337 days ago
The name fields have a minimum length of two characters. There are people with single character names.
1 comments

Mandatory reading for anyone implementing forms with names: Falsehoods Programmers Believe About Names [0].

[0] https://www.kalzumeus.com/2010/06/17/falsehoods-programmers-...

Thanks for the link … great read and yes very tricky.

I have started hacking a bit on a Contact::Name text parser in raku Grammars if anyone would like to check it out - contributions are very welcome! https://raku.land/zef:librasteve/Contact

Why Raku?

  - the easy built in Grammar syntax means that coders can work quickly to build structured parse trees that can deal with all the textual nuance (unicode, language, rtl, pluggable sub-grammars…)

  - the consistent ecosystem provides for class / roles as first class packages in their own right, so we can have a shared standardized tree of real word objects we want to parse out of text such as LLM responses