OO Design related questions in technical interviews - Programmers Stack Exchange
Designing a small system is actually a very relevant exercise to ask in an interview. It shows your skills at coming up with a good software solution to a domain problem.
However, I find it strange to just ask to post a class diagram online with no human interaction :
- They'll miss the essential - the reasoning behind the diagram and what led you to design things that way.
- There's no "parapet" to stop the applicant from going too far. If you reflect a final implementation in the diagram, you'll probably have dozens of classes and an unreadable schema.
- Being able to draw a UML class diagram is not really an essential skill, it's just one OO notation among others. The ability to create solid designs is.
In a live interview, the ideal steps I'd expect a candidate to take would be :
- Talk about the problem with the recruiter and start expressing a basic solution verbally, asking questions and adjusting as the recruiter gives more precise needs.
- Stand up and sketch an overall view of the system and how components could interact together. Might be the purest style of UML, might be just boxes and circles.
- Write a test, either high level acceptance test or unit test for one of the components/classes.
- Start writing the corresponding implementation.
Read full article from OO Design related questions in technical interviews - Programmers Stack Exchange
No comments:
Post a Comment