Rick Hurst Web Developer in Bristol, UK


Category: olivewood

OK maybe this Zope object database makes sense now..

I’ve just made a breakthrough in my perception of Zope and its object database. Despite the fact I have been working with Plone for over three years i’ve always struggled to shift my way of thinking away from relational databases and SQL queries, due to my previous experience of building sites and applications mainly with asp (classic) and php, hooked up to a relational database.
So what caused my Eureka moment? A combination of:-

a. Not developing with plone for a while

Since going it alone I have been doing an eclectic mix of work for different agencies and companies, who all have their own pet technologies and ways of working (so far I have slotted straight into them all with a minimum of fuss- Jack-of-all-trades at your service! Except Perl. I had to turn that one down).

b. Doing a bit of old school Zope

From the moment I started with plone, when I haven’t been skinning/ templating, I have worked almost entirely with Archetypes. Archetypes generates forms for you and all the other “magic” – some lovely helpful magic, some dark voodoo that shouldn’t be spoken aloud in front of non-programmers (like me). This means that with Zope I never learned how to do a typical build a form that posts to script, script writes to database, script pulls out of database and renders it back in the page/form routine, which is usually the first thing I would learn with any other web technology/scripting language.

c. Starting to think in objects

Once again, this had more to do with not working with zope for a while. Before zope I only had a basic understanding of objects and only used them where I was forced to because I was working with someone elses code. I would encapsulate functionality by sticking a load of php/asp functions in an include file with a meaningful name, but I never took the step of wrapping them up in a class and treating the piece of functionality as an object. Something must have sunken in during my Zope years, because now I find it difficult to not think of something as an object.

So, i’m rambling – what exactly was my moment of clarity? It was simply adding a few extra fields (wait – properties) to portal_memberdata and personalize_form in Plone. I went off searching for the python script that would take the data out of the database and pump it into an object for me to use again in a page template – but of course, being stored in the ZODB, it already was an object. Z.O.D.B. Zope Object DataBase – geddit?

So in summary, I think anyone new to plone development could do with learning things the “old” way before they move onto developing with Archetypes – purely for the sake of demystifying the ZODB, especially if like me you come from a php/asp background and have trouble understanding why you would use an object database rather than a relational database.

Next stop Zope 3 – I’ve read several reports about the large amount of boiler plate code needed to create something fairly simple with Zope 3, and a few solutions to speed up the process, but I will definitely make sure to understand how it is done “manually” before attempting to move onto using any shortcuts this time.

on the road

mobile office

I’m not sure where I read it, but I remember someone remarking that the term “Road Warrior”, was dreamed up by marketing bods to make sales reps feel that there is something glamorous about a lifestyle involving being holed up in a travel lodge in a different place each night, working on a spreadsheet on their laptop. I don’t quite fall into that category, but I am working in a few different places (albeit mostly a skateboard/bike/car journey away from home). I’m doing all of this on a laptop (lovely black macbook) – and even when working at home, I don’t have a desktop machine anymore, preferring just to plug my macbook into a mouse/keyboard/monitor, rather than consider having a dedicated desktop machine.

I’m trying to avoid gushing about the macbook, but it has so far proved to be a massive step up from my 12″ powerbook. The powerbook was great too, but I quickly went out and replaced it when I struggled to use it on a day to day basis in a freelance situation – where I would turn up at a clients site and be expected to get straight down to working all day, without the luxury of plugging it into external peripherals (other than a mouse), and often not being able to get access to other machines for testing in IE etc. My hands would “fall off” the sides of the keyboard, the screen resolution was too low, it was slow, and it was just useless trying to use virtual PC to do testing in multiple versions of IE. So the powerbook will now hopefully see a few more years service as a more than adequate general home living room email, web, word processor, print server and music/ video jukebox machine.

The macbook, with 2gb of ram and a copy of windows XP running in a VM using parallels in coherence mode, has (touch wood) improved the situation massively. The screen resolution is adequate, speed is significantly better, the keyboard is lovely (I actually prefer it to an external keyboard – the “spaced out keys” seem to suit my clumsy typing style) and it has a solid, sleek feel to it. I know some people see them as expensive, but even with the highest spec model it is still under a grand, which makes it cost effective in my eyes, as I hope/expect to get a few years out of it. Parallels is excellent – although I struggled with it before I upgraded my RAM from 1gb to 2gb, it now runs really well and I have it open most of the time, with multiple versions of IE and other windows apps just a click away and opening almost seamlessly, but otherwise working within OSX.

I’m also chuffed to find out that the macbook has wifi reception in the apparent wifi “deadspot” in my garden, where my powerbook wouldn’t find my network. I’d been out and bought a wifi range extender to resolve this, but haven’t yet set it up, and probably won’t need to now. I’d heard before that the aluminium case on powerbooks inhibits the wifi reception, which might explain this.

i’ve also inherited a PDA phone – a T-mobile Vario II (pocket PC with 3G, wifi and slide out QWERTY keyboard). These have a reputation for being flaky, but it has been reliable for me so far, and incredibly useful – terminal services has come in handy for restarting services on one of my windows servers when I can’t access any other way, and I have pocket putty on there in case I need to ssh into a server (haven’t needed to yet other than to try it out). The pop email client works well with gmail, although i’ve disabled it for the time being due to the high volume of email I get. I installed the missing sync software on the mac and syncing works fine, and it is working as a bluetooth modem for the mac after installing a 3rd party modem script.

rick hurst and his geek phone

My main gripes with the Vario would be battery life (less than a day if you are using a lot of the features like wifi), and a bit of fiddliness – I often have to get the stylus out to find a contact and make a phone call. It’s also a bit bulky and no iPhone in the looks department. Also I haven’t fully figured out the wifi – it seems to randomly try to connect to any available network when switched on, not what I want. Other times (seemingly random) it gives me a list of options via a notification, but not necessarily the options I want). When connected seems to work fine (other than the aforementioned battery guzzling) – good with skype etc.

archived comments

Interestign writeup. I’ve just ordered the 12″ to replace my powerbook. Just had a worrying thought that I hadn’t specified the glossy screen.. but I see it’s not listed as an option so am assuming (hoping) it’s standard spec.

Looking forward to be able to test on one machine too! 😉

Nik 2007-09-03 20:06:44

He He i’m guessing yopu meant 13 3/4 ” – good choice though 🙂

Rick 2007-09-03 20:15:50

Listen to you lot, you buy a mac only to run a virtual XP install. You should have saved yourself the bother and bought an XPS M1330 😉

Steve 2007-10-19 15:25:03

FOWA Roadtrip Bristol

On Tuesday I went to the Future of Web Applications Roadtrip social at the watershed in Bristol. Carson Systems put some cash behind the bar and we stood around, talked geek and drank the free beer. There was an excellent turn out, probably the biggest turnout of any Bristol web designer/ techie related social i’ve been to. There were loads of people that I didn’t get to speak to, but I caught up with some old friends, met some new people and put a few more names to faces i’ve been talking to on the underscore mailing list for years, but never met.

There’s some photos on Flickr here including one with me in it (check shirt, yellow “well done” sticker!)

Another write up on the live blog

Olivewood Data Technologies HQ

Although I still haven’t had time to build my new company a virtual HQ, a real HQ has been found in a small village called Ubley, a short commute out of Bristol. The reason for this location is that we will be sharing office space with my business partners other company (and the company I have been building an eCommerce web app for), who have warehouses on this site. I went to have a look today and was blown away by the view across blagdon lake. I won’t be working out here all the time, but i’m looking forward to it

View from Olivewood HQ

Olivewood Data Technologies HQ

Olivewood HQ

archived comments

All the cool web developers live in Blagdon.

(Or… er… work near Blagdon.)

Fintan 2007-08-07 10:53:37

28 days later (give or take a week)

Thought i’d better check in for a quick update since it’s been a while since I posted. I’m pleased to say that I have been incredibly busy since going it alone, working on lots of different projects for different people – consultancy, php/asp/plone back end development, html/css front end work and even some design. I’m loving the variety, and now feeling quite happy about the fact that I have diverse enough skills to do all these types of work. It used to bother me that I might be a “jack of all trades, master of none”, but I think more accurately i’m a “jack of all trades, master of some”. The only downside so far is that I have been too busy – as a new business with barely any money in the bank yet, I don’t feel like I can turn anything down yet! I’m loving being my own boss, but it was handy before having a boss to take the awkward phonecalls when I down tools at 5pm!
I’ve actually got loads of random things in my mind to blog about, maybe when things calm down a bit I will get round to it…

i’m joining the circus

I once remember reading somewhere that leaving a steady job to set up your own business is the adult equivalent of running off to join the circus. But that’s what i’ve decided to do – as of June the 1st I will be my own boss, as after a lot of deliberation and heel dragging I have decided to bite the bullet and leave my contented job at Netsight to go into business with a friend of mine. I have always wanted to start my own business, but for various reasons I haven’t, and a business opportunity was put in front of me, that if I didn’t take then maybe it would never happen. At this point I wanted to link to the website of my new web application development company, but embarassingly I haven’t built it yet, so I’ll post about that when I have done it, and talk more about the new company, and the products and services we will be providing.

A few people have asked me if I will be continuing to work with Plone and the answer is basically this: The core business of my new company will be packaged web applications and these will not be built in plone, as the applications aren’t CMS-like, and plone wouldn’t be relevant. The applications will be built using some* scripting language/framework plus a RDMS. Zope 3 is a contender, but I don’t have the experience to hit the ground running with that, but i’ll certainly endeavour to get up to speed on it when time allows. However, the company will also be offering bespoke and ad-hoc development services and these will include Plone. For larger Plone projects and implementations I will refer enquiries to Netsight, as beyond the Plone skinning and customisation expertise that I have built up at Netsight over the last three years, the new company will not have the resources or expertise to support large plone projects. I will also still be contracting/freelancing for Netsight on Plone work – intially a couple of days a week, until they change the locks 😉

Anyway, new company website to follow, and more details about exactly what we will be doing.

* probably unpopular amongst plonistas – check out my previous commercial experience and fill in the blanks yourself!

archived comments

Good luck with your new venture Rick!

Andy Gale 2007-06-15 08:44:51

ah, that’ll be why they were advertising in the pest. Funnily I stumbled across your blog as the top result in googling Plone Confrence 2006. I’m looking for a good quality copy of the Eben Moglen speech.

sean 2007-07-11 22:12:25