The Artima Developer Community
Sponsored Link

Agile Buzz Forum
Of What Import, Are Imports?

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
Of What Import, Are Imports? Posted: Oct 20, 2004 10:00 AM
Reply to this message Reply

This post originated from an RSS feed registered with Agile Buzz by James Robertson.
Original Post: Of What Import, Are Imports?
Feed Title: Travis Griggs - Blog
Feed URL: http://www.cincomsmalltalk.com/rssBlog/travis-rss.xml
Feed Description: This TAG Line is Extra
Latest Agile Buzz Posts
Latest Agile Buzz Posts by James Robertson
Latest Posts From Travis Griggs - Blog

Advertisement
Among the near doubling of the semantic concept space (this is a highly subjective measure, done through painstaking analysis of... oh well, so it's totally unfounded opinion, sue me) in the VisualWorks flavor of Smalltalk is this thing called "imports". I'm curious what others do with them? I see a couple of different general categories or "strategies" one might fall into with the things.

  • A) I use namespaces. If classes in one namespace refer to classes in another, I import the namespace into the other namespace. IOW, generally, I choose to import the container into the, er, uh, container.
  • B) I'm a dotted name fanatic. I import NOTHING. I always use full paths.
  • C) Each time I encounter an unresolved class, I import referenced class into target scope. I might promote that to the namespace of the importing class if LOTS of classes in said namespace are all doing it. But in general, I do class-to-class imports.
  • D) What are imports? I just put everything in Smalltalk. Who needs namespaces anyway.
  • E) I love finely tuned and exactly maintained imports; I use a combination of all of the above, each case as appropriate. I feel that a well designed and maintained import graph is part of a healthy program.

What did I miss? Maybe there's some other patterns? I think I mostly do the (A) option. What do others do?

Read: Of What Import, Are Imports?

Topic: Anatomy of a web crawler Previous Topic   Next Topic Topic: Re: Snake in our Bedroom!!!

Sponsored Links



Google
  Web Artima.com   

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