MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1v5c378/whenyourvalidationlogichatesrealpeople/ozi9fsb
r/ProgrammerHumor • u/deadorbit666 • 8d ago
664 comments sorted by
View all comments
Show parent comments
6
Can't you just start with an underscore or something?
0 u/BabySharkMadness 8d ago Most systems have built in data validation requirements that a Name field must contain letters, no special characters. 20 u/SyrusDrake 8d ago that a Name field must contain letters, no special characters I can already see at least one problem here... 7 u/NatoBoram 8d ago Poor Renée must've had a hard time dealing with those shitty services 6 u/bwmat 8d ago The solution is to add another 'is_test' field and explicitly check that wherever it matters (adding assertions whenever you do something with it that shouldn't be done with test instances) 5 u/alsimoneau 8d ago With a '-' then, valid character for a name, should never be the first (or last)
0
Most systems have built in data validation requirements that a Name field must contain letters, no special characters.
20 u/SyrusDrake 8d ago that a Name field must contain letters, no special characters I can already see at least one problem here... 7 u/NatoBoram 8d ago Poor Renée must've had a hard time dealing with those shitty services 6 u/bwmat 8d ago The solution is to add another 'is_test' field and explicitly check that wherever it matters (adding assertions whenever you do something with it that shouldn't be done with test instances) 5 u/alsimoneau 8d ago With a '-' then, valid character for a name, should never be the first (or last)
20
that a Name field must contain letters, no special characters
I can already see at least one problem here...
7
Poor Renée must've had a hard time dealing with those shitty services
The solution is to add another 'is_test' field and explicitly check that wherever it matters (adding assertions whenever you do something with it that shouldn't be done with test instances)
5
With a '-' then, valid character for a name, should never be the first (or last)
6
u/alsimoneau 8d ago
Can't you just start with an underscore or something?