Tuesday, 23 June 2009
London
Friday, 5 June 2009
Seaside 2.9 on VisualWorks
Meanwhile, we're eyeing another alpha release and trying to stare down a few remaining rough edges that are preventing a reasonable attempt at a beta. If anyone feels like tackling an improved set of configuration/administration/development tools, let us know!
Friday, 8 May 2009
BC-STV
I'm voting yes to STV for one very simple reason: it removes the fear of vote splitting, allowing me to indicate my true preferences. Period.
Have you ever heard any of the following statements?
- "This is an NDP riding, there's no point even voting for someone else."
- "This could be a close battle. Voting for the Green party might help the Liberal party get in."
- "I like this party but I don't like their candidate in my riding."
Any electoral system is a complex balance between individual and group freedoms, degree of proportionality, cost, and many other factors. There is no "perfect" system. BC-STV may get tweaked over time but, in the meantime, the freedom to vote the way I want is reason enough to support it.
It's a shame that our province doesn't seem able to manage a real debate about this significant and important issue but don't be fooled by the mudslinging from either side. If you find the pro and con sites for STV in BC a little too heated, the Wikipedia articles on STV and FPTP (as well as on other voting systems) at least list both pros and cons for each. I also found the website of the Electoral Reform Society in the UK had useful and interesting reading (including pros and cons) on many different electoral systems. Although their stated preference for STV may bias their assessments of other systems, the site is much more balanced than any of the BC sites.
When to use a Seaside Component?
To some extent these decision end up being subjective design decisions but there are some pretty compelling reasons why you might need to use a Component. I took a crack at answering the question but I encourage you to post or look for alternate answers there if you think mine is wrong in some way. I think the question is an excellent one so I'd also encourage you to upvote the question and/or answer if you think it is appropriate.
While we're on the topic, asking and answering Seaside questions on StackOverflow might help gain us some exposure and legitimacy. I actively monitor the RSS feed for Seaside questions and I'm guessing a few other developers do as well.
The main content of my answer was:
First of all, you are correct that you do not need to use a Component in order to access the Session. Seaside 2.9 moves
#sessionup to a new classWAObjectwhich makes it accessible to almost all Seaside objects (including Components) but you can definitely refer toWACurrentSessionyourself for now in 2.8.Components provide roughly the following functionality in 2.8:
#renderContentOn:is called with an instance of whatever renderer class you specify in#rendererClass(instead of whatever renderer is in use when your object is asked to render itself)- A hook (
#updateUrl:) to allow updating the URL used by the renderer to generate links- Hooks (
#updateRoot:,#style,#script) to allow updating the HEAD section of the HTML document- The ability to be the root of an Application
- Hooks (
#updateStates:,#states) to make state backtracking easier- A hook (
#initialRequest:) to allow initialization based on the request that caused the Session to be created- A facility (
#children) to make sure all components below you will also have the above hooks called on them- The ability to add Decorations
- The ability to show/answer/call (uses Decorations)
- Some convenience methods (
#inform:,#isolate:, etc)If you don't need any of the above, you don't need a Component. If you need any of the above, you pretty much do need a Component unless you want to implement the equivalent functionality on your own class.
The simplest metric is probably: if you intend to keep the object around between HTTP requests it should be a Component; if you intend to throw the object away and create it on each rendering pass it probably doesn't need to be. If you imagine an application that was displaying blog pages, you'd probably have Components for a menu, a blog roll, the blog body, each comment, and so on. You might want to factor out the reading of the blog's markup and generation of its HTML so that you could support different markups or different renderers and so that the comment Components could support the same markup. This could be done with a non-Component class that implements
#renderOn:and could be created and used by other Components as needed.Seaside 2.9 currently splits up the above functionality by making
WAPresenterconcrete and introducingWAPainteras its superclass. 1-3 above are implemented onWAPainterand 4-7 onWAPresenterso you have your choice of what to subclass depending on your needs. It also removes a lot of methods from WAPresenter and WAComponent in an effort to make them easier for end users to understand.
Wednesday, 22 April 2009
Cincom starting work on 2.9
Wednesday, 15 April 2009
Seaside Tutorials from GemStone
Seaside documentation is always welcomed by the community. Thanks to James and GemStone for making it available.
Tuesday, 14 April 2009
Inspiring Service
Still, the trip stands out most in my mind not for any of the above reasons but because it was essentially unmarred by lousy service. Depressingly, this seems so novel that I feel compelled to comment on the highlights.
Our flights on EasyJet proved far less stressful than on any other discount airline I have used. Sure, you're still paying for food and drinks and it isn't exactly luxury travel but the only weight restriction on hand luggage is that you be able to comfortably lift it overhead. And while you pay extra for every checked bag, they can weigh up to 32kg. Talk about removing stress from your travel planning. The food was at least fairly reasonably priced, the advertising audio pollution seemed less constant than on RyanAir, and the airplanes didn't look like they were decorated by Fisher Price. Despite being a discount airline, EasyJet seems to take some pride in providing a positive experience for its customers. Now if only they would eliminate the disturbingly animalistic charge for the door by assigning seats on check-in...
For the third time, we again booked our rental car with holidayautos.de. They partner with rental companies in each city to provide all-inclusive rentals: collision damage waiver, no deductible, third party liability, unlimited mileage, a second driver, etc. The only additional thing you pay is fuel and the prices are reasonable; to remove the 3000€ deductible, the couple in front of us were quoted nearly as much as we paid for the entire rental.
There are no more "Would you like to add X for only $Y?" questions and this completely takes the stress out of dealing with the rental companies on arrival. On a previous trip, we were charged some additional fee by the rental company but, upon return, HolidayAutos refunded the money to my credit card within a day or two of sending the receipt. And (!) they answer the call quickly when you phone. Note that the last time I checked the prices on the US (.com) version of the site didn't seem nearly as compelling.
One final example is Restaurante Oriente in Lisbon. This place was recommended in the EasyJet inflight magazine of all places and offered an excellent vegetarian buffet. The service was exceedingly friendly and, when the already-half-empty beer bottle we were pouring foamed over the top of the glass, it was replaced with a new bottle before the spill was even mopped up. This was way beyond necessary and (particularly since we were tourists and obviously unlikely return customers) totally unexpected.
Thanks and congratulations to these companies for providing excellent service and value to their customers.