KBD

Keith Devens .com

Thursday, December 4, 2008 Flag waving
LOOT THE DOG – anyone who's ever raided MC
← Will Filters Kill Spam?Looking for a job →

Daily link icon Wednesday, January 1, 2003

MVC architecture for web applications

I'm now at the point where my CMS is almost done and usable on my site. I've created a system that mostly encourages/enforces MVC. However, there are a few places that aren't quite as flexible as I'd like. I'm using my weblog system, of course, as a testbed application. If my CMS can't do my weblog system easily and make it better in the process, then it's a failure.

However, some things seem to be easier when you do everything ad hoc. Consider my main weblog page, my archive page, and my yearly summary page (hey look at that, I now have an archive for 2003... happy new year!). They all come from the same script, and it's done without much structure (logic, presentation, etc. are mixed). When you try to impose structure on it, it's not as easy. What exactly constitutes the template part of it, what logic is there, and how does that get put together and served from the same URL in my new system?

So, at this point, now that I've done my own MVC system, but I still have a few conceptual problems to work out, I'm really interested to see what other people have done. On Slashdot there's a review of Struts Kick Start, so I'm poring over some links from that. Phrame, which I looked at a while ago, is a port of Struts to PHP, and I'm going to look at that again. I'm about to print out this article from IBM developerWorks on using Tea (a Java-based templating language) as the "view" end of an MVC architecture.

What else? I guess that's it for now. I'm going to have to start looking at how other CMSs handle these things. I'll probably look at Zope a bit (which incidentally just released an early alpha of Zope3). If anyone has any pointers to share I'd be grateful.

I'm also reading Sun's Web-Tier Application Framework Design from Sun. It doesn't seem to be the model or the controller end that I'm having trouble with... those I seem to have done pretty well. It's mostly the "view" end that I have questions about.

← Will Filters Kill Spam?Looking for a job →

Comments XML gif


Feel free to post a comment below. Please see my comment policy.

Formatting Rules (No HTML):

  • **bold**, *italic*, _underlined_, --strikeout--
  • "text"="url" creates a link, and URLs are auto-highlighted
  • Blockquote: Like e-mail, begin paragraph with > (greater-than sign)
  • Lists: begin paragraph with *,-, or + (unordered), or # (ordered)
  • Code block: ?!code:language=perl|php|sql|javascript|etc.{\n}...{\n}?!/code

:
(will be your IP address if blank)
: (optional)
(Will not be shown on site)

: (optional)
:

December 2008
SunMonTueWedThuFriSat
 123456
78910111213
14151617181920
21222324252627
28293031 



RSS feed RSS feed for Keith's Weblog
Atom feed Atom feed for Keith's Weblog
Weblog archive
Recent comments
  on 4 posts

Recent comments XML

Girls, please don't get breast implants

I have 34 A breast but at 22 years​old they seem to be growing again​which ...

76.64.120.153: Dec 3, 10:00am

Perl 6 1.0 in March?

Doh, my mistake. I'm aware of the​relation between Parrot and Rakudo​but I'...

Keith: Dec 2, 1:03am

Free image hosting sites

Well, TinyPic has this in its​FAQ:

> Images and videos is in​your accoun...

Keith: Dec 1, 1:13am

Join a NameValueCollection into a querystring in C#

Well with a lamba expression, this​is what I came up​with:

?!code:csharp...

Gustaf Lindqvist: Nov 30, 4:38pm

Generated in about 0.208s.

(Used 8 db queries)

mobile phone