Code from my testing presentation

Last week, I had the honor of having been invited to present my thoughts on testing at a IT consultant agency here in Stockholm. And even if I looked forward to it, and felt privileged to be allowed to share my view with these other devs, I still felt a bit hesitant. I was still going to step in front of a bunch of devs and present a somewhat less glorifying view on testing than you normally get. Not that I am all against testing, definitely not, but I do have a somewhat looser view on what, when and how to test software than say for example you regular TDD guy…

Walking in to the presentation, I had material for about an hour of presenting, and hoped to maybe extend it to an hour and a half with discussions and debate (I did hope for a lot of discussion as it was really the goal of my presentation). However, it turned out that after an hour and a half, we had a break for food, and then I kept going a bit more. I think we ended the session after almost 3 hours, even though I think it could probably been longer if I had pushed my points a bit more to the extreme than I did.

More...

Securing a NancyFx module with the Azure Access Control Service

In my previous post I gave a semi-quick introduction to NancyFx. This time, I want to take Nancy and combine it with Azure ACS. Not a very complicated thing as such, but still something I want to do as I enjoy working with both technologies.

Just as in the last post, I will self-host Nancy in a console application, and use NuGet to get it going. I will also re-use the “www.nancytesting.org” domain I set up in my hosts file in the last post.

Once I got my console application going with a host, and an empty NancyModule, it is time to start looking at the ACS.

More...

Trying Out NancyFx

As part of not doing very much coding lately, I have decided that I am going to try to spend more time trying out new frameworks and technologies. And hopefully, that will en up with a lot more blog posts with interesting stuff. This time I have looked at a ridiculously funky micro framework for building HTTP-based services called NancyFx. It is really simple to get started with, but still very powerful…and modern…

Nancy can be hosted in a variety of ways, including in ASP.NET MVC, WCF and self-hosting. In this post, I will look at hosting Nancy in a console application as I had little interest in setting up anything big. And using NuGet, it was a piece of cake to get started. Just start up a new Console application project and then NuGet Nancy.Hosting.Self.

More...

Sample code from my LEAP presentation about cross-framework code sharing

Yesterday I was invited to speak in front of a bunch of really sharp guys attending the Lead Enterprise Architecture Program, LEAP, at Microsoft here in Stockholm. The topic of the day was how to share code between projects targeting multiple frameworks/platforms. Basically “how can we share code between projects aimed at WP7, Windows 8, Silverlight and WPF” in a useful way, limiting the duplication of code as well as maintenance.

Most of my presentation revolved around a sample I had written to target all platforms. It is a very simple application, but still shows that it is very possible to get it to work.

More...

A Rant About Unit Testing and Stuff

I think it is time for another rant. Actually I really don’t, as my blog is supposed to be about coding, not about me ranting… It seems like my blog has slowly gone from code centric posts, to ramblings of a grumpy Microsoft developer. Sorry about that, and I promise to focus more on code in the future…

Lately I have travelled around and talked at a bunch of conferences, and heard a lot of really smart people talk about a lot of really cool things. This got me thinking a bit about my own way of dealing with new technology, as well as about my own way of doing things today… The result of this thinking is that I am going to try and make 2 changes. First, I am going to try and get out and about and try more new stuff. More frameworks, technologies and maybe even more languages… Hopefully this will fuel my blog with more code related posts as well as interesting revelations and thoughts. Secondly, I might have revisit my stance on unit testing and TDD…

More...

Another good conference at an end

So, here I am sitting at the speakers lounge at DevConnections at the MGM Grand in Las Vegas after another great conference. It is amazing the level American conferences keep. The speakers are great, the conferences are well organized and everything just flows. And it is pretty cool to be able to share the speakers lounge with people like John Papa, Dan Wahlin, Paul Litvin, Juval Löwy and Scott Hanselman. It is also very humbling. These presenters are really the cream of the crop, and I am still kind of wondering what I did here. But I got to do it, and had a lot of fun, so I won’t complain.

More...

Keynote with Scott Scott Scott

Ok, so tonight's keynote with Scott Hanselman was interesting to say the least. Hanselman is always fun to listen to, and I would consider him a pretty brilliant presenter. Today, while waiting for his keynote to start, he showed a bunch of interesting things on the projectors. As I sat down, he had legacy machines booting, or at least showed the boot sequence of old Mac OSs, Amiga, Commodore and Windows. Quite funny…and after that, he just browsed around the web showing off a bunch of really funny websites. Sites like http://sometimesredsometimesblue.com/ and http://isitchristmas.com/. He also showed off a video with Steve Ballmer singing, an org-chart of Microsoft with each unit pointing guns at the other. And yes, he also covered in depth his relationship to Scott Gu… And the some!

And however ridiculously funny it was to hear him talk, and hear him joke at the expense of Microsoft and boost a few open source projects, it was not the main attraction. The main attraction was when he found a missing feature in ASP.NET MVC, said that he wanted it fixed but that they were too busy. So he open sourced ASP.NET and asked one of the Mono guys to fix it by getting it off Codeplex using Git… Very funky!

More...

DevConnections Keynote w Jason Zander

I just attended an interesting keynote with Jason Zander. It didn’t really include a lot of new stuff as it was mostly focused around VS11, but it did bring up some things I hadn’t seen before, and I must say it is looking good.

It seems like the ALM stuff is taking another step in the right direction, adding in a lot of cool feedback stuff. Unfortunately, with the people I meet in the industry, it won’t be used as widely as it should. Everyone seems to have their reasons for not using TFS, but I keep coming back to the same point. If you look at the individual pieces of the TFS, like for example the source control, you will find better solutions out there. But if you start looking at the whole offering, you will see that it all integrates nicely giving you a very powerful suite of tools. I just wish I had more time to play with it and see what it can do…

More...

Software Passion Summit – The Second Day

The second day of the Software Passion Summit started with an inspiring talk by Gojko Adzic. He talked about a lot of different areas including software developments and requirements gathering. A few of his points were very interesting and lingered in my mind…

Gojko said that absence of bugs is not a guarantee for software quality, and good software quality doesn’t mean that the software is bug free. I find this very interesting, and true. I love that someone stands up and says it out loud. Perceived quality, which is the most important thing, is not dependent on the software being bug free. I think that if you deliver an awesome experience and a good set of features, most user are willing to ignore a lot of bugs as long as they aren’t showstoppers.

More...