I've been going on Web Developer job interviews recently in and around the NYC area. Besides the ususal questionaires you answer on interview companies have been asking me to either program something for them as a test or take a test where I show how I solve some problems. All well and good. Sometimes I'll go in and show them how I do things, they'll show me how they do it, and their way makes more sense. However, MOST of the time they show me how they do things which I find appauling and completely Stupid to be quite frank.
One potential employer had me do a AJAX test, where they are using their own framework that is OO based. However they generate their HTML in both echo procedural fashion and used PHP functions to generate <input> tags that was
<?PHP echo html_list_generator("name","option1","option2"...) ?> which didnt specify an ID to the element which I needed to target via AJAX so I had to do many backwards things I would never do for production to work with their code.
The same company was for no reason using PHP to generate Javascript.
Unless the javascript needs something from the Server to function, I really see no need to ever do that. When my JS needs PHP info I keep my JS intact and integrate PHP where needed.
Here is an example of a problem they wanted.
"USE PHP to generate a Javascript that would calculate tax based on states of sales items, example usage Price = 5.49 : Taxes = array("NJ"=>.05, "NY" =>".06")
Why would I use PHP to generate a JS that never makes a server call, or would make an unneccesary server call.
Yet other employers were making me integrate PHP into tables that were poorly constructed, aside from the fact they were unneccesarily using tables to begin with. Then they USE OO that is as complicated to work with as using procedural code
echo HTMLClass::TagGenerator::BodyTags::generate("p","cssClass",$CONTENT)
vs
echo "<p>";
echo $CONTENT;
echo "</p>";
OR as I do, seperate HTML and use PHP to fill in the gaps that way multiple technologies can use the same file.
They also have ridiculous TECH specs, like they want an entire IT department in one person. These were not small companies but multi-million dollar companies looking for quality developers, but doing ass backward trends.
Do you guys have similar expericences, or am I so far behind I think other people are behind the times?
ADD:::
OHH and MYSQL WITH NO!!!!! SQL INJECTION PROTECTION!!!