Wednesday, March 25, 2009

Week 36 - Monday 23

From Sunday 22nd March 2009

Work on the new platform - Dot Net 3.5 Environment.


Approach -

Seeing as the time frame is so short I have to re thing how i normally approach coding. There was a great advantage with the previous environment that i could write test and the testing framework (Junit and Jmock) would facilitate creating mock object and prevent continuous persistance of test while foundationing integration of test with every build (BVT - Build Verification Testing). Using C# I would have to write my own test. I dont know if i will have time to write test methods. The test strategy may have to change. Instead of automated unit testing I would now have to rely on more user testing of specific modules.

That aside I have decided to build the system in parts keeping the MVC structure used by the Struts 2 App Framework. In parts meaning instead of layer Models first, Controller/ Managers and then Views... I will have all facets (hopefully in time) but I would like to code by process. So I did login already. I have the base users and the dao for that base object and a view. Functionality only. I still need to come up with a design. I will try to do that today.



Time Frame -
12pm Sunday 22 - 3pm Monday

Work Done -
  1. Started Database in SQL Server 2005
  2. Wrote the basic objects necessary for login.
  3. Login Successful ...

Problems Encounters -

  • Familiarity with the environment
    After working for more than half a year in java and using a conglomeration of frameworks its a very sharp turn to get back into the mode of thinking necessary to build in C#. I have used C# and the .Net environment before, for course work and briefly at one of my previous jobs (The job experience was VB not C but in .Net 3.5). The previous experience could not displace the mental conditioning of working in so many different inter working Java frameworks - even though they provided differing functions and they individually varied in syntax it was still java and xml mostly and i grew dependently familiar with the style of syntax, use of annotations and other new things i was never previously aware of in Programming code.

  • When i attempted to test the first DAO it continually failed.
    The DAO code seemed fine. After 2 hours I moved around the code accessing it. Eventually after tweaking the 'code behind' of a web form the failures proved to be just lack of practice with the language.

  • I am constantly mixing up the design patterns. I used Facade the last time I built in .Net - And I am only a student programmer. As a result i realise i have associated the pattern with the environ. I learnt MVC in java. So some mental re - arranging is necessary.

No comments: