Dependency Injection - explained
When I first read about Dependency Injection, i of course read the famous article by Martin Fowler… and to you i can say that i didn’t get it. At all. Please don’t tell anyone ;) But after the presentation at Avega by Niclas Nilsson i finally got it. And the exemple below is a small rip of the DI-part of the presentation but it works as a reminder for me anyway. Here we go: Lets say that we have a class called SalesController that managers the business logic for sales. In order to work it has to get some product information which is stored in a reposotory calles ItemInventory. Below is a example implementation of SalesController public class SalesController{ ItemInventory item; public SalesController() { ... } ...} This means that the SalesController is dependent to ItemInventory. That is not that good since: if you want to exchange ItemInventory for another...
Read More
Spring.NET
I
realize, when skimming through my posts on the blog, that this happens
from time to time … but i have learned some great programming skills
the last week.
At Avega,
where I work, we gave a seminar on Spring.NET, Dependency Injection and
Aspect Orientation… and once again - i think i am in love.
For the first time i finally understood Dependency injection and then
the pieces and beauty of Spring.NET was very
obvious.
Here are some links that might be useful:
http://www.springframework.net/
http://www.martinfowler.com/articles/injection.html
http://www.niclasnilsson.se/
Read More
Brassband radio
Every monday morning i start the day by listen in to Listen to the
band
which is a long running radioshow in UK, playing brass band music. It is
a great oppurtunity to hear the best band in a more or less live
situation.
Now, i found out, there is a contender… World Of
Brass also has its
radio. It seems to be playing CD’s (that you can buy from World Of
Brass, can you imagine? ;)) but there is some very good music to hear.
Read More
Pixar - again
OK - the last post made me think about another time when i was the only
one laughing in the cinema. Really embarrassing - especially since all
the other people in the saloon were children… max six years old..
Read More
Pixar - for the birds
This one great short animated movie from the geniuses from Pixar.
The first time i saw it i laughed for a half hour straight. But that
probably is more sad than fun…
Read More
Laugh of the day
This is so much fun - i can’t believe that we laugh at this. This is how
it works under the covers on a computer, you know.
http://www.1-click.jp/
Read More
Weekend to an end
After a really busy weekend i have just started a “get-back-into-shape-week”… That happens quite a lot to me - the weekends are more hectic than the weeks. So you need to shape up in the weeks. This weekend has been mainly coloured by the celebration of my Salvation Army Corps 40 years anniversary. This was a major success with a music festival with the band at the Saturday to a capacity audience - that was a very long time ago indeed. So fun, so blessed and a lot of warmth to be shared. The band played to its best even though i wrecked that last note of my duet… Well it happens, but not to often i hope. The Sunday was also great with a celebration with the whole corps, which include the string band (yes, they still hang around), a youth choir, the band and the great Vasa Gospel....
Read More
Loud personal details
I’m
sorry but the women at my workspace that talks loud about all (i mean
all) details is going on my nerves…
Every morning there is something about her children forgetting keys and
sleeping over, or why not something even more personal?
And it’s loud - i could probably tape it and make some kind of diary for
her…
Read More
Mum
This
week has been a bit upside down in a already hectic period. My mum had a
TIA (?) which is hospital-lingo for stopper in the
brain (sorry ‘bout the English).
Of course a lot of thoughts runs through your mind
when something like that happens and it takes it toll on you mentally
and physically.
But it all seems to go well now and there are not lasting
problems. Hopefully something good can come out of this and she can
reduce the stressing workload that she carries at work.
Read More
VB.NET or C#
In a upcoming project we’ll be using VB.NET. The customer has chosen that language as their company standard and there no use or point to argue about that. … Although i can’t see the advantages with VB.NET over C#. The last time i started a discussion about this it resulted in ca 30 mails with suggestions about why C# is superior… but at the end of the day it’s only syntax. Since the compiler will translate the code into MSIL (intermediate language) which then will be executed by the runtime there is no performance gain using C# or VB.NET. C# seems to be the most popular choice though - i tried a Google-search on “vb.net for c# developers” and almost all hits has to do with converting a VB.NET developer into a C#-developer and not the opposite. A popular point in why to chose VB.NET is that if you come...
Read More