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

ORM is like a regex. When you use it, you've got two problems. The problem with having two problems is that we love solving problems! Yay OCD! So if an ORM doesn't let us do something, instead of just getting the work done with a couple of quoted SQL strings, we try bending the ORM to our will. I know I've done this with the entity framework. And when we do that, the perpetual debate starts all over again.


Why do I have two problems if I use a regex? "Programming Perl" and "Mastering Regular Expressions" were what drew me into programming in the early 2000s. Whilst ORMs are optional regular expressions are not so I don't get your point.


Pretty sure regex is not the only answer to parsing problems. Maybe it is for someone who has preferred using it for the past 15 years.


Ok, what's your alternative for validating an email address?


To use a parser that can validate RFC5322 p 3.4.1


A parser such as ....?




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

Search: