Navngivning

Et af de klassiske problemer med software og formularer er at dem der implementerer regler og validering sjældent har en komplet forståelse af problemområdet. Til gengæld tror de gerne at de har. Patrick Nielsen Hayden – eller for den sags skyld jeg selv – kan for eksempel ikke abonnere på The New York Times med vores rigtige navn. Patrick McKenzie har en udmærket liste som programmører burde gå igennem, “Falsehoods Programmers Believe About Names“:

6. People’s names fit within a certain defined amount of space.
7. People’s names do not change.
8. People’s names change, but only at a certain enumerated set of events.
9. People’s names are written in ASCII.
10. People’s names are written in any single character set.
11. People’s names are all mapped in Unicode code points.
12. People’s names are case sensitive.
13. People’s names are case insensitive.
14. People’s names sometimes have prefixes or suffixes, but you can safely ignore those.
15. People’s names do not contain numbers.
– Patrick McKenzie, “Falsehoods Programmers Believe About Names

This entry was posted in Development and tagged , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.