Thursday, May 15, 2008

NetBeans and WDSC

As a follow up to the previous post: we've decided to simplify the process sticking to my old and beloved NetBeans (nothing against WDSC but I don't know it - yet). So we created a a project with a simple wrapper class that only calls the rpgle operation, then I saved it and imported it in NetBeans.

Aaaahhh, now we're going somewhere!

Tuesday, May 13, 2008

Web Services Interoperability?

After some discussions I've finally managed to persuade the iSeries administrator to expose some of his applications as services instead of giving other teams accounts to access the databases. We chose a test program, discussed a little, agreed on data and operations, and moved to our favourite IDEs (WDSC in his case, NetBeans in mine).

Time required to build a web service in WDSC starting from an RPGLE program: about 30 minutes, due to the fact that we never tried it before.

Time required to build a client in NetBeans importing the WSDL published on the integrated Websphere: about 5 minutes.

Time required to actually integrate the client and the server: we are still trying to figure that out... the client reports a connection error (but it managed to retrieve the WSDL and generate all the necessary stuff without any problem), the server reports a not better specified moduleData null error (but we managed to locally test the service all right), we report a serious headache.

As always, the devil lies in the details. But where exactly is too often unknown.

Naturally, exporting the WAR file and installing it on a Tomcat instance results in a long and incomprehensible stack trace (did you really think it could be so easy?).

So we tried another approach: we installed an Apache Tomcat instance on the WDSC and selected it as the target runtime for a new application. Magically it all worked fine (after we manually edited the WSDL which reported a wonderful localhost in the wsdlsoap:address attribute), even when we installed the same war file on another server with another Tomcat instance.

The next activity will consist in deploying the application on the Tomcat that resides in the DMZ... All we have to find out is what to open on the firewall. But, for now, let's call it a day.

Friday, May 9, 2008

Seminars update

It is confirmed that I will be leading two seminars for the Università degli Studi di Milano as an add-on for the data warehousing course. Dates and arguments follow.
  • May 26 - Designing a Data Warehouse for an intercompany information system
  • May 27 - Data Integration: a case study
For more informations you can check the official page of the course.

Thursday, May 8, 2008

Welcome Declan

The Irish Rugby Football Union has confirmed Declan Kidney as the new head coach of the national team. However, in the next weekd Kidney will concentrate on Munster, which is preparing for the Heineken cup final which will be held in Cardiff on May 24.

Declan Kidney will not take part in the preparation of the squad for the summer clashes against Barbarians, New Zealand and Australia, even if he will partecipate in matters relating to the forming of the Ireland team management.

Wednesday, May 7, 2008

Sustainable pace

I read a discussion about Sustainable Pace, one of XP's practices, in which the contributors try to relate the subject with a fixed number of hours per week. Literature (based on extensive studies) shows that there is no linear relationship between productivity and hours worked, and I quite agree with that; moreover, there's a law (you will forgive me, but I don't have the reference at hand) that states that if you have a certain amount of time to do a job this will expand to fill the whole time slot available. Sistematically working overtime does not increase productivity in the long run (not even in the medium run); one of the (many) reasons is that software production has nothing to do with traditional industrial processes. My personal opinion on that is that more hours do not guarantee an extra productivity; nonetheless under exceptional circumstances (which is to say not every week) extra hours can be invaluable.

Here in Italy the "normal" working week is based on forty hours over five days. A contributor enthusiastically sustains that one extra hour a day guarantees "more than one month of extra development time during a year!"... or does it? I strongly disagree.

It's not unwillingness to work, or (better) unwillingness to get the job done; it's about commitments and balance between work and private life. In an agile enviromnemt you only plan for the next (very) few weeks, so the estimates are much more accurate and, as the project goes on, you have a pretty good knowledge of your productivity: that allows you to commit to a fair amount of work without steadily subtracting time to your private life. An extra hour in the office is an hour in which I can't play with my children, talk to my wife, read a good book, oble a new biscum or burble the tramling (Cockburn readers might get the reference) or whatever. That can lead to a burnout, thus resulting in a great loss of productivity. I already spend more time with my colleagues than with my family, and I think there's really no need to make things worse.

Besides... how many people on their death bed say "I regret I have not spent enough time working extra hours..."?

Wednesday, April 30, 2008

RTFM

Honestly... how many out there do it? But most of the time it is really the simplest, most straightforward and successful path to achieve what you're after, whether you're working with APIs, VCRs, exotic palmtops or microwave ovens.

The "I'll try this and that and then tweak it a little" attitude often does not pay.

Tuesday, April 29, 2008

Top Ten Actions for IT PMs

I happened to see a very interesting question on LinkedIn: "What top ten actions can IT project managers take to increase the likelihood of implementation success?"

I think that each of these actions could easily fill more than a book, but I'll try to share some of my thoughts, in no particular order.
  • Choose the right people. As I already quoted elsewhere, blockheads will never produce good code. I know it might sound nasty, but that's how it works.
  • Build a team with the people you chose. That means you must end up with something which is better than the sum of the parts.
  • Respect your team, don't enslave them. Trust them to be able to deliver if they commit to. Happy and motivated people always perform better.
  • Go agile. Waterfall is one of the worst causes of software project failures.
  • Protect your team from external influences. Once the goal for the iteration is fixed, stick to it (hey, have not you gone agile yet? didn't you read the previous item?).
  • Deal collaboratively with the customer, do not drive the hard bargain when you negotiate but look for a win-win situation. Involve him, involve him deeply, involve him early.
  • Often show your team's progress to the customer, and involve him in acceptance testing.
  • Avoid WBSs, plan by features. Let the team manage the WBS internally and only discuss the features with the customer.
  • Always communicate clearly the status of the project. Bad and early informations can become opportunities, bad and late informations only reveal a death march. And it will be too late to avoid it.
  • Plans are nothing, but planning is essential. Adapting to new informations is much better than sticking to a plan which, in the end, will satisfy nobody.
I'm sure there are lots of other tips, but these will do for now.