Product Owner’s Gudie – Breaking down estimates

Posted July 25, 2011 by sljm
Categories: Uncategorized

Overhead this while at work.

  “The Product Owner wants us to break down our inital estimate on the development effort into parts like analysis, design and coding …”.

  That sounds to me like the Product Owner(PO) thinks that whatever estimate that the team came up with is too long and wants to cut the estimate. If the team gives such such a breakdown, then be prepared for the negotiation about the time needed for the project to be discussed.

  But how is the team going to come up with such a figure anyway? I always found the statement like “Most of the time is spent in design but little in coding”, or using the 80-20 rule that 80% is spent in design and 20% in coding. Is that statement still relavant today? In the past (I mean way way past), people do spent a lot of time in design because computers process ur programs in batches and you better get it right the first time if not you wait a day for the next run.

  Fast forward to today, where we have powerful ides, programs run almost instantly, where you can code a little, test a little, you are more likely to try a program a vertical slice and then build up your system from there, with refactoring tools so powerful, changing methods, implementing interfaces no longer is such a chore.

  Now back to the story, not matter what the project team tries to justify their number the PO will just try to cut it. The problem with most people is that they have some prenotion of when the project will end, but they do not realised that an estimate is just that, an estimate, it’s a educated guess base on whatever information you have. An estimate is not an accurate prediction of the future and couple with the fact that software estimates are usually wrong. Steve McConnell says it well in his book Software Estimatation.

 
“Estimation should be treated as an unbiased, analytical process;
planning should be treated as a biased, goal-seeking process”

So if you ask someone for an estimate, you are asking for his opinion on how long it will take, and you shouldn’t try to cut his estimate down.
 
More likely is the product owner is trying to get a plan from the team not an estimate, and the team’s estimate isn’t matching his plan. His plan can be anything, could be trying to meet some timeline for marketing, or some trade show demo.

  Product Owners please just tell the team what is your plan, it may be because of marketing, budget and other reasons that you need to slim it down. But please tell the real reason and not by trying to get the estimate within your plan.

  For the development team, try to find out the underlying reason for doing such an exercise, buy a copy of Steve McConnell Estimation book and give it to him. Negatiate on the scope, not all features need to be a mercedes, sometimes a vespa is good enough.

  The only thing that can be reliably cut down to meet the target is actually the scope of the project. Does the Product Owner need 100% of all the features of the software to be done to be really useful? More likely than not something like 50-70% will probably be good enough. 

Main takeaway – Estimation and Planning are 2 different things, try to make sure what is it you are talking about.

One hour early a day…

Posted February 2, 2011 by sljm
Categories: Uncategorized

My latest read is Robin Sharma’s book (The Leader who had no title), interesting read. But one statement struck me (I more or less paraphrase it)

“If you wake up one hour early each day for a month, in 30 days you will have almost one weeks worth of working time, think of the things you could do”

When i told this to some of my colleagues/friends they say wha sleep less one hour how ? Not enough time to sleep already.

“You have enough time to sleep when you are dead” 

I guess this is the difference between people who do impressive/great things (physically fit, be it in doing voluntary work, open source projects, making lots of money, hobbies, making a difference, side business, execise often) and the rest of us. They spent the time not just dreaming and talking about it but actually doing it. I am not actually saying that you forgo sleep altogether but think of the possibilities that could happen if you think about how to spend your time wisely.

At the end of our life, lets not spend time regretting what it might have been, or what we might have done better.

Remember the saying that you need 10,000 hours to become good at what u do, maybe i should start doing things instead of writing things on my blog :)

Ebooks from top StackOverflow answers

Posted January 26, 2011 by sljm
Categories: Uncategorized

Have you tried StackOverflow, if you are a developer its probably one of the best resource for asking questions.

Its a great site, what is even greater is that someone converted the best answers into an Ebook format. Great for bring around, the link is here http://hewgill.com/~greg/stackoverflow/ebooks/. Whats nice is that it is broken up nicely into the different subject like ajax, python, c#.

Posting data with Node.js

Posted January 25, 2011 by sljm
Categories: Uncategorized

Tags:

Recently i needed to post data using node.js, I was not trying to post a long string of data but rather parameters from a form. But the Node.js help page isn’t too helpful, it just say use request.write() to write data to the streamThis is the first interation i got.

var http=require('http');
var post=http.createClient(80,'localhost');
var request=post.request('POST',/test.php'.{'host':'localhost'});
request.write('test=10'); request.end();
request.on('response',function(response){
response.setEncoding('utf8');
reponse.on('data',function(chunk){ console.log(chunk); } });

test.php is a simple php script that prints out the parameter value.

I got nothing… nothing was printed out. What was wrong?

Using curl and Fiddler, i did a little investigating about what went wrong, what was missing was the Content-Length and the Content-Type which needs to be application/x-www-form-urlencoded.

Adding these 2 parameters to the script, results in

var http=require('http');
var post=http.createClient(80,'localhost');
var request=post.request('POST',/test.php'.{'host':'localhost','Content-Length':'7','Content-Type':'application/x-www-form-urlencoded'});
request.write('test=10');
request.end();
request.on('response',function(response){
response.setEncoding('utf8');
reponse.on('data',function(chunk){
console.log(chunk); } });

And yeah ! It works ! 

JRex, Embedding Gecko (Firefox) in eclipse

Posted January 11, 2011 by sljm
Categories: Uncategorized

Jrex is a Java component that embeds Mozila Gecko in your application. The project has been dead for some time since 2008 from what the mozdev.org page. So the version of Gecko may not be the latest but should be good enough for whatever you would like to try out.

 However looking at the code from Vijay (http://www.vijaykiran.com/2006/09/05/using-jrex-in-eclipse-rcp/
), i got it working and it seems to work fine, but Vijay dosen’t really go into how to setup the project like where to download the jars and where to put the dll and so on, and I did have some hard time trying to find out where to find the jars.

 Downloads
1. At first i took apart the jnlp file on jrex.mozdev.org to find out what are the dependencies, but after looking around the mozdev site, i finally found the downloads for the jars, source and docs in here (http://www.mozdev.org/source/browse/jrex/downloads/#dirlist).

 2. But it dosen’t include the jrex_gre files that are in the jnlp, those you can get them here (http://www.mozdev.org/source/browse/jrex/www/releases/jrex-1.0b1_dom3/). Look for the jrex_gre.jar

 Setting up your eclipse.
Put the jrex.dll in your eclipse directory, if not you will get a UnsatisfiedLinkError when you try to run the view. Put the jrex.jar in your lib folder of your project.

 Unzip the jrex_gre.jar contents to a nice location you can remember.  You will see in Vijay’s code a place that you will need to supply the path to the file in org/mozilla/jrex/jrex_gre files.

 That should fill up the missing pieces in Vijay’s writeup.

I will try to package the source code into github at some later time.
&n bsp;

Fedora 14 – Using the DVD as a software repository

Posted January 6, 2011 by sljm
Categories: Uncategorized

Installed Fedora today at office in order to try out some web acceleration stuff lile squid and varnish. I used the DVD iso version, so that i can have most of the essential software already.

  When i rebooted i found that the dvd is not recongnised as a software repository, because there is no entry in /etc/yum.repos.d/.

No biggie, just mount the dvd, in the root of the dvd there is a file media.repo, jus copy the file to /etc/yum.repos.d/ as packagekit-media.repo and you are all set, your dvd becomes a software repository.

Resolutions 2011

Posted January 5, 2011 by sljm
Categories: Uncategorized

My resolutions for 2011.

For the personal geek in me (Probably have little to do with work)
I declare this to be the year of functional programming for me!

Common Lisp 
Begin by first completing Practical Common Lisp and Land of Lisp, and the little pet project that i do when i have free time, the idea of closures and high order functions really appeal to me.

Another Functional Language that I hopefully have time for this year. Invented by Ericsson for using in telephony applications, it has some interesting properties like fault tolerant and hot swapping. Since it’s designed for telephony (which has something like 9 9′s of availability) you can actually swap in code while the system is running which i think its pretty cool.

Hadoop/Map Reduce
Always heard about MapReduce and Hadoop, I shall attempt to read google’s paper on it and hopefully setup a working instance.

NoSQL
NoSQL is getting big nowadays with Twitter and Facebook all moving/developing part of their infrastructure on top of NoSQL type of storage.
Learn at least one implementation and see how it can be worked into a project.

For the bookworm in me
Read The Elements of Style, one of the great books on the writing for the English language. Time to get better at my writing, better written communication is essential as you go along ur working life.

Read more “management” style books especially in the realm of making people happy at work, I am quite interested in how great organizations retain their people and keep them happy.
So far i have FISH! tales, Why work sucks from the library here with me.

For the not so fit me
Finish taking my IPPT before June and pass it.
Run at least once a week at least 2.4km.
Attempt to run a half marathon by then end of the year. (Haha this will the hardest one in my list)

For the bad habits in me
Second guessing or interrupting people midway
I don’t know if people noticed but i do have a bad habit of either completing other people’s sentence or second guessing what they will say. I will let others finish what they want to say before I start, I will try to follow the rule of One Conversation at a time.

Procrastination
I have a habit of procrastinating, enuff said.

For the father and husband in me
Vacation
Hopefully I will have time to go for a vacation, hopefully it will be the first time that I am bringing Chloe overseas.

Better Father/husband
Its quite hard trying to be specific as to what makes a better father, could be a variety of factors but i sorta like this one that I got from FISH! Tales book, “Love for child. is simply being there”.

Lets look back again in 2012.

2010 in review

Posted January 3, 2011 by sljm
Categories: Uncategorized

The stats helper monkeys at WordPress.com mulled over how this blog did in 2010, and here’s a high level summary of its overall blog health:

Healthy blog!

The Blog-Health-o-Meter™ reads This blog is on fire!.

Crunchy numbers

Featured image

A helper monkey made this abstract painting, inspired by your stats.

The average container ship can carry about 4,500 containers. This blog was viewed about 20,000 times in 2010. If each view were a shipping container, your blog would have filled about 4 fully loaded ships.

In 2010, there were 9 new posts, growing the total archive of this blog to 53 posts.

The busiest day of the year was June 4th with 297 views. The most popular post that day was Terms in Functional Programming.

Where did they come from?

The top referring sites in 2010 were dzone.com, google.com, google.co.in, info4tech.wordpress.com, and jdon.com.

Some visitors came searching, mostly for ljava.lang.string, extjs form validation, ljava.lang.string; cannot be cast to java.lang.string, and [ljava.lang.string; cannot be cast to java.lang.string.

Attractions in 2010

These are the posts and pages that got the most views in 2010.

1

Terms in Functional Programming June 2010
1 comment

2

java.lang.ClassCastException: [Ljava.lang.String; cannot be cast to java.lang.String When using HttpServletRequest getParameters() January 2009
1 comment

3

Ext JS – Disabling FormPanel submit if validation fails March 2009
1 comment

4

JAX-WS and Http Proxy July 2009

5

Getting the gBrowser object in Firefox August 2009
1 comment

Moving to new domain

Posted June 25, 2010 by sljm
Categories: Uncategorized

To all my readers, I will be moving this blog to a new domain http://www.stephenonsoftware.com, and I will be migrating posts from this site.

For those who are following me using RSS please use the new RSS address. http://feeds.feedburner.com/StephenOnSoftware

Terms in Functional Programming

Posted June 3, 2010 by sljm
Categories: Uncategorized

Well I am trying to rediscover “Functional Programming” these days, playing around with Common Lisp and Clojure. Found lots of terms that I have little or no understanding of. Think others may be like me and just compile them here for others to learn. The examples are mainly taken from Wikipedia and some from talks I’ve heard. Feel free to suggest what else should be added to the list.

Closure

As defined in Wikipedia “a closure is a first-class function with free variables that are bound in the lexical environment. Such a function is said to be “closed over” its free variables”

Let see an example,

var digit_names=function(){
    var digits=["zero","one","two","three",...];
    return function(n){
        return digits[n];
    }
}

In this case the digit_name are the free variables, and it returns a new function with one parameter “n”, that will display the text representation of the number. Notice that even when the function extits, it still maintain the digit_name array in the new function, so the new function is closed over the digit_name array.

Another javascript example this time in jQuery.

var add_link=function(id,text){
$("#"+id).click(function(){
alert("Hello World"+text);
});
}

Java Proposal for closures

Functions as first class arguments

What the hell is this ? Basically first class objects are things that you can pass them into function/methods and also return them from methods. In Java that means primitives like int,char and objects like Strings, Integer and your own custom objects.

So if a language supports first class functions that means you can pass functions as a argument and also returns functions from functions.

Exampls of such languages are Common Lisp, Scheme, Clojure, Javascript.

(defn is10? [b]
    (if (= b 10) true nil))

(filter a [1 2 3 4 5 10])

The above example in clojure defines a is10? that checks if a number is equals to 10. We then pass the is10? to a filter function that will remove all numbers except where the number is 10. The filter function coincidentally is called a HIgher level function.

Metaprogramming

Sounds quite abstract, programming is programming what the hell is the “meta” word doing there. Metaprogramming simply said are programs that write or manipulate other programs as data.

An example in Bash from Wikipedia.

#!/bin/bash
# metaprogram
echo '#!/bin/bash' >program
for ((I=1; I<=992; I++)) do
    echo "echo $I" >>program
done
chmod +x program

This one is a program that writes a program that prints 1 to 992.

Compliers are another examples of metaprogramming, translating programs into bits and bytes that can be executed. C++ templates are another example.

ROR ActiveRecord patterns, Hibernate frameworks are examples of frameworks that use metaprogramming to generate code base on your database structure/definations.

Homoiconicity

Basically it means that the program you are writing is actually some primitive data structure in the language itself.  Sounds weird right.

Languages that have this property include LISP,Clojure, Prolog, XSLT, Xquery (not exhaustive).

For example a primitive structure in LISP is the list. You can represent code in list data structure and it can be evaluated. The advantage is that it makes meta programming easier, that means it makes it easy to write programs that manipulate other programs  as their data.

Below examples taken from Wikipedia.

(setf expression  (list '* (list 'sin 1.1) (list 'cos 2.03)) )
-> (* (SIN 1.1) (COS 2.03))    ; Lisp returns and prints the result

(third expression)    ; the third element of the expression
-> (COS 2.03)

You can see that the sin 1.1 * cos 2.03 code is represented is a list structure in LISP and LISP is able to process that “data” and evaluates the result of that data.

Immutable

It just means that the data cannot be changed after it has been created, the opposite is mutable. In an object orientated world most of the data is mutable that means we allow data or properties in the objects to change state. That’s why we need locking in order to access the data and make sure no one can change the data while we are changing it.

If all your data is immutable, there wouldn’t need to be locks since all data is read only. Erlang,Haskell,OCaml has only single assignment for its variables, most other languages have some keyword or syntax to denote the variable as read only, example Java uses the final keyword.

Data immutability is said to reduce the number of side effects and also makes programs easy to debug.

If you like this post and would like to support my site feel free to buy me a beer !


Follow

Get every new post delivered to your Inbox.