26 reputation
4
bio website
location Saratoga Springs, NY
age 33
visits member for 2 years
seen May 22 at 17:45

I'm a web developer working primarily in the e-commerce field using an open source LAMP stack.


May
2
awarded  Popular Question
Sep
6
awarded  Scholar
Sep
6
awarded  Supporter
Sep
6
accepted Best Method of function parameter validation
Sep
5
comment Best Method of function parameter validation
So in essence we will create a different object for each simple type that we can expect. So I could create a Value object that has the restraint of being non-negative and then use that as the parameter instead.
Sep
5
comment Best Method of function parameter validation
Thanks, I'll take a look at it.
Sep
5
comment Best Method of function parameter validation
Yeah, I've done a little research into that. Unfortunately I don't think PHP has any built-in method of AOP. IS there a specific technology or package that you can reference for me to see the practice in action.
Sep
5
comment Best Method of function parameter validation
Yeah these are user defined functions or methods. I was hoping to get some community advice on what those well-established ways are, most of my googling hasn't turned up a good blog entry, maybe I'm using the wrong phrasing, though I have seen the below AOP reference before.
Sep
5
awarded  Student
Sep
5
asked Best Method of function parameter validation