Yesterday we had another one of our programming sessions that I was talking about in my last post. The subject for the day was front end performance and what we can do to make our sites faster. The meeting was based on Steve Souders book High Performance Websites. He is the developer behind YSlow, a ...
My experiance with the prototype framework
It has been a long time now since my last post. I have simply not found the time to write anything. But today I have a little spare time, so I tought I'd write a little bit about my experiance with the prototype javascript framework.
We have recently started a developer group in my home town, varbe ...
The war of the var keyword continues
I don't know how many times I have read articles about the var keyword, and how "dangures" it is to the readability of your code. Yesterday Steve Wellens wrote about how misused the keyword is. I have to say that I couldn't disagree more.
First of all his example isn't a real world exampl ...
Handling image uploads with Asp.Net Mvc
A very common taks in web development is uploading images. This isn't realy a hard task in it self, but it can be pretty frustrating to write the same code over and over again even if its only a few lines.
In one of my current projects, I need to handle a lot of images. In many cases there are two ...
What my toolbox looks like
I guess that most developer have their favorite set of libraries that they use in just about every project. Atleast I have such a toolbox. They are tools that I find myself using constantly and that I feel help me in my development. Here comes my list.
1. Asp.Net Mvc
Well, I'm mostly a web develop ...
Using partial views for javascript
Lately I have been working on a web application that requieres quite a bit of javascript. I decided to use the Mvc pattern here that I have written about before to see how it works out and to get a more readable and seperated javascript code. I did want to seperate the view, model and controller fro ...
Why code blocks in the UI is a good thing
A very common argument against the asp.net mvc framework is that people don't want to use server side code in the same place as you have the html code. Some say it makes the code unreadable or that it is a step backwards in development and closer to asp 3. In my opinion, this is a very thin argument ...
Using the MVC pattern in javascript
As anyone who have ever worked on a javascript heavy page knows, javascript can very easily get out of hand and become a mess. Roy Osherove thinks we should fix this problem by generating our javascript using a server side programing language. I didn't realy like this idea, nor did Jimmy Bogard. But ...
What I look for in a ORM
In just about every application I build that use a relational database, I also use a orm tool to handle my data access. The reason I do this is to save myself the time it takes to handroll a data access layer in ADO.Net and to eliminate buggs that can come from writing sql queries. I do have a few t ...
Promise only what you can keep
When I write a method I often try using interfaces as return type and parameters, as long as it's not a method that should return a domain object. The reason for this is that I don't wan't to promis to much to the calling code.
The parameters to your method should be of the lowest type in the inher ...