the Design Experience Weblog Archive

Head First Design Patterns [www.amazon.com]

A great, readable way to learn the priciples of design patterns for software. The multiple ways of explanation and repitition really help you understand what the patterns mean.

They do a good job of stressing extracting patterns from code as it eveolves, rather than designing patterns in before they are needed.

I am a little lost because I don't really write object oriented code, and never have used Java. One trick I am trying is rewriting the examples in Squeak (Smalltalk). An interesting consequence of this is the greater simplicity of the examples in Smalltalk, since you can leave out all the type definitions, as well as the simpler ways to define classes etc.

The next step I am taking is to conver the examples to the XOTcl object oriented extension to Tcl. Most of my code is in Tcl embedded in AOLserver for OpenACS, and there is growing interest in using XOTcl to improve code organization in OpenACS.

10:09 AM, 19 Apr 2006 by dave bauer Permalink | Comments (0)
categories: OpenACS , Learning , Programming

MVC, beyond the scaffold [blog.amber.org]

I found an amazingly, simple, and greate explanation of the limits of automatic, scaffolding code based on models. MVC in Ruby on Rails explains that the scaffolding creates the most basic CRUD controller based on a single model. This is usually not quite what you need, and you end up gluing together several models into one controller that gives your users exactly the interface they need.

I am certainly not singling out any one toolkit, I think that most descriptions of MVC describe the single model per controller example, and it really doesn't show you how to really use MVC.

David Heinemeier Hansson has said before that scaffolding is fun, but you will need to customize whatever automatically generated code comes out of it.

08:35 PM, 17 Apr 2006 by dave bauer Permalink | Comments (0)
categories: OpenACS , Learning , Programming , Computer Science

XML

Notifications

You may
request notification for the Design Experience Weblog.

Syndication Feed

XML