I love the new System.Transaction found in .NET 2.0. I have been and will continue to use it in my applications.
When you compare it with for example the Enterprise Service management it’s so slim and lightweight. And the scaling up to SQL 2005 Transactions when need is a feature that will be nice when that kick in.
My favorite among them all, though, is the TransactionScope, which makes a nice and easy visual way of showing what is part of the transaction and not.
However, I found out a small glitch yesterday. Appearently there is a configuration value (maxTimeout) hidden away in the machine.config-file on each computer. This value defaults to ten minutes and that value overrides any values found in other configs (web.config or app.config).
So - if you need long running transaction you will have to tweak that value. See this articles for more information.
-
Read More
Chuck!
Chuck
is back - a few years (i think) back there was some sites around the
Internet listing how hard the ex-action-hero Chuck Norris is.
You know Chuck, I presume - he’s the hero of such great epic movies as
missing in action and foremost the long runner Walker Texas Ranger. They
are both crap and probably mr Norris shouldn’t have gone into making
movies at the first place. He’s a karate guy.
Anyhow - here is a list of the top quotes about how hard Chuck Norris
is.
http://4q.cc/index.php?pid=top100&person=chuck
Read More
TDD - good introduction
Something says me that I’ll be needing this link further on
http://www.agiledata.org/essays/tdd.html
It is a good introduction to TDD and very down-to-earth and practical.
Which we of course like a lot.
Read More
Chose your battles
When trying to force something to be what you want you have to know when to give up and when to keep trying a little while longer… that’s my lesson from this week.
Last friday (?) i wrote about namespaces in VB.NET and how to make them appear a the top of the class file automatically. Well I learned a lot about VB since then (actually!) and one of the things are the philosophy of VB.NET. VB.NET comes from a long row of Visual Basic releases, who all are alike in the way that the frees the user from having to care about the stuff behind the scene.
(If you don’t like VB.NET please feel free to exchange the word “frees” to “hides” in the previous sentence :))
Although there are lesser and lesser stuff tucked away there are still some inheritance from that traditions and Default Namespace is...
Read More
Scary stuff - all of the list
OK, the weekend is over (yes, prolonged I know) and my list of scary stuff is now down to almost nothing. Which I take that I am not afraid of nothing anymore - good!
On Sunday I was presenter on the last concert of Gothenborg Brass Band. Sad - but I tried to keep the focus of that fact and keep focus on the music instead. For me the concert also was a milestone since the conductor was Nicholas Childs - the musical director of Black Dyke Band, brass band personality extraordinaire and one of my childhood idols. I still have posters of him (and his brother Robert) on my boy room wall.
The concert went well with a bit of awkward twist since an early flight spoiled the order of the program. From what I heard in the audience that didn’t interfere much. The band was...
Read More
Including namespaces in new VB.NET classes
(UPDATE 2007-04-26 after reading this see http://marcushammarberg.blogspot.com/2007/04/chose-your-battles.html)
When converting myself from C# to VB.NET I found one thing that annoyed me very much; when you create a new class in VB.NET the namespace is not included in the file.
After a long and hard search I found out that there is a bit of a cultural difference here that comes into play. On the project-file for VB.NET project you’ll find a setting called Root Namespace. The text you write here gets pre-pended to all classes a compile-time. So if you project has a namespace called Marcusoft.Business and you create a class called Product, the complete namespace for the class is Marcusoft.Business.Product.
Note that the Root Namespace gets pre-pended even if you state a namespace in the class. With Root Namespace to Marcusoft.Business and Namespace Entities above the class declaration the complete namespace for the class would be Marcusoft.Business.Entities.Product.
Appearently...
Read More
VB.NET - not that bad
Just for the record I also need to add a small notice as an answer to my battering of VB.NET…. It’s not to bad actually.
I switched syntax in about a day and feel quite at home with it now. A few things that is a bit strange for the kind of language that VB.NET is (i.e. helpful and forgiving):
- The refactor menu from Visual Studio 2005 is gone! Why is that? It so good… Well found a freeware download which I am using now. The GUI of that download is really cool, maybe a bit irritating after a while, even.
- Namespaces are a bit troublesome. If you create a folder in your project and then add a class into it, the class still get the project default namespace. I’ve been doing some googeling about it but cannot find a solution to it…
But all in...
Read More
We'll meet again...
At my new customer (a big insurance company in Sweden) I have met so many friends and people I know from the past, that I am just amazed over how small Sweden is. Or IT in Sweden are a more correct way of putting it.
Here is a small list of people I’ve met so far:
- First day - met a friend that I knew from my first IT-job, at Skandia. Henrik something. I haven’t seen him since I stopped work there in 1999
- Second day - learned and met the chief business architect for my project… He is my neighbour from a year back. He met me the first time when I locked myself out and tried to pry the door open. He helped…
- Third day - met a friend from university that I hung with for the major part of the time there....
Read More
Scary stuff 1 - taken down
The
presentation yesterday went well. Just thought I’ll drop that in here
since I have being bringing it up again and again.
About 120 people in the auditorium and circa 20-40 people listening in
via video-link… quite cool, even though it made the presentation a bit
harder. A funny (but nice) calmness came over me the minute I stepped up
on the stage. I also managed to keep the timing of the presentation down
to the minute (a first for me :))
The presentation was about SCRUM and it was quite well received. I’ve
heard several people talking about it (both positive and negative word)
already - which I take as a good thing. I could post the slides here if
only BlogSpot allowed me.
So - continuing today on my road to a working environment, but much
lesser amount of butterflies in the stomach…
Read More