Sprint Planner Helper – Session 14

Ok – today I’ll start by making a factory for the product class. I have some issues with the factory patterns and here is my reasoning; another class is the creator and must hence have access to the NEW-method of the class to create. Since that forces at least protected-level on the constructor it means that I cannot be sure that the clients uses the factory and not the constructor. If I however place the factory method on the class I am creating – I can. But then I am violating the Single Responsibility Principle.  What to do, what to do… For now – in TDD/XP-fashion – I’ll do the simplest. A static Create-method on the class I am creating. I don’t have several different Products so it’s the same factory for all products, possible with overloads. Flame away – ye flamers… and give me some insight in how I...
Read More

Sync Issues – my contact are back

With a little help from Windows Sync Center and my own stupidity all my contacts (200+) disappeared without any possibility to undo. I actually answered Yes to the question “Are you sure” but I didn’t get the concept partnership… But what are friends for… My good friend Christer did some forensic work at my customer computer and managed to bring all the contacts back to life… Thank you Christer! I was at a loss without my contacts. Everyone was a new acquaintance.
Read More

Avega – top of the game!

Avega has the best consultants in Sweden! We of course knew that already but now its proved since the Avega team won the Swedish Championships in Business Value. More here. And here. The Avega team shattered the competition with 1365 points (about 1200 points ahead of the second place!!!). Great work guys! We are very proud of you. And I am humbled to be a part of the Avega-team. We rock! So – if you want to work with the best… You’ll know where to find us!
Read More

Loads of ASP.NET MVC tips

Just happened to stumble on this site by Stephen Walter that contains loads and loads of small utils and tips for ASP.NET MVC coding. Such as creating an Excel-document output from an action. Here you got them all in a long list
Read More

Sprint Planner Helper – Session 13

After some consideration I have decided to follow the ASP.NET MVC best practices quite closely – and do the listing of the products as a separate page, the Index-method on the Product Controller. I’ll focus on this before the actual adding is fleshed out. This is because the Create-method of the ProductController do a redirect to the Index-action. Also I will keep the GUI very simple. If I do the MVC-ing right it will be easy for anyone who knows this. [Wait one hour – Marcus is coding :)] I actually got a product added today! And the more I work with TDD, DDD and ASP.NET MVC the more right it feels. Read this and you’ll see what I mean. I will have to create a factory for products… but my hour is up.
Read More

Why DDD rocks – the marcusoft.net version

Today I had very interesting conversation with a colleague and friend. He is very accomplished in matters concerning Application Lifecycle Management (ALM). And the more we talked about that and the things I am learning with the Sprint Planner Helper (TDD, DDD and ASP.NET MVC) I got sure of that I am on the right track. It’s the way to go – especially if you want to be agile. Just take my experience with this project. I have now coded for some time (ca 15 hours) without having to lock down to a database-design and data access strategy. Not even near – I am working out the model. I am even planning to do the database-stuff at the very end. You could choose to view the data access strategy and database as a “necessary evil”. I know I will need one to persist my data – but I will do...
Read More

Abbe in the pulka-slopes

Winter has “struck” Stockholm and we have lots of snow. And knowing the Stockholm weather we expect most of it to be gone in a few days. So we hurried out and bought Abbe his first pulka (kind of small sledge) and went to the slopes of Kronobergsparken. We thought that it was loads of fun. Elin and Abbe swished down the slopes. I got a few runs myself (for my self also ;) and the memories all came back. Running up the slope with the pulka in a string behind you. Getting cold after the first run… Ahhh the memories. Apparently Abbe was not as amused as we were.
Read More

Sprint Planner Helper – Session 12

Today I started off with some refactoring of the things I did yesterday. It was some pretty ugly code in the aspx-page which now is improved with some properties in the domain model. I also started the actual adding functionality of the Product and the product backlog. This immediately got me into trouble since I need a list of product owners in order to fill out the form… More test data and repositories. TDD is great – but it doesn’t solve the problem with testdata. It’s hard work – even with the great repository pattern. I hope (and guess) that this pays off. Since I am alone and Abbe is sound asleep I’ll break the 1 hour rule and continue a bit further. There are some great help in the way that ASP.NET MVC integrates into Visual Studio 2008. Most notably the way you can generate typed views (for list,...
Read More

Prayer works – Jesus hears them

I have this last week got two very real answers to my and other peoples prayers. I am still amazed that I still become amazed that prayers are answered. But that is how it is – it works. So if you ever find yourself in peril just put your hands together and whisper “Jesus – help me now!”. He will hear you!
Read More

Sprint Planner Helper – Session 11

It’s been a while since I did some code on the project. Abbe has been quite sickly and I have not had the time. No worries – it’s all a hobby ;) OK – what I have done since last time (2 x 15 min I think) is to produce a list of Product on my web page. With this fancy layout… That made me realize that I could have added some disclaimer when it comes to the UI. I made a certain css-class for the productlist, so someone can help me out later. I will make it functional now – not pretty. I also came to realize that my model may be enhanced with some status for the product items and aggregated values for how much that is done for a product. I TDD’ed them out and added them to the GUI. Which took me forever since I got...
Read More