Friday, March 21, 2008

Disappointing Business Natural Languages Talk

Jay Fields presented "Business Natural Languages" in QCon London 2008. I have tried to do natural language processing using Rules Engine and failed badly. I am not sure whether the Rules Engine implementation I selected was not a good one or just Rules Engine in general are not a good choice for natural language processing. Anyway coming back to the presentation. I was so excited about this presentation and attended it. I have to say I was little disappointed. First of all , I think I have seen this presentation like a year ago ( I might be wrong ) . I am surprised that nothing has changed for a year in this field. Jay used frequent flier example for showing how we can do BNL. I am not convinced with that example. Remember Petstore made Entity Beans look like solution that we were praying and waiting for. The frequent flier example was so simple. I am not against anything being simple but businesses are not simple. In his example , the rules he had were somewhat like,

  • If flying in Class B,C than allocate 2 Points
  • If flying in Class D than allocate 1 Point
The example simplified the business problem so much that it is not useful. I would like to see rules that are contradicting each other. So much research has been done in Rules Engine to handle Contention , Contradictions etc. I do not think we can ignore these things, as Businesses are not that simple.

It was nice presentation to show what is possible with BNL, but that is where it stops. I would like to see some more realistic rules.

Thursday, March 20, 2008

Static Vs Dynamic Language

I find traversing applications written in static languages (Java) easier than traversing applications written in dynamic languages (Ruby) . When I spoke with some of my co workers, they felt otherwise.

I wanted to know what everyone feels. It will be great if you could post your experience as comments to this post.

Running Software

It does not matter what technologies or methodology you used to build your software and how much test coverage you have if you do not have a running software.

Race to running software.

Wednesday, March 19, 2008

Save REST

I request everyone let WS-* be WS- DEATH * and we will just leave it that way. REST is a change that we were looking for so long to make a decent working SOA. Lets not try to make REST as part of WS-* so that we can easily convince our organization to use REST for their services.

Save REST

Monday, January 16, 2006

Look Ma! I work 80 hrs/week

Having worked in IT for some years, I still do not understand why some developers work more than 40 hrs/week.

Is it because, those developers

  • love developing that 40 hrs/ week is not enough
  • like to brag that they work more than others
  • want to impress the management team
  • are incompetent that they need more than 40 hrs/week to finish their job

I have no idea.

Anyways ,if you think that working more than 40hrs/week is a good thing, does it mean developers working only 40hrs/week are bad?

Wednesday, January 11, 2006

Common Language

When writing stories, more time is spend in avoiding words that are ambiguous (ex: “ball”). I feel it is fine as far as everyone in the team interprets “ball” as “football’ instead of some interpreting it as “basketball” and some as “baseball”.
So instead of spending more time in refining stories, teams should spend time in setting up a common language within a team.

Thursday, November 17, 2005

Functional Test Driven Development

Requirements are always handed out in English. But I think English is a tricky language. For example we I say "The kid ran when the dog barked" it could mean that the Kid started running because the dog barked or the dog started barking when the kid ran. When a simple statement can lead to many different interpretations think about the requirements in complex systems. Usually in such systems, when the developer codes based on his wrong interpretation of the requirement /story, it comes up as bugs during BA/QA signoff. Developers now spend the same or even greater amount of time fixing the bug. In this scenario we can’t blame anyone. As a solution to this it would be great if the developers could have their interpretations checked now and then. And the solution we came up with, in our project, was to develop automated functional tests before development.

Automated functional tests were a boon to the developers in the following aspects:
1.They act like a measurable form of requirements.
The developers were able to visually see how far they are from getting the story done. Also when a different pair started working on the story it made it easy for the new pair to continue from what was left. And also Functional tests helped the developers to know when they are done with the story.
2. They correct the wrong interpretation sooner than later.
When the developer tries to run the automated test after he completes a task the test would fail if his interpretation of the requirements were different from that of the analyst.
3. They don’t lead to multiple interpretations.
These test are straightforward. Either the test passes or fails and the developer cannot move on to the next step until the code meets the expectation.
4. It reduces the amount of bugs that can be found. And in turn reduces the bug turnaround time.
5. Functional tests are too detail.
Even the simple things like formatting cannot be ignored.

It’s really nice to have functional tests ready while developing isn’t it? Yes, But it is not a very easy task. As there are advantages, there are many disadvantages too to have the functional tests written before development on the story starts.

1.There may be a lot of unknowns as the design is not yet complete on the story.
2.When the design changes during development the functional tests have to be modified. This happens most of the times and the analysts will be repeatedly changing the test script based on development changes.
3.The main disadvantage I see is that, as the tests are written based on a virtual flow, there may be lot of missing scenarios.

In my opinion it is great to have the functional tests written before development. But also they need to be revisited when the story is development complete. This will give the analyst come up with more scenarios that cannot be visualized until testing the story. Developers need to have the functional tests in mind before they make UI or other changes and work with the analyst in making the tests pass. If functional tests are ignored while making changes/decisions, it’s merely possible to have functional tests before development.

Sunday, November 13, 2005

Decisions

Imagine that you are a CEO of a company and you have to make a decision on selecting one of the following teams. Which team will select and why?(Please leave ur answer as a comment)


Team 1: Has a good manager and has below average developers.


Team 2: Has good developers and a below average manager.


Friday, November 11, 2005

Tasking Sessions

Estimating a story card accurately is always a difficult task. We can be close to reality but never accurate. We should look at our estimates as a variable.

In our project, we developers discuss with analysts about a storycard, and come up with some high level tasks to complete that story card. Looking at those tasks we estimate ideal days (or some other unit system) to complete the story card. To be honest, sometimes we have been awfully off our estimation. Some members in our team question why to waste our time doing tasking when we anyhow go wrong with our estimates whether we task out our stories or not. I totally accept to this argument, by tasking our story we will never get our estimates right. It could be closer to reality but not right("estimates right" sounds like an oxymoron). But (pardon my English) task of "tasking" is not just meant for estimating our story cards but it has many other benefits too. It helps,

1) To get better understanding about our story card
Tasking session allows (or forces) developers and analysts to look a little closer at the story cards. As analysts are right there, it is easy for developers to ask questions about some ambiguous parts in story cards.

2) To have a domain discussion
Tasking session makes developers and analysts to have domain discussion. Developers and analysts, when tasking can see if there is any domain model change for example adding a new domain object

3) To knowledge transfer to new developers.
By involving in tasking sessions, new developers will be able to understand more about why and what needs to be done for a story card.

4) To find some gaps in analysis
Tasking forces developers to have more understanding about a story card. So developers tend to ask more questions to Analysts. When answering to developers' questions, analysts will be able to find some scenarios he/she never thought about before or some gaps in story card.

5) To find whether a story is too big
Tasking gives us a better idea about the size of the story. So it will be easy for analysts and management team to decide whether to break the story into two or more manageable stories.

So I feel "tasking" is a beneficial activity in software development.

Wednesday, November 02, 2005

Pair Programing - Myth 1

Myth 1:

You don’t need a pair when you are doing a simple “if” condition.

Reality:

You need a pair to make sure, that you need that “if” condition.