Live data from Hacker News

I have a php developer interview? Any advice?

news.ycombinator.com

1–10 of 13 posts

Re: I have a php developer interview? Any advice?

#2
Well, depending on the job you should learn basics HTML and CSS. Even if you are not going to use them, showing the interviewers you expanded your view to the front end can only be a good thing. And since you have such few experience, you should compensate with a friendly personality.

Re: I have a php developer interview? Any advice?

#3
As a recruiter, I would check the following:

- Do you know the magic methods? http://php.net/manual/en/language.oop5.magic.php

- Do you understand MVP and its value added? The fact that you use laravel may be an hint for a yes. Have you tried to do a bare PHP/MySQL application? You should, just to see how dirty it can be.

- Do you know and use var_dump?

- Are you able to write a Fizz Buzz?

- What's your knowledge about security stuff? XRSF / SQL injection / XSS

- Maybe some basic array manipulation involving array_keys, array_key_exists, array_shuffle.

- How would your test if a string is included in another one? The answer is of course using strpos but extra care has to be given to handle a FALSE return

- How to test for NULL, empty and FALSE?

- How would you do a key value iteration?

Tests vary a lot among employers and, in my case, I do not expect 100% good answers but it gives me a quick overview of your level.

Re: I have a php developer interview? Any advice?

#5
As an interviewer I would be checking first for competence over most other things. The reason is that PHP itself is a landmine language that has grown up organically. I'm not hating on PHP, just stating current state of the language. (Python is full of it's own gotcha's for example)

Knowing the gotcha's of the language is important, but a competent developer also understands patterns and disciplines.

For example, it's often times that DRY is perverted into a framework that obfuscates that actual work being done and makes not only the code untestable but also debugging a nightmare. It'd okay to repeat yourself as long as it provides clarity over obfuscation. But when is too much repeating too much? How would you fix it? Refactor? Rewrite? This perversion isn't exclusive to PHP at all.

On the PHP front, in addition to frantzmiccoli's great questions I would add the following: - have you installed and used xdebug? - you ever done code profiling with xhprof ?

Re: I have a php developer interview? Any advice?

#6

As a recruiter, I would check the following: - Do you know the magic methods? http://php.net/manual/en/language.oop5.magic.php - Do you understand MVP and its value added? The fact that you use laravel may be an hint for a yes. Have you tried to do a bare PHP/MySQL application? You should, just to see how dirty it can be. - Do you know and use var_dump? - Are you able to write a Fizz Buzz? - What's your knowledge abo…

I think the suggestions above are good. I've Interviewed several candidates for PHP dev positions.

Here what I usually check for in a candidate: - know your OOP (when to extend a class when to use composition, dependency injection, single responsibility principle) - Usually ask at explaining MVC - Ask about frameworks you've worked with (Symphony, Zend, Laravel, etc.) - Your ability to solve problems.

But mostly I look at your ability to solve problems and learn on your own. So if you dont know the answer to something, just let them know that Google and Stackoverflow are your best friends.

Re: I have a php developer interview? Any advice?

#7

As a recruiter, I would check the following: - Do you know the magic methods? http://php.net/manual/en/language.oop5.magic.php - Do you understand MVP and its value added? The fact that you use laravel may be an hint for a yes. Have you tried to do a bare PHP/MySQL application? You should, just to see how dirty it can be. - Do you know and use var_dump? - Are you able to write a Fizz Buzz? - What's your knowledge abo…

Wow, thanks thats alot to learn in 2 days. But i'll commit to finding answers for that.

Re: I have a php developer interview? Any advice?

#8
post #6

As a recruiter, I would check the following: - Do you know the magic methods? http://php.net/manual/en/language.oop5.magic.php - Do you understand MVP and its value added? The fact that you use laravel may be an hint for a yes. Have you tried to do a bare PHP/MySQL application? You should, just to see how dirty it can be. - Do you know and use var_dump? - Are you able to write a Fizz Buzz? - What's your knowledge abo…

I think the suggestions above are good. I've Interviewed several candidates for PHP dev positions. Here what I usually check for in a candidate: - know your OOP (when to extend a class when to use composition, dependency injection, single responsibility principle) - Usually ask at explaining MVC - Ask about frameworks you've worked with (Symphony, Zend, Laravel, etc.) - Your ability to solve problems. But mostly I lo…

I was doing a laravel project from tuts+ and you don't know how many times I had to check for stackoverflow for answers to problems. I was discouraged that I wouldn't fix some of my issues with the project but I was able to complete the project after a week, which made me happy.

Re: I have a php developer interview? Any advice?

#9
I know another PHP developer that is well-known in the PHP community in DC - he told me a story about how he was a guest interviewer for another company as a courtesy once. Out of all of the candidates he interviewed, only one gave him straightforward, honest answers to the hard questions he asked - the answer was the same each time, "I don't know, I would google it". That was the candidate he selected, and supposedly it worked out great for that company.

Do not lie during an interview - if you don't know something, be honest and mention that you would do your research to figure it out.

Re: I have a php developer interview? Any advice?

#10
post #9

I know another PHP developer that is well-known in the PHP community in DC - he told me a story about how he was a guest interviewer for another company as a courtesy once. Out of all of the candidates he interviewed, only one gave him straightforward, honest answers to the hard questions he asked - the answer was the same each time, "I don't know, I would google it". That was the candidate he selected, and supposedl…

> I don't know, I would google it

That's exactly what I would answer and that would exactly be the reason why most companies won't hire me.

Post reply on HN