I am presently developing some classes for use with forms (I prefer to build them myself). This is a question for the experienced, so that I know which direction to go in my code design:
Which of the two scenarios is faster:
Every form field (popup, textarea, whatever) is a NEW OBJECT. (i.e. Set the values in the head section and display it in the body)
Every form field is a FUNCTION CALL.
... or are they about the same.
BTW these functions/classes do a lot more than just return the html markup, so I am not interested in just doing straight html here!
Note also that the second option, with the function calls incorporates a lot of variables in its list of arguments, wheras the objects may only include what is necessary/initialized.
(by the way, will someone please tell me what IMOH stands for?)