The Artima Developer Community
Sponsored Link

Agile Buzz Forum
Modularizing the ObjectLens

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
Modularizing the ObjectLens Posted: Sep 4, 2006 7:49 AM
Reply to this message Reply

This post originated from an RSS feed registered with Agile Buzz by James Robertson.
Original Post: Modularizing the ObjectLens
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

Well, I'm finally here at the conference. The room has a bit too much of an echo - it's kind of hard to pick up speakers with an accent (and, I expect that means that non-English speakers will have trouble picking up people like me. Oh well).

Anyway, the current talk is from Dr. Michael Prasse, on modularizing the ObjectLens. It could certainly stand some of that; I recall my first stint as a consultant, trying to use the Lens programmatically (instead of via the Forms Editor). Not only was it not fun, but support (this was back in the PPS days) told me that such usage wasn't supported.

You can imagine my reaction :)

Anyway - the lens is a fairly simplistic O/R layer, in that it maps a single class to a table - you can't store objects of different classes in the same table (polymorphism comes via foreign key mapping). Instance variable map straight to columns. Usage is fairly straightforward:

aLensSession add: anObject

aLensSession remove: anOBject

You can write queries using Smalltalk #select:. You get transaction support and proxies. You save the db mapping information declaratively in a spec (like a window spec). The dataSpec is too monolithic - what Michael is doing is creating a more modular set of specs, which allows for easier reuse across similar applications. Back in my SE demo days, this would have been highly useful (and, I can recall a number of Lens projects I consulted on that would have been a lot easier).

He's got modified tools that support these changes as well - pretty cool stuff.

Technorati Tags: ,

Read: Modularizing the ObjectLens

Topic: How to just get by Previous Topic   Next Topic Topic: You can't hide anymore

Sponsored Links



Google
  Web Artima.com   

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