BottomFeeder reviewed by PC World
Check out the BottomFeeder Review in PC World Magazine.
You've likely heard us Smalltalkers saying how extensible Smalltalk is. Well, have a look at Travis' latest post and see what we mean by that.
Advantage, or "blowing in the wind?" - Alan Trammel, manager of the Tigers, claims that the Twins are changing the flow direction of the A/C blowers based on who's at bat:
"We almost made a comeback then and had the issue of whether or not those blowers were on," Trammell said. "It seemed like those air conditioners were blowing straight in our face in the top of the ninth. There was definitely a difference in the air conditioner in the ninth inning. There was no question that there was some air blowing in the ninth inning."
The Tigers said a flag in the left-field upper deck was flapping as though it were windy Sunday, and they saw a piece of tape stuck to a vent behind home plate that was fluttering while the Twins were hitting, implying that the Twins -- who scored all their runs on three homers -- were being aided on offense and defense.
The Twins, of course, deny it:
"It borders on the ridiculous and the absurd," Twins vice president of operations Matt Hoy said. "It's a romantic concept that we can materially affect the flight of the ball, but it's just not possible."
Ah, baseball controversies :)
One of the really nice things about Smalltalk is the ability to replace any method in any class - there's no concept of "final" or sealed". Typically, it's better to subclass an existing class and add the new behavior there (or use delegation). However, that's not always practical. For instance, in BottomFeeder, I need to do HTTP queries (to get the XML files that make up feeds). VisualWorks has HTTP client libraries, and the libraries have an easy to use API. I soon realized that I was going to have to create a wrapper library, because it wasn't going to be sufficient to do:
response := HttpClient new get: 'http://www.somesite.com/feed.xml'.
There were a lot of things I needed to deal with:
and tons of other small details. The HTTP client library in VW handles some of this, and wrapping it to provide the rest at an application level was easy enough. There came a point where I ran into a small problem though - I also use my wrapper library to handle POSTS from the blog tool that comes with BottomFeeder. Under some circumstances, an exception would be raised, and I'd have no access to the original HTTP response that was received - it had gotten nulled out by the library by the time my code got control again. Now, it's arguable that it shouldn't work that way, but hey - no library is perfect. Most developers aren't the Product Manager for the tool they end up using, so - unlike me - they can't go straight to engineering and ask questions. They have to go through support and maybe get a fix, someday. The nice thing about Smalltalk is that you can track down the issue yourself and deal with it in the meantime. I've removed numerous temporary hacks of this sort as the engineering team has dealt with them. Here's what I did in this case:
In the class HttpClient, there's a method #getResponse:. That's where the response is received from the server, before some post processing (and some of the exceptions raised here can result in the original response not being returned). Easy enough; I overrode the method, storing my version of it in an extension package that is part of my HTTP wrapper library. The part I overrode looks like this:
^[stream := self getResponseStream. resp := request headerOnly ifTrue: [HttpResponse readHeaderFrom: stream ] ifFalse: [HttpResponse readFrom: stream.]. resp log. self originalResponse: resp. (resp connection notNil and: [resp isConnectionClose ]) ifTrue: [ self close]. HttpException handleResponse: resp ]
The only addition is the #originalResponse: call. I also added an instance variable to the class so that I could store that information somewhere. My wrapper library looks there in cases where it receives a nil response, so that it can better report the actual problem that was encountered. Was this critical? Maybe not - I suppose I could have gone with just reporting a generic failure and been done with it. The point is, I didn't have to - I had the option of fixing what I perceived to be a bug. Why else is that useful? Well, it's not always the case that things you report to support get dealt with the way you would like. Some are put on the back burner, some are rejected as "not bugs". The point is, being able to muck with all the code gives you the ability to route around that issue. Support doesn't believe you? Fine, you can fix it yourself. Support says it's a low priority? See the above. Support agrees that it's important, and says that it will be fixed in the next release? See the above.
With Smalltalk, your level of control over the situation is just higher. Now, do you want to start overriding the class libraries willy nilly? Of course not. This counts as a "power tool" - it's a really good and useful thing to have, but you want to be careful when you pull it off the shelf. The nice thing is, with Smalltalk, it's on the shelf, ready to be picked up at need
I just noticed that this blog is the Feedster feed of the day. That's neat. I've been a happy user of Feedster for quite some time now - BottomFeeder was one of the first aggregators to support it. Half the reason I did that was for myself, actually - I have a number of feedster search feeds that I track in Bf.
In the comments to this post I got some good feedback:
My opinion, for whatever it's worth, is that the Smalltalk libraries have gotten pretty chaotic, not the base libraries, but all the add-ons. It's hard to know and to find what's available. This is partially a matter of organization, but even more a matter of missing documentation and the lack of appropriate documentation tools, especially indexing and searching tools.
Further along these lines, there are real gems that need to see the light of day. For example, a number of packages included in BottomFeeder would be of great help to customers if they were better formalized and documented.
That leads to a question - what packages that in the goodies are people finding useful? What packages in BottomFeeder would be worth generalizing?
Staffan Malmgren explains how the Stockholm Marathon was, kilometer by kilometer. Makes me wish I'd written down my thoughts on the two marathons I ran back in my twenties; my best time back then was 2:50.
This week, I'll be heading to Cincinnati for planning meetings - I'm meeting with the engineering team leads, the engineering manager, as well as parts of sales and marketing. Our goal is to take stock of where we are, and to look ahead to where we should be going.
This is actually more difficult now than it has been. Why? Well, to be honest, guiding the direction of the product was very, very easy from 2000 until the VW 7 release. With the chaos that had ensued in the endgame of ParcPlace/ObjectShare's life, the product had stagnated. As a sales engineer, I was always being told what the product lacked, and what we needed to to with it. That actually made life pretty simple for me when I became Product Manager - there was so much to do, and I already had a very clear notion of what things were lacking.
Now, we aren't done with all of that - Pollock and GLORP, for instance are still under development, and there are numerous tools/presentation issues to deal with. Still, most of the things in that area are moving in the right direction already for VisualWorks, and with ObjectStudio, we have decided on a tighter integration with .NET and the CLR as the way to go. These things are all in motion, and will be bearing fruit over the next few months and years.
That leaves business direction and general strategy. The technical issues are no longer the main things we have to worry about; we've caught up after the PPS stagnation, and, to my mind, gotten into a very good place vis-a-vis Java and .NET from a technical perspective. Unfortunately, the technical perspective is really not the biggest thing facing us. We are experiencing steady growth, and Smalltalk is a profitable business for Cincom - but we would very much like to make it more than that. That's what the meetings we are having are going to be about. I don't expect any grandiose changes or directions in the short term, but we are going to start talking about what should happen next.
As always, I'm open to suggestions.
I've noticed that the Tablet PC is getting a lot of hype in some parts of the blogosphere. I was talking about this with a friend the other day, and he brought up something that I hadn't thought of - damage to the screen. What do I mean by that? Well, next time you are at Target (or any of the stores that have electronic credit card signing now), have a look at the screen you sign on. Notice how scratched up it is? Of course, no one is really caring for those screens, or trying to prevent scratching. Still - under constant stylus use, they take a lot of damage. Makes me wonder just what a Tablet PC screen looks like after a few months of active use. Anyone have any real experience with this? Admittedly, my thoughts here are only an educated guess based on similar technology in use....
I don't normally talk about news or current events here, but I can't really let the passing of President Reagan go by unremarked. He was elected as I entered college, so my passage into adulthood coincided with his time in office, and with my first opportunity to vote in presidential elections. I admired him then, and I admire him now. I hope that he finds the sort of peace that the last ten years of Alzeimers took from him.
I guess I need to buy the soundtrack to "The Return of the King" - I kind myself scanning the beginning of the credits to hear the theme song, sung by Annie Lennox. There's something haunting about that song. It's used to very good effect in the film as well - if you pay close attention to the scene - just before the Rohirrim arrive - where Gandalf is telling Pippin not to fear death - you'll notice that Jackson used that song. This is one of the touches that I really, really like about these movies. The other one that still sticks in my mind is from the first movie. As the Fellowship walks through Moria, there's a point where Gandalf says that he'll risk some light - and he then introduces them to the heart of the Dwarrowdelf. The music that was playing then was perfect - somehow, it captured the sense of glory and loss perfectly. That's exactly the way the ROTK theme song is for me - it seems to capture the triumph and the loss of the victory in the War of the Ring perfectly. If there's another movie out there that has done the music this well, I can't think of it.
When I read movie reviews, I often wonder about some of the things that I read. Take this paragraph in a story about how scary the new "Harry Potter" flick is:
A description of some "scary moments" deepens her conviction. The transformation of a beloved character into a werewolf? "That's just one of the really hot buttons," she says: Physical transformations and monsters are especially frightening to children under 7 or 8, who can't distinguish between imaginary creatures and real ones. The fact that it's a sympathetic character who's suddenly howling and baring his teeth only makes it more disturbing.
Now, this comes from a mother (who admits that she hasn't seen the film) of some kids that age - but still, it made me wonder if she had ever met any kids that age. My daughter was in that range when the first Potter flick came out, and was that age when "Fellowship of the Ring" came out. She had no trouble - either with the books or with the film - separating reality from fiction. Neither did any of her friends, many of whom are absolute Harry Potter fanatics.
I'm sure that there are kids who shouldn't see these films - but the point is, you have to make a judgement call based on knowing your kids. Making a blanket statement that kids that age "can't distinguish between imaginary creatures and real ones" is just silly. It reminds me of the many newspaper articles I stumble across from child psychologists... nearly every time I read one, I wonder if the so called "experts" being quoted have ever met any actual children.
This is one of the times that I'm glad I didn't volunteer to chaperone my daughter's girl scout trip - to Hershey Park, PA. The forecast for the day there was a high of 62, and buckets of rain. I've been to Disney multiple times in dodgy weather, and it's never a great experience - cold and wet is just not a great way to spend an afternoon, IMHO. Of course, my daughter didn't mind - at 10, she was just looking forward to spending the day and evening at Hershey with her friends. Ah, youth :)
Not having a Mac, it's been problematic for me to set up a decent installation for the OS 8/9 platform. OS X is easier; once it was explained to me, I was able to set up the proper directory structure without access to a Mac. VisualWorks (the tool I use to build BottomFeeder) is able to produce a single executable file for OS 8/9 - I'd need a Mac to do that though. So, these directions should work; I found them from an intrepid Mac user on the net:
Installing BottomFeeder on Mac OS 8/9
Do the following to download and install BottomFeeder on a Mac OS X system:
- Download BottomFeeder from the BottomFeeder Home Page, choosing the Mac OS OS 8/9 version.
- Uncompress the folder onto your desktop. The zipped package does not include a straightforward installer; it has, instead, the following files:
- bottomFeeder - the executable file
- bottomFeeder.im - an image file.
- two Lib files: NetManage WinSock Lib and StdCLib
- plus some folders that will be used once the app installs.
- Drop the icons for NetManage, StdLibC and bottomfeeder on Stuffit! Expander. You will end up with the NetManage and StdLibC icons looking like puzzle pieces and bottomfeeder will expand to an icon called "visual". Visual will have its creator already set to HPS7. To get the bottomfeeder.im icon to highlight the "visual" icon upon drag, run ResEdit 2.1.3 and change the creator for bottomfeeder.im to HPS7.
After that, BottomFeeder should run. Just drop bottomfeeder.im on bottomfeeder.
I'm not the only one who wondered about the "24" finale. Follow the link (there are spoilers) if you want to see a good list of the dumb, dumb things wrong with the ending. The only thing that went the way it should have was the final decision of President Palmer....
Damn my penchant for bad movies! There's going to be an X-Files 2 movie. The only suspense left: Can it make less sense than the series finale and first movie did?
David Anderson http://www.agilemanagement.net/Articles/Weblog/WorldClassVelocity.html points out that no one believes the productivity claims of XP/TDD advocates:
So is it any wonder, when I tell people (indeed, show them with metrics) that agile development team A is 5 times more productive than team B who in turn are twice as fast as team C at another location, that people don't believe me? After all, these programmers are only human - right? How can it be possible to go 10 times faster? Just what kind of drugs do you take to make that possible? Is it time we banned these prescriptions with names like FDD or TDD or XP in order to level the playing field for everyone else? Perhaps some police raids to dig out the story cards and some spy equipment to detect morning stand up meetings? It is disgusting that some developers can go so quickly. It has to be stopped!
No one believes the relevant numbers about Smalltalk vs curly brace languages either. I guess believing the claims would cause heads to explode and world views to be rearranged. Simpler to just be Vizzini, and shout "inconceivable!"
This should have made the cut for the 3.5 release, but I forgot that I'd done the work for it. The Blog Tool now has spell check support - but you may not always want it on. So I just grabbed the forgotten code that adds a setting to toggle it on/off. It's in the latest update for 3.5 (both dev and normal).
At least in VisualWorks (part of Cincom Smalltalk), it's pretty straightforward. There are two simple paths for updating:
What does the server do? It executes code like this:
'someCodeFile.st' asFilename fileIn.
That's it. The nifty thing is what happens - not only is the new code compiled and loaded, but any shape changes required of existing objects (i.e., changes in the instance variables) just happen. I don't need to jump through a bunch of hoops; it all just works.
I take a slightly different tack with BottomFeeder. With that application, updates are delivered via HTTP download, as parcels. These parcels are either loaded at startup or at the time of download - and they replace the older version of the parcel that is in memory. Again, I don't need to worry about the details of shape changes - it all just works. Here's the code snippet that will load a parcel, and handle the warning exception that may notify me (if I'm loading over existing code:
[Parcel quietlyLoadParcelFrom: file] on: DuplicateBindingsError do: [:ex | ex resume].
And again, that's it. The parcel loads up, fixes itself into the system, and everything is updated. No need for custom class loaders. No need to write complex rules for exporting object state and then restoring it. It just works
Oops - looks like Schwartz may have spoken too soon about open sourcing Solaris. He was reported as saying:
While speaking at the SunNetwork conference in Shanghai, China, Schwartz commented: "I don't want to say when that will happen... But make no mistake - we will open source Solaris."
Only to have McNealy say this yesterday:
At a news conference during the public sector technology showcase FOSE 2004, McNealy said he couldn't understand how open sourcing Java would solve anything.
I've certainly inserted my foot firmly in my mouth before, but you would have thought that Schwartz would have cleared something that big before getting slapped down....
Every so often, I run across a customer using an older version of Cincom Smalltalk - typically VW users with VW 2.5.x. A question that seems to come up all the time is "why should I upgrade?" Now, I understand that it's a fairly big move (2.5 was released in 1995, so an upgrade involves moving across 9 years of active development). At the same time though, it's an odd sort of question - how many people are sticking with the 1.02 version of Java, for instance? Seems to me that it's the same sort of thing.
Scoble links to some advice for web developers and XP SP2. Looks like some of the security mods are going to require some tightening...
The Sydney, Australia Smalltalk STUG has some upcoming events to announce:
A general welcome to the next Sydney Smalltalk User Group Meeting on Tuesday June 8th starting at 6:30PM
This month we are featuring Bruce Badger of OpenSkills talking about the OpenSkills SkillsBase which is implemented using the Swazoo HTTP server running in GemStone, all hiding behind a Squid reverse proxy.
Venue:
James Squire Brewhouse
22 The Promenade, King Street Wharf
King St Wharf, Sydney
Tel : 02 8270 7999Head down to the bottom of King st. Turn right and it is a few hundred metres past some other restuarants almost opposite the Foxtel sign across the water
We'll be in the Ward room which is at the back of the James Squire. Go past the left hand side of bar and turn right.
And early notice of the following meeting on July 20th featuring James Robertson from Cincom.
Sign up to the Sydney Smalltalk Users Group mailing list here:
http://lists.openskills.net/cgi-bin/mailman/listinfo/sydney-stug
Alan Knight has posted up some comparisons between GLORP and Toplink - HTML here and Word format here
I've just released BottomFeeder 3.5. To see what's new, look here. I'd like to thank Rich Demers for his excellent documentation. I'd also like to thank Holger Kleinsorgen for his great work on Twoflower (the HTML component I use). Michael Lucas-Smith contributed the Spell check interface to ASpell - check the docs to see how to make sure it's installed correctly. There were many other people who contributed as well, please look under Help-About!
Updating to the new release: if you already have BottomFeeder installed, simply do this:
Download the appropriate baseApp zip file from the download page. Unzip it, and replace the executable (Windows) or Image (.im file, non-Windows) in the BottomFeeder directory. Delete all the files in 'app' and in 'plugins', and restart BottomFeeder - you should be upgraded. If you don't have Bf installed, use the Installer (Windows), or unzip the zip file (other platforms). Enjoy!
In the Church of Complexity, static typing makes everything harder. Go see what happens to a simple extract method refactoring over in the MS tools - and then look at what the Smalltalk Refactoring Browser does in a similar situation. Then, have a look here to see what kinds of things fall out of having static typing and interfaces. Wow. That sort of thing would have made for lots of very complex code in parts of BottomFeeder....
BottomFeeder 3.5 is about to ship - I've got the most recent build available on the download page now (under dev links). The doc is being wrapped up, but other than that, I think it's about ready to go. What's new?
Coming shortly!
Linux Today reports that RedHat screwed the pooch with Fedora:
As I sit before my new installation of Fedora Core 2 (FC2) I'm reminded of the first time I had to put down a beloved dog. FC2 suffers from some fatal flaws. For most people, it will be best to put this malformed whelp out of its misery and wait for the Fedora Project's next litter of pups, which promises some awesome powers.
Ouch
This is an old post, but the last paragraph just grabbed me:
I actually really like C#. It really rocks! In about 30 minutes I had full-on SOAP RPC working (remoting), and in about as much time I added CODEDOM - so I could compile "plug-in" code on the fly. Now that really rulez! For an added touch, I RPC'd the source to a C# add-in to the server, and compiled that in on-the-fly. Hahahaha, I feel like GOD. Too bad you can't run this code w/o the CLR installed... what a bummer. I wish you could statically link that somehow... if anyone knows how PLEASE msg me. I can tell you this, C# steamrolls Python like it was MULM in my fishtank's EHEIM (sorry Dave).
or to summarize: "Gee, these features (which are provided by the runtime env) are nifty. It's too bad it requires a runtime". I suppose his head would just explode if someone showed him live updating of a Smalltalk server...
Peter William Lount has been writing some interesting stuff on Smalltalk and dynamic typing (as opposed to the kind of static typing you see in languages like Java). It seems that this is best viewed in Mozilla (or at least, not in IE - the style sheet baffles IE). You could also subscribe to his feed and read the content that way.
Oops:
How's this for irony? The Taiwanese authorities boasted on Saturday that they'd caught a notorious hacker, author of the Peep Trojan program and the Randex series of email worms. In Germany, around the same time, they were celebrating the capture of the author of Sasser and the author of Netsky. So it was painfully ironic that it was the Sasser virus which disabled the Computex show network here in Taipei.
The worst thing is, the appropriate MS patch dates from 2003...
David Buck points out some of the things you can do in Smalltalk that are either impossible or very difficult to do in Java.
PR News links to this interesting insight from a VC blog:
I've put all this time and energy into my blog page with House Ads, Adsense, Blogrolls, etc and it's a total waste of time and energy. Because by the end of this year, the number of people who actually visit my blog will be less than 10% of my total audience.
So, this means that the smart money is going to go into the feed space. Because that's where the action is. Forget AdSense. I need contextual ads built right into my feed. Forget Typepad links, I need the links built right into my feed. Same with comments
Making contextual ads for feeds is going to be a fair bit harder than it is for websites - after the content is grabbed, you don't necessarily see the reader anymore.
I'll be in Australia from July 14 - July 23 - I have a few things lined up via the Cincom Australia office, with customer visits and additional things still being fleshed out. Here's what I know will be happening so far:
I'll be visiting a number of our customers (including the SWS guys) as well - if you are interested in Smalltalk and have a venue you think I ought to know about while I'm down under, please email me
Alan Knight is using Google's indexing to create a searchable archive of the public Store. Pretty nifty.
Charles Miller explains why all the JRoller blogs suddenly had all their items look new again. Changing GUIDS on old posts is pretty dodgy....
Ed Foster reports that my blacklisting issues with SpamCop are not unique. Unfortunately, neither is their response:
Since several ISPs were blocking his e-mail to their customers as a result of the SpamCop listing, the reader messaged Comcast in the hopes they would take appropriate action to remove the sources of spam from their server. Instead the helpful folks at Comcast replied:
"Thank you for contacting us regarding your Comcast High Speed Internet service. We're sorry but as the SpamCop server/service is the one that is blocking, you will need to contact SpamCop with your request."
Now, never mind that Comcast ought to be rooting out spammers in its own network (and there are reports that they might be starting to do so - just try following the advice to contact SpamCop. It's a completely opaque outfit that does not take feedback. Anti-social doesn't begin to describe them...