Tore Vestues blogs

On a quest for the silver bullet...

Getting started with Selenium 2/Webdriver in C#

I've been trying out Selenium 2/Webdriver, and I like what I see. First, you get a real cross language framework. Second, you get a webtesting framework where switching between a headless browser and a normal browser is made dead simple. Here's I'll show you how to get started.

Responsive web design

Responsive web design is about making your web site adapt the layout to the viewing context, typically the browser window or the device that renders it. In other words, whether I watch the web site on a mobile, a tablet or a pc, and no matter what resolution I use, I should see something useful. It should respond to the context. Lately I've redesigned my blog to make it responsive, and here is what I've done.

This blog is officially Html5 upgraded

Lately I've been reading about and playing with html5/css3/javascript, just to get up to speed with the latest buzz of frontend. I do not think any developer these days can be complete without at least some fundamental knowledge of working the front end all the way out to the html. What I've done is to enrich my blog with some of the stuff I've been playing around with.

Yield return in C#

If you're not familiar with the yield statement in C#, you should look into it, as it might be a very handy tool. It is not that intuitive if you're not familiar with the concept. But luckily it's not so hard to wrap your head around how it works.

Foreach does implicit casting

I just noticed the other day that C#'s foreach actually does an implicit cast. That was a bit unexpected, honestly. The problem with casting generally is that when we do it, we let go of everything that type safety has to offer us (no compile time warnings or errors). And the problem with foreach is that it casts for us without many of us knowing it does at all.

Re-implementing my blog

There, I've reimplemented my blog. Basically I did it to see how simple it could be done. Simplicity is king. It was quite easy actually. It's an asp.net mvc solution, hosted at appharbor.com, using mongodb as storage.

Rethinking web architecture

Last year I was a speaker at NDC for the first time, and I'm proud to again have been given the opportunity at this years NDC. The presentation this year is titled: “When less is more - Agile web architecture”, and I did together with Jonas Follesø.

Glue 0.9 "Magic" Released

Version 0.9 of Glue is released. Read about the new major features.

Speaking at Javazone 2010

I'm looking forward to be speaking at Javazone 2010. It's been a few years since I attended Javazone, so I am really looking forward to the conference. The agenda looks great!

Law of Demeter: A real-world example

The Law of Demeter helps decouple objects, it makes mocking intensive tests much easier to write, and it offers a concrete set of rules that can make things clearer. I recently ran into an example in Glue where I refactored towards LOD. I will share my thoughts on that here.

Previous posts from 2010

Previous posts from 2009

Previous posts from 2008

Previous posts from 2007