r/PHPhelp • • Dec 10 '18

[Advice, no code]OOP PHP job interview

Hey, i hope this is the right subreddit to post my question.

So tomorrow i've got a second meeting with the owner of a small company (3 employees + boss) that makes modules for online stores using Magento.

The first interview went smooth they asked me basic questions to see if i actually was a programmer such as "Can you tell us the difference between a foreach and a for loop?" and "what is the difference between public, private and protected classes?".

Since i'm not doing any "fake it 'till you make it" applying to this job, these were obviously easy questions and i got planned in for a second meeting.

He told me i would speak to their best programmer who would ask me more in depth questions to see if i was up for the task or not.

Even though i'm confident in my PHP, MySQL and JSON/ XML skills, this is really getting me more worried than it should, as such i was wondering if any of you guys who are employed in the field know what kind of questions i should expect?

TL;DR

If you were going to hire a "Junior PHP developer", what type of questions would you ask them to test their knowledge?

9 Upvotes

18 comments sorted by

View all comments

2

u/innerspirit Dec 10 '18

I haven't used Magento but it looks like an over-engineered OOP CMS, so I would venture a guess that they will ask questions about design patterns such as MVC or Observer. Maybe brush up on those a bit before the interview, but I don't think this is junior level stuff anyway.

3

u/cyrusol Dec 10 '18 edited Dec 10 '18

Magento is not over-engineered, it has the right amount of engineering for an ecommerce platform. It's an absolutely fucking complicated task to honor all the differences between the various product types different people want to sell (hence EAV), or the currencies, taxes, shipping costs, units and other i18n factors of different languages, or the complete separation of models and their representation (templates/views) for maintainability, or the feature to easily integrate existing payment service providers or other typically useful features like different caching backends, geocoding, tracking etc. There is also the separation of core, community and local code so that everything can be kept up to date with basically composer update (or modman in the old days). It all makes sense, even though it's just much that went into the system.

1

u/disembarkedone Dec 10 '18

I also think people make the mistake of working with magento2 on Windows. I know I did for a while..

1

u/cyrusol Dec 10 '18

I think if you consider Magento for a real project you should already have the infrastructure running (or the time and funds to realize it) to have streamlined dev environments through some combination of Vagrant, Puppet and Docker, or at least start with puphpet or something like this. It's simply more effort to get such a project up and running than installing Wordpress. Especially considering all the different DBMS, LRU caches, search engines, MTUs etc. Magento can work with.