The Artima Developer Community
Sponsored Link

Agile Buzz Forum
Full Power

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
Full Power Posted: Aug 29, 2005 9:47 AM
Reply to this message Reply

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

One of the things that differentiates Smalltalk from a lot of the competing development systems is the full OO nature of it - everything is an object, and all the objects respond to messages. That extends all the way through the system, in ways that often surprise newcomers. For example - consider the creation of a new class - here's a screenshot of the browser:

That's the browser, and the text you see in the lower pane is actually a template for a message send - a keyword message that will create a new class (in the latest releases, there's a class creation dialog that simplifies this, but that's not my point here):


Smalltalk defineClass: #NameOfClass
	superclass: #{NameOfSuperclass}
	indexedType: #none
	private: false
	instanceVariableNames: 'instVarName1 instVarName2'
	classInstanceVariableNames: ''
	imports: ''
	category: 'Blog'

If you replace the templated sections with your own specifics, and then execute it, you'll get a new class. Why is that of interest?

Well, consider a runtime system that needs to interface to a database, with a need to bring in new kinds of domain objects on an ongoing basis. The runtime can create new classes on the fly, if that's how you want to deal with that. That may sound exotic, but I've got plenty of customers doing exactly that.

Read: Full Power

Topic: The Complexity Collapse? Previous Topic   Next Topic Topic: Difficult or just different?

Sponsored Links



Google
  Web Artima.com   

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