The Artima Developer Community
Sponsored Link

Agile Buzz Forum
The most complex thing that could possibly work...

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
James Robertson

Posts: 29924
Nickname: jarober61
Registered: Jun, 2003

David Buck, Smalltalker at large
The most complex thing that could possibly work... Posted: Jul 29, 2003 9:34 AM
Reply to this message Reply

This post originated from an RSS feed registered with Agile Buzz by James Robertson.
Original Post: The most complex thing that could possibly work...
Feed Title: Cincom Smalltalk Blog - Smalltalk with Rants
Feed URL: http://www.cincomsmalltalk.com/rssBlog/rssBlogView.xml
Feed Description: James Robertson comments on Cincom Smalltalk, the Smalltalk development community, and IT trends and issues in general.
Latest Agile Buzz Posts
Latest Agile Buzz Posts by James Robertson
Latest Posts From Cincom Smalltalk Blog - Smalltalk with Rants

Advertisement
Reading this post made me think of complexity and development. Based on the direction taken by the Roller author, it looks to me like he started out complex and simplified over time - I'm familiar with that pattern - developers often over-engineer solutions at first:

In the beginning, I implemented Roller using EJB. Every Roller business object was an Entity Bean and every Roller business tier interface was a Session Bean. I learned a lot about EJBs and XDoclet and everything was just fine, but Roller, or Homeport as I used to call it, took 20 seconds to render a weblog page. I studied the various EJB patterns and realized that returning a collection of Entity Beans from the business tier was not a good idea. I learned about the Data Access Object and Value Object patterns. I discovered that XDoclet could generate Value Objects (which Sun now calls Data Transfer Objects) for me, and I changed the business tier interfaces to return the light-weight data objects rather than Entity Beans. Much better!

That's pretty much the opposite of what I did with this blog. I started out dead simple - no database, blog entries stored on disk as serialized objects, and rendered into html on demand when the page is requested. The whole site is dynamic. I had some concerns over whether it would scale, but I figured I'd find out as I went. So far, it's been fine - I have yet to move to a database.

Now admittedly, I'm the only one using this code on this server, and it's not a multi-user server. Still, if I had to add multi-blog capability to the server it wouldn't be that hard. The whole experience of building this sitte and BottomFeeder have taught me to implement simple solutions first, and see how they work.

Read: The most complex thing that could possibly work...

Topic: Heh - MS discovers the power of loose coupling Previous Topic   Next Topic Topic: Your Permanent Record

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use