Category Archives: Computers

PCs’n’shit

MonoRail peeves III—Actions

Part III in a series of… some.

Part I covers static type checking in views and Why This Would Be Good.
Part II is about making the view architecture more naturally composable.
Part III, this article, is more narrowly concerned with return types from actions.

RenderView, Redirect and Friends

In MonoRail, ‘actions’ are the units of code which respond to an incoming page request, perform some work, then cause a view to be rendered or send a ‘redirect’—or potentially an error code—back to the client.

Actions are represented by methods on controller classes and are defined as returning ‘void’. Actions invoke a view or a redirect by calling other methods on the controller, RenderView, RedirectToAction, RedirectToUrl… and others. By default (if none of these is called) the framework will act as if the view has called RenderView(name-of-action). The parameters to the view must be placed in a global variable called PropertyBag.

This all to me seems quite unnatural.
Continue reading

MonoRail peeves

In work, we’ve been using MonoRail for a while. It’s a C#/.NET web application framework, and it’s very much nicer than ASP.NET, which is what I was using before.

Now I’ve had a bit of experience with it, though, there are things I would definitely change: I want the framework to allow me to compose page elements more easily, and to have stronger type-checking.

The easy one first. I’m going to talk about…

Type checking Continue reading

Virtual Machines for Increased Cupboard Space

Or: What I Did on My Holidays.

My previous home networking setup consisted of a routing firewall, a main file server, and a DMZ’d web server machine (which I’d recently replaced)—and a desktop machine.

I’ve spent the last week, for no very good reason, ripping out most of these physical servers and replacing them with virtual servers running under the Xen virtual machine monitor on my main server.

Much of this time was spent pulling my hair out and struggling over various configuration issues, so I’ve made some notes here about the process I went through, and how to avoid making the same mistakes again.

Continue reading

CMS Survey

I did a quick review of a couple of CMSs for a project at work. I limited myself to looking at a shortlist of 3 Free Software, LAMP systems, the aim being to select a system for a medium-sized website, with mostly static content, which can be updated easily by the customer. Continue reading