- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
TRWTF: "Before bringing people in for an interview, we give them a simple questionnaire about PHP"
What, if they know anything about PHP, they fail?
Admin
I was FIRST in my class.
Admin
FRIST!
I had a job interview like the the last one once. An hour of psych questions, and a 5 min interview with the technical lead. Didnt get the SQL DBA job supposedly because I wasnt technically qualified. Wierd since I had been teaching the Microsoft SQL Server admin classes for several years.
Always wondered what my psych scores were....
Admin
I can think of a specific case where that crazy PHP "fix" would actually work:
If you have whitespace at the end of a PHP file and you include it as a header, the whitespace will be sent as content, thus preventing you from sending more headers in your main PHP file after including the file. Removing the whitespace from the end of the file would fix it (IIRC).
In any case it's clear the interviewee doesn't quite understand what's going on. He figured out how to fix it in a specific case, possibly by accident, but he clearly doesn't know what it means or why it happens.
Admin
Any interview where you don't get to blow someone is a waste of time.
Admin
For my current job, I didn't need a psych test, yay? However, I remember in between jobs I interviewed at a local gas station chain to be a clerk (sales associate/pump overlord/whatever). Everyone was required to take a 60 min fill in the circles test where they basically asked the same 10 questions about, "You wouldn't steal from us, right?" worded many different ways in many different scenarios. The last few were 'fill in here what you would do in X scenario above', stuff like, "A worker has stolen paperclips from the office area! They don't like they are returning them, when you confront them about it, how will you go about convincing them to return the company's paperclips!?"
Just once I want to take one of these stupid things and respond with something like, "First I would try to convince my fellow employee that stealing is wrong, even if it is 2 pennies worth of paperclips that have been mangled beyond any functional use, and that he should return them to their proper places immediately. If my fellow coworker does not agree with me and argues that the equipment is indeed his as no one else will get functional use of them, I would call upon the powers of the Norse and materialize my trusty claymore into my hands so that I can slay the enemy of my company, who was thoughtful enough to provide me with this minimum wage job! Afterwards, I will move decap'd employee to cold storage so that I can take him out with the trash later. Wouldn't want to miss tending to any customers because I had to return company paperclips, right?"
Admin
TRWTF is PHP, amirite? /s
Admin
I want more explanation on the first one, since I am not familiar with PHP. The text is written like it came from someone with experience writing instructions for the lowest common denominator. I've written somewhat similar bits of instruction, because it can be a lot easier to give an action (Hold the delete key) than to explain a concept (there must not be any white space at the end of the file).
Admin
Admin
Sometimes I think it is worthwhile to take a interview just for the laughs.
Admin
Not to get sidetracked, but what do claymores (" a large sword used in the late Medieval and early modern periods... used in the constant clan warfare and border fights with the English from circa 1400 to 1700") have to do with the Norse ("the Scandinavian population of the period from the late 8th century to the 11th century")?
Admin
I had a lot to say in this comment, but following the instructions about the end of files has caused this post to cut
Admin
Not to get sidetracked either, but seeing as how this was a fictional response to a fictional situation, I didn't feel it warranted research into the armaments of that particular group of people. I apologize if you are indeed Norse and I have offended you and/or your people. But please, by all means, continue being anal, it appears you're having fun. :)
Admin
Admin
Admin
I'm not sure about anything you wrote, but I am sure that you're a nerd! -says the geek
Admin
My guess is that he did indeed google the answer, and more or less just copy/pasted said answer.
Admin
I suspect Dave stepped through a time portal. dBase, the low pay, floppies, and smoking in the office. I think he ended up somewhere around 1990.
Admin
Actually, I just checked my passports, and one of them does say I'm Finnish. I'm just dispatching a longboat full of large beardy guys in horned helmets to exact vengeance in blood for the offense you've given. What's your location?
Admin
I once had an interview like the second one. After the rediculous math questions (this guy had a math fetish), his tirade of how Entity Framework and linq to sql really just output sql text and nothing else, and that his entirely string-based "data access" layer used, GASP, string interning, I was ready to walk away... I remember asking him (quite sarcastically) if he'd ever heard of sql injection vulnerabilities. Apparently because of my security background, he wanted to hire me.
The guy was a total jerkoff (very condescending, etc.), and I think he sensed that I didn't want the job because he kept me there for ~4 hours talking about how profitable the company was, blah blah blah.
The funny thing was that, other than math/algo questions, he didn't even TOUCH .Net, which was funny considering it was for a senior .net role.
Admin
My guess is that this weeds out those without clue about php. If someone knows anything, he will just say that those instructions are wrong or will do it the right way.
Admin
Pedantry is a favourite passtime of many trolls and visitors here.
Admin
For all I know, this could be lauching the missiles if typed in Emacs, so be careful what advice you dispense...
Admin
I'm in Oklahoma, US. I got a whole raiding party full of Apache braves. Bring it!
Admin
Admin
Admin
Admin
/**** Updated instructions to fix bug found by MAZZTER ****/
s/For at least 15 seconds/For at least 30 seconds/
Admin
Admin
Okay, damn, I'm going to have to look into shipping options for the longboats. I'll get back to you on the extracting vengeance in blood bit. Are you busy, um, first week of November?
Admin
Dear Tony,
I'm still waiting for a call back as to whether or not I got the job.
Sincerely, PHP Guru
Admin
Quick overview of the first one for the PHP clueless (You lucky bastards you):
As you probably know, an HTTP Message looks like:
Obviously, then, once you start sending the body to the client, the time to send headers has come and gone, so if you try to send any headers, PHP generates an error and appends it to the body letting you know all about how you totally cannot send anymore headers.Actual information if you're still curious:
Things that may dump headers:
Reasons why we might already have sent headers and be in the body of the message:
Ways to keep this from going all splody: 0) Any time you want to dump headers, use headers_sent() to check if you can still send headers. If not, just set yourself on fire.
So, the answer the person gave basically covers the single situation of having whitespace after the final closing tag in a PHP file, which would itself only matter if it were part of the include chain and not a single file running alone. In reality, of course, while this can be an issue, you are much more likely to be encountering something even dumber, like an error being raised before your call to session_start().
Admin
Do you know what people would pay to see nerds get blown? It's something you're never gonna see anywhere else. Supply/Demand and all that jizz.
Admin
Yes, there are a lot of things you wouldn't want to mention in that guy's presence.
Furbies, for example: We all know what a bunch of little spies they are!
Admin
Looks like vi to me...
Admin
Admin
Admin
tl;dr, the REAL answer is (somewhere right before the offending line):
Problem solved! kthxbai!
Admin
I usually find it's more efficient to send the head to the client. Saves on shipping, and it's typically more identifiable.
Admin
Think you meant: G$/?>(enter)NlvG$da(esc):x
Admin
I am disappointed!
Admin
Admin
And how adding GG/?> NlvGGda>:wq to file will help?
Admin
Admin
That is not funny! My son was a troll and it is no laughing matter :(
Admin
Are you making fun of my gigantic retarded autistic son with the bad back? Bitch.
Admin
Read the bottle, it says: "Queermore: No blood, just buds! Nine out of ten queers can't be wrong!"
Did you really expect 9/10 queers to not know their lube?
Admin
The answers to the PHP question must have been ripped off the Wordpress documentation.
Admin
Forget India, we're outsourcing our call center to Scandinavia!
Admin