The MVC song
February 16, 2010
This is a bit geeky but it actually has mostly true stuff in it:
Thanks Anders Granåker for a great tip.
But the guys from Rails Envy is not far behind in the geekery…
February 16, 2010
This is a bit geeky but it actually has mostly true stuff in it:
Thanks Anders Granåker for a great tip.
But the guys from Rails Envy is not far behind in the geekery…
February 12, 2010
OK – this was almost driving me crazy.
For demonstration purposes I had used the automapping feature of Fluent NHibnernate. In a very standard way – I used all of the conventions out of the box.
Except… I forgot to check the conventions. For example for primary keys the convention is to name it Id. Exactly that! Not ID or id or anything.
February 11, 2010
I ran into this problem when I tried to re-open a solution I did a while back when labbing with Fluent NHibernate and SQLite.
Behind the cryptic error message lies and easy solution; I was running the 32-bit version of the SQLite-driver and runtime. That’ doesn’t fly on my Windows 7 64-bit machine.
Here is a more through description and here is a link to the latest version of SQLite that will get you all the version (32 and 64 bits) of the SQLite.
February 8, 2010
OK – VB.NET is on the subject again. As I remember there was two things that led to big arguments and confusions: Casting and arrays.
I’ve already blogged about how arrays are handled here.
Here is an article that describes how casting is done in VB.NET. It also compares with C# which great for understanding.
And here is the points in short:
And just for the record… VB.NET delenda est…I don’t like using it - but I have to.
February 3, 2010
I’m back with Visual Studio 2008 after a few months only doing Visual Studio 2010 stuff. And… you miss some stuff. Things get old so fast. Sad.
Here’s some nifty tools that get you a bit closer; PowerCommands for Visual Studio 2008.
Aaah – now it feels a bit better.
February 1, 2010
I am so proud. My evil scheme to keep my calendar(s) in sync got tested for real today.
Got to new customer. Installed Outlook to Google Calendar. Started Outlook. Viola! All my events from my other calendars in place with the ones from my customer. So now they will not book me on days when I have other assignments etc.
The only thing is that you cannot think to much about it because it will drive you mad. My customer Outlook is synched with Gmail, my Avega outlook is also synched with the same account to Gmail. My phone synchs to Gmail… But it works. ‘Nuff said.
February 1, 2010
One thing that I really love being on a contract is that you’re almost immediately is forced to find solutions, whereas on a leisure project you rather do something else…
Here is another great tool; AutoMapper. It’s a framework that do all of that tedious mapping code you’re doing in for ViewModels or Messages in services. Boring and tedious to write and test. AutoMapper takes care of that – using a lot of Conventions.
Be sure to see the screencast that introduce a lot of the possibilities.
February 1, 2010
As you could read in my latest post I have be a bit frustrated with TDD and where to start, lately. BDD is of course the answer to that. But I must say that the frameworks are available to the .NET crowd is a bit weird. Either you have some really funky syntax (hey Anders, a new colleague and great guy) or it’s build on top on other stuff and where hard to work with.
I simply cannot see myself introduce any ordinary programmers to any of that.
But here is something that looks more like it… a bit at least; SpecFlow. It’s also built with an eye too RSpec, Cucumber and Ruby but build in the style of .NET and C#.
Here is a (silent) screencast, something about syntax...
January 28, 2010
I’ve been playing around a bit with ASP.NET MVC and StructureMap (an IOC container). It all looks very nice and works wonder. During this I ran into an excellent blog post by Elija Manor on wiring StructureMap and ASP.NET MVC together. Beware of the favicon-problem though.
Again – i use NHibernate and Fluent NHibernate which so much nicer than the XML-stuff. The critics to Fluent NHibernate says that you cannot reach all functionality from Fluent NHibernate, but here is an example on how to set specific properties in your configuration. Helped me through this example.
Also found some great code examples from the TekPub NHibnernate series here.
OK – I’ve added “TDD?” in the title. I love TDD and it’s my preferred way of doing code, but January 22, 2010 I happened to run into a feature I didn’t know of… Visual Studio 2010
(beta still… soon RC) includes a function for managing different
.config-files for different environments. And support for transforming
them on build/publish. Here is a MSDN-article that introduces the concept
and use it. And here is an article on the subject. Pretty cool since up to now you’ve had to do it manually with
build-tasks… Not so trivial.Visual Studio 2010 web.config transformation