Re:Software Design Patterns Are Not Goals, They Are Tools
by golergka on Thursday May 19, 2016 @08:41AM
(#11729656)
I have been interviewing a lot of developers recently, and one of the best questions I've found is to ask them _why_ they have used MVC pattern in the test assignment (most do). Most of developers misunderstand the question at first and either start to explain how MVC works or explain how they would've implemented it without MVC (when you ask people why they did something, they often take it as "you shouldn't have done it"). But even when I clarify the question, a surprising number just can't even begin to answer it — instead they stumble and at best just tell that that's how they have always been taught to do it.
[ Parent
| on HN ]
Re:Software Design Patterns Are Not Goals, They Are Tools
by GaveUp on Thursday May 19, 2016 @11:12AM
(#11730827)
I noticed the same thing when interviewing people. Answering why a decision was made would always trip people up, but it's far more revealing than any demo project can be. It doesn't matter, to me, whether the solution was right or wrong, but more the "why" that got you there and how it will get you to where you need to go. You can't problem solve effectively without understanding the reasons you're making the decisions you are.
The same follows for patterns, I think. If you haven't thought about it critically and really done the work to understand the "why" (being told the "why" is not enough) you're going to struggle and mostly fail to implement it properly are in the appropriate situations.
Re:Software Design Patterns Are Not Goals, They Are Tools
by sageikosa on Thursday May 19, 2016 @09:49AM
(#11730127)
That you haven't been up-voted more affirms my belief that you are on the right track. If they can't explain why they don't know the value of it. If they don't know the value of it, they can't weigh that value against any others.
Re:Software Design Patterns Are Not Goals, They Are Tools
by projektfu on Thursday May 19, 2016 @02:50PM
(#11732667)
Is "it's the first thing that came to mind" an acceptable answer?
Re:Software Design Patterns Are Not Goals, They Are Tools
by sageikosa on Friday May 20, 2016 @11:23AM
(#11738555)
That's falls somewhere between "because its the way we do things around these parts" and "it's what we used on my last couple of projects".
Perfectly fine for a certain degree of utility (maintenance, finishing, junior dev?), not quite so much for a lead, system designer or architect.