This morning I had about 8 frameworks in front of me, trying to decide which one I'll use for a new project. In about an hour I've disqualified three, simply because they lacked functionality I need. They have other super awesome features, and they might even have the specific features I needed but didn't make it obvious in their documentation, so we are left with five. Time to dig a little deeper, spend about half an hour trying to understand what (basic) architectural decisions each of them would impose on me.
Two more off the list, one for being an over-engineered piece of crap and the other because after a while I had absolutely no idea what it was about. That brings us down to three, and it took about four hours1. This is were it gets tough, all three frameworks seemed excellent for what I need them for, from a very high level view.
Time to look even deeper, and get a bit subjective; I spend about an hour examining each one's code, and looking for obvious smells, or just plain obnoxious coding style. Looking at the code also gave me a better understanding of their architecture, and after about 8 hours2 I'm down to 2 and I've decided to stop for the day.
Sounds easy? Well it is:
- I've been doing this for almost 15 years. I have absolutely no idea how long it would have taken me to get down to 2 choices if I was relatively new.
- I know exactly what the project's requirements are, having written most of them myself.
- It's a pet project, a wrong choice wouldn't hurt (much).
Still, the process is basically the same:
Know what you need
Your project must have well defined requirements.
Know what you don't want
Avoid architectural choices that smell, or that you simply aren't comfortable with.
Know what you want
If all else is equal, look at stuff like code quality, testing coverage, etc.
I'm now at a point where I might venture a question on Stack Overflow. If I do, I will try to:
- Clearly present the project's requirements,
- Explain why I've already disqualified some of the available solutions,
- Point out that I'm trying to choose between the two frameworks, but I'm open to other suggestions.
In doing so, I have:
- Asked a question about an actual and practical problem,
- Shown prior research and effort to solve my own problem,
- Didn't leave much room for spammy answers.
I probably won't ask, pick one of the two and be done with it, but I don't think my question would have been closed (but who knows?). As I've already mentioned, I don't know how much time all this would have taken me if I was a noob, but 99% of "recommend me" questions I've seen from (truly) noobs are:
- Extremely broad and/or
- Naive (trying to choose based on popularity/hype alone) and/or
- Pointless (trying to chose a framework when it's completely unnecessary).
These questions are of little use to anyone, I'm afraid, and I don't think we should do anything to accommodate them. Call me elitist if you must, but you'll need to keep in mind that developers have been evaluating solutions decades before Stack Overflow appeared, and we were doing just fine. I'm addicted to Stack Exchange (not so much Stack Overflow itself, though) and I don't really miss the good old days. The site has helped me spend more time on actually being productive instead of searching for things, but we can't take research and effort completely out of the equation.
I'll gladly help someone solve an actual, practical problem, if it's within my expertise. But if it's broad recommendations you are looking for, my time will be better spent building stuff.
</rant>
1 In case you're wondering where the extra half hour went, well, there were a few questions on Programmers that needed closing ;)
2 This time the extra time was all Reddit.
The Q&A format can be abused to market products and projects.
Oh don't worry, we got that covered big time. We have a satellite with several self-replenishing-flag-guided-nukes (sponsored by Diamond-Moderation Inc., New York ... don't confuse with Diamond Mockeration Inc. in Massachusetts. Never ask them for nukes...NEVER!) in orbit which allows us to nuke nearly everyone within a few minutes.