Tuesday, May 10, 2011

Watch Project Wrap up

I started coding on the watch project on May 2. I finished it on May 9 – including a lost day in the middle where I was working on build issues. Before that, there were two days of planning.

So, 8 days, total.

Here are the members of Spring:

PowerShell: $test = new spring


____________________________________________________________________________________________________________________________

PowerShell: $test | get-member



TypeName: Spring


Name MemberType Definition

---- ---------- ----------

display Method System.Void display()

Equals Method bool Equals(System.Object obj)

GetHashCode Method int GetHashCode()

GetType Method type GetType()

set Method bool set(int setValue)

tick Method bool tick()

ToString Method string ToString()

wind Method int wind()

And Hand:

PowerShell: $test = new hand(70, 89)


____________________________________________________________________________________________________________________________

PowerShell: $test | get-member



TypeName: Hand


Name MemberType Definition

---- ---------- ----------

Equals Method bool Equals(System.Object obj)

GetHashCode Method int GetHashCode()

GetType Method type GetType()

tick Method bool tick()

ToString Method string ToString()

Display Property System.Int32 Display {get;}

So, I wrote 2 classes with 2 constructors and 6 public methods in about 8 hours of work.

Of course, these were simple tests because they didn't have ranges of values to pass around. The earlier project – the match stick game – had more complicated stuff and some more complicated tests.

But – on the whole – the methodology I'm practicing seems to work for the problems I've played with.

No comments:

Post a Comment