Paget, MVC, RMR and why words matter

I wrote a little while back about Pages, Screens and MVC. The motivation for the post was to help me explain why my thoughts around software and the web had changed over time. It also tied in nicely with Ian’s first post on Paget. The second round of Paget makes substantial changes and improves on the original design in many ways.

Following that Ian points us at Paul James’s post, Introducing the RMR Web Architecture. Ian says The Web is RMR not MVC and in the comments on that post we see some discussion about RMR being simply MVC using other names. We had a similar discussion over email internally.

Naming things is important to how we think about them, as Paul James says:

Alan, partly this is just a question of naming, but then a difference in naming can lead to a difference in thinking.

His second statement goes on to say what I said in Pages, Screen, MVC and note getting it.

As Ian points out above, it is more about binding actions to resources (models) rather than to controllers and of removing (or limiting) the need for routing. You say “The Controller is there to bind the system to HTTP”, but I feel that there should be no need for any binding as long as we work with HTTP to begin with rather than forcing our ways upon it.

Working with HTTP rather than forcing our ways upon it is very much the same thing as building something that is of the web rather than simply on the web.

The key reason I agree RMR is a better model is that in MVC the things we address with URIs are either views or controllers. As Andrew Davy comments:

I think the danger of MVC is that unless you explicitly use it as Alan does you default into an RPC design. (ending up with “URIs” like /customer/1/delete .. shudder!)

And this is the crucks of it for me – URIs are nouns, not verbs and they address resources and representations of resources.

By thinking about the problem in terms of RMR rather than MVC we naturally change the way we structure the code to provide different representations or how we map particular methods to code that handles them. RMR provides a way of talking about the problem that is of the web rather than of SmallTalk. RMR provides a language and a way of thinking that doesn’t obscure the mechanics of the web.

That seems like more than just a change of words to me.

Free book usage data from the University of Huddersfield » "Self-plagiarism is style"

I’m very proud to announce that Library Services at the University of Huddersfield has just done something that would have perhaps been unthinkable a few years ago: we’ve just released a major portion of our book circulation and recommendation data under an Open Data Commons/CC0 licence. In total, there’s data for over 80,000 titles derived from a pool of just under 3 million circulation transactions spanning a 13 year period.

Free book usage data from the University of Huddersfield.

This is great to see from my POV on two levels, first a great set of data that has the potential to be really useful and secondly a clear statement of the terms under which it’s released.

Awesome Dave Pattern.