What is opinionated software?

I often see people saying that certain software is "very opinionated" or that Microsoft tends to write "un-opinionated" frameworks. What does this actually mean?


If a framework is opinionated, it lock or guides you into their way of doing things.

For example: some people believe that a template system shouldn't provide access to user defined methods and functions as it leaves the system open to returning raw HTML. So an opinionated framework developer only allows access to data structures. By design, the software is limiting and encourages the designer into doing things their way.

Another example (taken from the signals link) is that of wiki. The designers of wiki had a lot of opinions. They thought HTML was too complicated for people to write, so they came up with what they felt was a more natural way to update content. They also stripped it of fancy design because they felt the focus ought to be more on content than design.

Apple has strong opinions when it designs its products.

Un-opinionated software design is more like PERL/PHP. It allows the developer and trusts the developer to make the right decisions and puts more control in their hands.

I would also place Microsoft in the non-opinionated column. A good example of a Microsoft framework which is un-opininated: .NET . By opening the CLR and the specs, it opened it to all sorts of languages and styles of implementations.


Opinionated software means that there is basically one way (the right way ™) to do things and trying to do it differently will be difficult and frustrating. On the other hand, doing things the right way ™ can make it very easy to develop with the software as the number of decisions that you have to make is reduced and the ability of the software designers to concentrate on making the software work is increased. Opinionated software can be great to use, if done well, if your problem maps onto the solution nicely. It can be a real pain to solve those parts of your problem that don't map onto the tools provided. An example here would be Ruby on Rails.

Non-opinionated software, on the other hand, leaves lots of flexibility to the user (developer). It doesn't proscribe one method of solving a problem, but provides flexible tools that can be used to solve the problem in many ways. The downside of this can be that because the tools are so flexible, it may be relatively hard to develop any solution. Much more of the solution may have to be hand-coded by the user (developer) because the framework doesn't provide enough help. You also have to think much more about how to provide a solution and mediocre developers may end up with poorer solutions than if they had bought into some opinionated software. PERL is probably the classic example of non-opinionated software.

My ideal is a non-opinionated framework, but one with strong conventions. I would put ASP.NET MVC in this category. In reality all software is opinionated to some extent (though perhaps not PERL). MVC has strong conventions in its choice of model but offers many different ways to solve problems within those conventions. Some of those ways may even break the model. Used correctly, however, in accordance with the conventions developing in such a framework can be a real joy.


It's basically software that works the way its authors think it should work, instead of trying to please everybody. That means a lot of people will not like it, but the ones that do will love it.

Rails is probably the canonical example of an opinionated framework: you do things their way, and everything is smooth. If you don't, you're in for some pain. But that's OK -- if you don't want to do things their way, you don't want to use Rails.

链接地址: http://www.djcxy.com/p/20684.html

上一篇: 通过Objective中的NSNotificationCenter发送和接收消息

下一篇: 什么是自制软件?