Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Sure, you should ideally do this in your application code. But if there is multiple interfaces (such as a REST api etc) to your database then you have to remember to put them in place everywhere.

Whenever I've done this I've just separated out the model/db access layer into a module that is shared between projects that need it and built the validation into that layer. DRY.



Across languages? Across speed requirements? Across locations?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: