development

Sealed, Unsealed

April 17, 2004 23:17:05.581

Ted Neward argues in favor of sealed classes:

Look at it this way: take a simple example, that of overriding a method. What can you do in the base class to ensure that a future derivative doesn't somehow break your class' contract? Should derivatives call the base class method? And *when* should they make that call? At the start of their override? The end? Somewhere in the middle? What about synchronization concerns? Type compatibility? Are you really fully prepared to ensure that the Liskov Substitution Principle is honored in all its forms? From my experience, not many developers even know what Liskov is, much less what it's supposed to be doing for you.

Here's the simple answer: Why do I care? If another developer picks up my code, and wants to extend it by subclassing, it's not my problem - it's his. I'm going to make the assumption that said developer either

  • Knows what he is doing
  • Doesn't know, and will learn from his mistake

To my mind, stating that classes should be sealed is like saying that you should protect your kids from each and every mistake they might make someday. It might make you feel better, but it does positive harm to the people involved. Let other developers make their own decisions - making them for them is no favor.

 Share Tweet This

development

Women in Software?

April 17, 2004 18:49:27.841

After writing this last week, I stumbled on misbehaving.net talking about a programmer gathering - and explaining pretty clearly why so many women stay away from the field...

 Share Tweet This

development

Culture clash?

April 17, 2004 10:21:59.272

Ted disagrees with my take on final classes:

It was in my days as a C programmer that I came to realize that the fundamental difference between Smalltalk and C was that in Smalltalk, all reusability derives from inheritance. You want to reuse some code, you inherit from it, plain and simple. Even working through the Cincom Smalltalk manuals, I see that message over and over again. This is not true outside of Smalltalk.Inheritance creates a dependency on the base class type within all derived types, and if for some reason something in the base class type needs to change, every class below it feels the change, potentially breaking what happens.

First off, I'd say that most Smalltakers are somewhat leery of deep inheritance hierarchies now. With dynamic typing, polymorphism makes it easy to create ad-hoc interface matching without having to share a base class. In fact, that makes it easy to avoid the whole "fragile base class" problem entirely (even though it's less of a problem for Smalltalk than it is for static languages). I meet plenty of people who disagree with me on this point - the guy who gave the API talk at ot2004, for instance - I spoke to him briefly on the subject. I'm just not convinced. I know too many Smalltalkers who also know .NET and Java - all of them dislike "final", and all of whom talk about the nasty work-arounds they have to create to deal with the problem (typically, lots of helper classes). I tend to think that anything requiring that level of work-around is probably a bad idea.

Sure, this is a culture clash - but I still think it's a bad idea as well :) I think we'll have to agree to disagree for now

 Share Tweet This

management

It's not just UML...

April 17, 2004 9:40:10.480

Ted Neward points to the UML Fever article - making a fine point:

Oh, how I remember former bosses and employers demanding UML models of code that was already written, "for documentation purposes", even though every developer on the project knew that the models would be (a) incorrect, (b) too high-level or too low-level to be useful, and (c) would almost immediately fall out of line with the code itself with the next feature request. (This was in the era of the very first two-way round-tripping tools, and they all--without exception--sucked.)

That pretty much sums up any technology fad - Java in the 90's being a particularly good example. For some reason, people in this industry continue to believe in silver bullets, regardless of how many werewolves pop up that are immune to them....

 Share Tweet This

news

Re: Cars targeted along stretch of interstate

April 16, 2004 16:38:21.176

We had the snipers, and now this. I guess this is better than that nutter who was shooting at cars in Ohio, but not by a lot. I drive that stretch of highway quite frequently, as it turns out...

 Share Tweet This

BottomFeeder

Internationalized BottomFeeder

April 16, 2004 12:34:10.861

I've finished the job of replacing strings with UserMessages in BottomFeeder - now I need help. I've uploaded the message catalog (English) here. I've got a volunteer working on a German translation; anyone else have the time and/or inclination to help?

 Share Tweet This

StS

Structured Drawing editors in Smalltalk

April 16, 2004 10:39:25.784

Register today so you can hear all about drawing editors in Squeak. Ned Konz has been doing research and implementation; check it out:

Building structured drawing editors using Connectors and Squeak
presentation
Ned Konz: Viewpoints Research
Wednesday 4:00:00 pm to 4:45:00 pm

Abstract: Connectors is an open-source framework for building structured drawing editors using Squeak Smalltalk. The rich component library provided with Connectors makes it easy to customize shapes and connectors, in many cases without writing any code.

This presentation will introduce Connectors and describe how Connectors can be used to quickly construct a Squeak application for editing and visualizing structured data. It will demonstrate the entire process of developing a simple Connectors application, including customizing connectors, connection policy, shapes, toolbars, flaps, and worlds.

Integration with the Genie gesture recognition system and the eToy tile scripting system will also be described.

Bio: Ned Konz has been a Squeaker since 1997, and has contributed a number of enhancements and fixes to the Squeak effort. He is also one of the six "Squeak Guides" who lead the open-source Squeak development effort. He has been working as an independent consultant since late 1999, at the end of a 7000km bicycle trip around the US west. His consulting work includes embedded system development as well as Squeak development.

About six months ago, Alan Kay invited him to join his team at Viewpoints Research, and Ned is now working with a number of projects including end-user computing, eToys, simulation, and other user interfaces.

See you in Seattle!

 Share Tweet This

smalltalk

Re: Suckage Begets Suckage

April 16, 2004 10:07:04.795

Patrick Logan considers how things could have gone

If Sun had gone with Smalltalk rather than Java, where would they be now?

If Microsoft had gone with Smalltalk instead of C#, or way back in the 1990's when they could have forged something with Digitalk instead of their long and winding DCOM fiasco

To sleep, perchance to dream.... :)

 Share Tweet This

development

DotNet - bad for your skills...

April 16, 2004 10:04:34.717

Apparently, DotNet actively rots your brain - just look at this post:

I'm sitting here at work building an application using TDD (which by itself is another post, and may be coming later), and every time I start a new class for another piece of the puzzle, I'm hating on how I have put the keyword "sealed" class in my declaration. Now, this isn't a major issue, but it can be if you plan on releasing an API for customers to build against. What's my issue? Well, I'm wondering if the "sealed" and "notinheritable" keywords should be applied by default in Whidbey.

He calls this "good design". Uh huh. Assuming that you know everything and that the end users of your code know nothing, I suppose it is. If you assume some level of intelligence in the end users of your code, it's just bad. I'm starting to think that "sealed" and "final" do more harm than static typing - they encourage closed end systems that cannot be extended without heroic efforts on the part of end developers. Run, don't walk, from any code developed by people who think this way...

 Share Tweet This

smalltalk

Discovering Smalltalk

April 16, 2004 9:06:16.710

Ted Neward takes a look at Smalltalk, and likes what he sees - with a few questions:

And suddenly I wonder, Is this the source of all that XP goodness that the Smalltalk community gushes on about? If we had the ability to "load" a JVM or CLI instance into a frozen image, and ship that, say as a 24-48 MB "image" file, think about the possibilities--less startup time (I would think, since this could be a more or less memory-mapped image), plus I could conceivably give my customer an ability to "freeze" an image if a bug hits, and email or FTP the image with the bug in it to me for diagnostics. No more having to recreate the problem! It's all right there, for me to load, inspect variables, and so on.

The worry comes here:

Then again, there's security questions--what stops an attacker from mangling an image and injecting some rotten stuff? Is the image format well-known and easily subversible? If I started using Smalltalk as a back-end HTTP-processing agent, is there weird buffer-overruns or command-injections that could corrupt the image somehow?

There's no way to do a buffer overrun - in .NET speak, Smalltalk is a managed environment - immune to that kind of thing. As to command insertion - you can't load code from a remote location unless the server is set up to do that sort of thing. I have this server set up to load code from a known (server side) directory for patching, but I have to have permissions to place code there in the first place - and the directory is not in the web directory side of things, so it's inaccessible from there.

More generally, and image is just byte code - it's somewhat like a big JAR file, but with the ability to extend and override any code you want/need to. I do live updates whenever I have new code - without taking down the server. The nifty thing is this: If I load in a new version of a class, all the existing instances get updated - i.e., if I added/removed an attribute (instance variable), then all the instances added/removed it as well. That's what makes live updates feasible. The site that hosts this server is running VisualWorks (part of Cincom Smalltalk), and the only attacks I've suffered have been the kinds that all bloggers suffer - comment and referer spam :)

Now one more thing - as to bugs? There have been a few times I've had to debug the server - in which case I've started it up with a GUI, using X over ssh. And then I've debugged the actual problem in the live server as it was handling load. If I wanted to do that with less fuss, I could set up the remote debugging tools that use Opentalk - which I intend to do, when I get a few spare minutes :).

 Share Tweet This

development

Re: Old Is New Is Old Again

April 16, 2004 8:30:10.681

Sean Malloy notices that the software world takes 1 step forward and 2 steps back on a continuous basis. He's not wrong :)

 Share Tweet This

itNews

Why Sun Settled

April 15, 2004 21:08:29.401

This is why Sun settled - they are losing money hand over fist, with few prospects of improvement....

 Share Tweet This

smalltalk

New Seaside for Squeak

April 15, 2004 21:06:05.493

Chris Double points to the announcement of a new version of Seaside for Squeak. There's also a new VW version in the public Store, but I believe that one is a trifle older...

 Share Tweet This

BottomFeeder

Updated Bf in Dev

April 15, 2004 19:05:20.912

I've posted a new BottomFeeder update to the dev stream - along with a new TwoFlower. You need both; you'll have some issues if you only grab one. What's new? Well, Holger has done some nice work with Twoflower, and I've been working to turn all the strings into UserMessages (so that the app can be localized). Bugs? I'm sure there are plenty (this is a dev update!) Please let me know

 Share Tweet This

smalltalk

Smalltalk News in Germany

April 15, 2004 9:06:37.257

There's some good media news about Smalltalk in Germany:

Smalltalk and VisualWorks covered in a German computing magazine

"c't magazin fuer computer technik" is one of the best-known and most-read magazines for computer and software freaks in Germany. The current issue #8 of April 5, 2004 shows a double coverage for Smalltalk respectively Cincom Smalltalk:

The article "Einfach abheben" ("Take off simply") written by Hajo Schulz and Joachim Tuchel (p. 234 - 239) is the first part of an introduction into object-oriented programming with Smalltalk. As an overview the authors present a comprehensible comparison between Smalltalk and other programming languages. Based on Cincom Smalltalk's VisualWorks the authors explain 'step by step" how to use VisualWorks and create small examples ('hallo World" and "turtle new") for a first start.

"Programmiererfutter" ("Fodder for programmers") by Hajo Schulz (p. 126 - 128) recommends Cincom Smalltalk's VisualWorks as one of three tools for a professional software development. VisualWorks 7.2. non-commercial is part of the CD delivered with the magazine. The article helps for the first usage of VisualWorks - how to start with the CD, where to save the software on the desktop etc. It is a very good "how to use" instruction for VisualWorks beginners - excellent to start with given you understand German.

The magazine's web site: www.ctmagazin.de - Soft-Link 0408126 and Soft-Link 0408234

Report on Cincom Smalltalk Evening at OOP 2004
OBJEKTspektrum, the most important OO magazine in Germanic Europe, published in his latest issue, # 2 March/April 2004 p. 19, a report on the Cincom Smalltalk evening which was organized by Cincom and Georg Heeg eK during OOP 2004 in January in Munich and which was a great success.

 Share Tweet This

development

Everyone re-invents Smalltalk

April 15, 2004 8:34:05.747

Ted Neward points to an article he mostly disagrees with - but stumbles into yet another re-invention of something Smalltalk got to a long time ago:

Why do we distribute applications across multiple systems today? Is it because we like managing multiple systems? No! It's for scalability. We exploit the fact that tiers of a multi-tier app have different processing loads and scalability methods. Typically, we scale the web/app tier by throwing more servers at the farm while we scale the data tier with bigger servers. However, as Moore's law increases the performance of these machines, the need to scale becomes reduced, From my experience, many smaller apps could easily run a single machine today (esp. when you consider the increased efficiency of eliminating the network and process hops). Moore's law will continue increase the headroom these machines provide and expand the definition of "smaller apps". If you can run the app on a single hardware node, there'd be little reason not to run as much of it as you can inside the database, other than "we might want to scale this out someday".

I wonder if these guys have ever heard of Gemstone/S?

 Share Tweet This

humor

UML fever

April 14, 2004 15:58:01.774

This is funny, but there's a lot of truth in it as well - UML is not a silver bullet, nor is MDA - but a lot of people think they are. This is the best bit:

42 fever. As opposed to the celebrated "42" being the answer to any question about life or the universe, as suggested in Douglas Adams's The Hitchhiker's Guide to the Galaxy, those afflicted with 42 fever argue that "UML" is actually the correct answer. The classical symptom of those afflicted with 42 fever in the sphere of software engineering is to have an a priori delusion that UML is the solution for all software-engineering problems. Research has shown that the delusion in victims of 42 fever can be significantly reduced by secretly playing subliminal messages in their work areas emphasizing that UML's creators did not intend for it to be the answer to all of software engineering's dilemmas

 Share Tweet This

StS

More embedded Smalltalk at StS

April 14, 2004 9:29:16.648

Register today for StS 2004 so you can see how Smalltalk is being used to guide an underwater bot

Smalltalk in an Autonomous Underwater Vehicle
presentation
Jon Hylands: EDS
Wednesday 2:45:00 pm to 3:30:00 pm

Abstract: Autonomous underwater vehicles (AUVs) are an emerging technology that are ideally suited for exploring underwater environments, in places where it may be too costly or dangerous for manned submersibles or remotely operated vehicles (ROVs) to operate. The software required to successfully pilot an AUV must be very robust, capable of complex behaviors, and also be easy to maintain and extend. Smalltalk fits the bill on all of these requirements. This demo will show MicroSeeker, a simple hobby-level autonomous underwater vehicle built by the presenter, with the high-level embedded "brain" of the system running in Squeak Smalltalk on a PDA.

Bio: Jon Hylands has been doing Smalltalk programming since 1987. Jon's main interests include sailing, hobby robotics, autonomous submersibles, and making Smalltalk work on embedded devices.

See you in Seattle!

 Share Tweet This

development

The .NET guys demand bad code...

April 14, 2004 9:13:42.436

Eric Gunnerson highlights a mis-feature of the MS development suite that he's apparently proud of:

So, for Whidbey, we allow the user to mark a class as static, which means that it's sealed, has no constructor, and the compiler will give you an error if you write an instance method.

Someone ask this guy to spell "Object". Go ahead, spot him the first six letters...

Update: I have to pass on this comment I received in email:

I read this as a Java guy taking a feature of the Java language (the ability to mark a class as "final") and taking it a step further. Yeah, it's like a guy standing near the edge of a cliff and taking a step toward the cliff, but it's a step nonetheless. A step they haven't thought through very much. What the hell is the purpose of a class like this? You can't write an instance method? Sounds like something the gang at Smalltalk Solutions would come up with after hours at the bar, as a joke.

 Share Tweet This

development

What's that browser up to?

April 14, 2004 8:49:41.331

Ryan Lowe makes an excellent point on browsers that most of us forget - a lot:

The bottom line for me is this: web browsers are meant to show pages of text, not host elaborate client-side applications. Sure, forms are build into browsers and they are OK but there's a fine line of interactivity there. Accessibility concerns remind us how far we are actually straying from the main browser idea. If you have to wonder if your web site is accessible, it's probably not designed right for everyone else either.

Amen to that. If you end up in a swirl of JavaScript to fix something, you probably went down the wrong path quite awhile ago...

 Share Tweet This

rss

bits is bits

April 14, 2004 8:43:10.909

Danny Ayers notices that the CNet folks have done something amazing - on a page labelled as a set of RSS links, they have a link to a so called feed in a whole new format. Not RSS 2.0 with namespaced elements. Not RSS 1.0 with namespaced elements. Not Atom with namespaced elements. It's a whole new format, labelled as if it's RSS! Yeah, that's a way to deliver content in a clear fashion.

 Share Tweet This

development

Where's that Productivity hiding?

April 14, 2004 8:32:35.098

Ben Galbraith points to an interesting Wall Street Journal story on a new software co-op, and asks the question: "How long will corporate America put up with the high prices and low quality of the software industry? A handful of major corporations have "enough is enough" and have banded together to form their own "software co-op". What impact will this have on our industry?". That leads to my own question - how long will corporations continue to listen to the utter morons who give software recommendations as if they were electing a prom queen? I mean seriously, this data isn't new. If corporations want better results, they have to widen their view and look beyond the supposed mainstream....

 Share Tweet This

StS

Clean Slate at StS 2004

April 13, 2004 16:18:09.196

Research on development technology continues in the general Smalltalk space - register for StS 2004 to learn more about Slate - a still in development research project:

Clean Slate: Smalltalk and its Progress
presentation
Brian Rice: Logos Research and Development
Wednesday 2:45:00 pm to 3:30:00 pm

Abstract: An introduction and progress report for the Slate programming language and environment is provided, with the design rationale and examples of the benefits already gained from it. Several new sub-systems and features will be introduced and demonstrated, include the subjective programming facilities, graphics / interface architecture, general libraries, and the design of the implementation. Since Slate is similar in spirit to Squeak, comparisons will also be drawn between them in particular.

Bio: Brian Rice is a long-time member and contributor to the open-source Smalltalk and Lisp communities. He has been conducting informal research into language and system design for several years, and recently started developing the Slate language to channel these activities into a venture.

See you in Seattle!

 Share Tweet This

general

Diet tip of the day: worms

April 13, 2004 16:05:12.755

Worms can keep you healthy, according to new research. That's interesting...

 Share Tweet This

humor

Passed along without comment

April 13, 2004 9:31:10.520

 Share Tweet This

itNews

MS realizes that Longhorn is too long

April 13, 2004 8:47:41.517

MS is cutting back features to speed up Longhorn's initial release. That's not a big surprise - the dates had been slipping as far as 2008, and that was going to create an opening:

Microsoft won't ship an interim version of Windows, retail or otherwise, before Longhorn according to email seen by Business Week. The memos from a week ago suggest that Microsoft is jettisoning features from Longhorn in order to meet the ship date of the first half of 2006.

I addressed this general problem here, and it seems that someone at MS at least understands that the release cycle was getting absurdly long. Now that need to hand the cluestick over to the Whidbey team :)

 Share Tweet This

general

What's worse than rain?

April 12, 2004 17:17:21.694

We are looking at 4 straight days of rain. That wouldn't be so bad, if I hadn't fertilized the lawn before I went to Europe. Why is that bad? Well, it's now become very clear that I missed quite a few spots. I have a "stripey" lawn, and it's not in a good way :)

 Share Tweet This

StS

Embedded Smalltalk at StS

April 12, 2004 14:53:11.295

Interested in Smaller Smalltalk systems? Then don't miss the talk on Resilient at StS 2004 - Register now!:

Resilient: Making Embedded Systems Serviceable
keynote
Lars Bak: OOVM A/S
Wednesday 10:30:00 am to 12:00:00 pm

Abstract: Developing software for embedded systems has until now been very static. Source code, written in C, is compiled and linked on the development platform and the resulting binary image is transferred onto the device. In an industry where robustness is paramount and dynamic software updates are required, this is simply not good enough. This presentation will describe a new approach to developing software for embedded devices. At the bottom of the software stack we have replaced the operating system with a Smalltalk based virtual machine. Scheduler, interrupt handlers, device drivers, networking code and application software are executing on top of this virtual machine. We will discuss some of the design decisions behind this dynamic, lean and mean system for embedded devices. The approach solves many software related problem within the embedded industry. The two biggest problems are full serviceability and transparent software updates. We will conclude with a demonstration of the Resilient programming environment and embedded platform.

Bio: Lars is a technology industry veteran with more than 15 years experience in virtual machine technology, product engineering and management. Prior to founding OOVM in 2002, Lars was the main architect of the Java HotSpot virtual machine at Sun Microsystems, Inc., a highly successful product with more than 50 million installations worldwide. At Sun, Lars was also the main architect of the CLDC HotSpot virtual machine, a new high-performance system for mobile phones. Lars holds a MS degree in Computer Science and is inventor on numerous patents within virtual machine technology.

See you in Seattle!

 Share Tweet This

general

Women in Technology?

April 12, 2004 10:28:06.808

Julia Lerman talks about the general lack of women in the software development business: (in the context of an MS MVP meeting)

She brings up an interesting point about the very young MVPs - teens and college students. The only college age MVP female I know is Stacey Yasenka from Ohio. I met her when I kept asking isn't there even ONE girl in the Student Ambassador program. She now proudly tells me there are three! But there were even some highschool boys

This is a general issue in software, hardly limited to the MS side of the development house. I don't think it's a sexism thing at this point in time - most guys I know would love to have more women in the mix. No, this seems to be one of those subtle sorting things, like you see at parties. Go to a party with a bunch of married couples that know each other - over time, the men and women will tend to separate into their own groups, talking about their own subjects of interest. I've seen this for too many years to think it's a coincidence :) It looks to me like software development is one of those fields that women tend to sort themselves away from. Why? Heck, darned if I know. I just know what I see.

 Share Tweet This

books

Back to Fantasy

April 11, 2004 12:07:02.000

I haven't read any fantasy novels - other than LOTR - in many, many years - I think my love of LOTR stood in the way of exploring anything else in the genre, and I had gotten into political thrillers and "Alternate Reality" books (such as most of Turtledove's stuff). I was thrown back into the genre last fall and Christmas though - my sister bought me the first four books in this series - "The Wheel of Time" by Robert Jordan. It's a ten book series, and not over yet according to my sister.

I started reading the first book in the fall - and to be honest, had a little trouble really sinking my teeth into it. It was good, and I was interested - but I wasn't yet in the "can't put it down" frame of mind. That held pretty much through the first three books - I was interested, but not really enthralled. I finished the fourth book on my way back from London, and that brought me to the end of the gift books - and also had me hooked. I got down to Barnes and Noble straight off, and bought books five through ten - so I guess you could say I'm committed now :)

I guess I'm back to fantasy novels again. I'm enjoying this series, and last night at Barnes and Noble I noticed my eye wandering over other books in the genre. Looks like my reading habits have shifted again

 Share Tweet This

StS

Smaltalk Directions at StS 2004

April 11, 2004 11:53:58.127

Help discuss where Smalltalk is going at this panel discussion at StS 2004. Register today so you can join in!

Evolving Smalltalk
panel
Panel: TBD
Wednesday 2:00:00 pm to 2:45:00 pm

Abstract: A panel on the future evolution and directions of the Smalltalk language. Participants TBD.

See you in Seattle!

 Share Tweet This

marketing

Do we want choices?

April 10, 2004 11:00:40.034

Doc Searls quotes an interesting screed on consumers and choice:

who wants OK? Not me. When there's 500 channels of people telling us how to become perfect cooks, gardeners, dressers and travellers, any compromise feels like, well, compromise. And that's the problem with choice. Whatever I choose probably won¹t live up to my expecations, leaving me to feel that somewhere out there, there was the thing I missed, the one that would make me happy right now.

A few years ago I worked with a big UK supermarket chain. We did some research into why people shopped organic. Was it for health? A commitment to the environment? To sustainability? The real reason was quite shocking: in the organic aisle, there¹s only one kind of carrot, two kinds of potatoes and one kind of lettuce. People were paying a premium to escape being confronted with twenty varieties of spud.

That's interesting - it lines up with things I hear about VisualWorks as well - there are too many ways to organize code (categories, parcels, namespaces, packages, bundles) - people don't want that - they want a recommended path. Sure, some people want more choices so that they can design their very own optimal solution - but most people don't. This is food for thought...

 Share Tweet This

development

DotNet vs. Smalltalk

April 10, 2004 10:53:09.592

Steve Wart tells us just how productive DotNet is allowing him to be - read the whole thing

 Share Tweet This
-->