http://kennyeliasson.myopenid.com/
Name: http://kennyeliasson.myopenid.com/
Score: 62.01
Last Seen: 1201 days, 21 hours, 54 minutes ago
Member Since: 29 January, 2010
DotNetShoutout
atom rss
5
Shouts

CodeJunkies | My project setup, Part 1 - Initialization

published 1200 days, 22 hours, 1 minute ago posted by http://jakobsson.myopenid.com/http://jakobsson.myopenid.com/ 1202 days, 17 hours, 40 minutes ago
Saturday, March 06, 2010 4:04:10 PM GMT Thursday, March 04, 2010 8:25:52 PM GMT
A while ago I wrote a post about what tools and frameworks I use in my web applications. Now I thought I'd write a small series about how I use those tool. In this first part I'll write about the initial setup and how I use my ioc container. (more)
category: Architecture | clicked: 0 | comment | | source: codejunkies.se
tags: ASP.NET MVC, StructureMap
4
Shouts

kny#: Meet my new HtmlHelper extensions friends, ForEach and If

posted by http://kennyeliasson.myopenid.com/http://kennyeliasson.myopenid.com/ 1232 days, 1 hour, 29 minutes ago
Wednesday, February 03, 2010 12:36:35 PM GMT
How many times have you written code like this in your MVC views? <% if(currentIndex == 0) {%> <% } else if(currentIndex == Items.Count()-1) { %> <% } else { %> <% } %> This is pure ugliness :( What I missed was something like django for variables. They include both a Last and First variable on the loop. After reading Phil Haacked's blog about "A code based repe... (more)
category: Web Dev | clicked: 0 | comment | | source: knysharp.blogspot.com
6
Shouts

kny#: How I do data-access

published 1232 days, 3 hours, 20 minutes ago posted by http://kennyeliasson.myopenid.com/http://kennyeliasson.myopenid.com/ 1232 days, 23 hours, 41 minutes ago
Wednesday, February 03, 2010 10:45:04 AM GMT Tuesday, February 02, 2010 2:24:34 PM GMT
Over the years I've tested alot of different techniques for getting data from a database in a .NET application. From the simple ADO.NET wrapper that executes raw sql or SP's and then returning a DataTable to the more specified "Repository" where each entity in my domain had a corresponding Repository for querying the data. I then discovered ORM's, especially NHibernate and started using it with the "One repository for each entity" approach. This worked great but when my projects grew bigger and b... (more)
category: Web Dev | clicked: 0 | comment | | source: knysharp.blogspot.com
11
Shouts

kny#: The template method pattern

published 1234 days, 21 minutes ago posted by http://kennyeliasson.myopenid.com/http://kennyeliasson.myopenid.com/ 1237 days, 1 hour, 44 minutes ago
Monday, February 01, 2010 1:44:24 PM GMT Friday, January 29, 2010 12:21:57 PM GMT
One of my favorite patterns is the "Template method pattern". Basically its about having a abstract class that defines common behaviour with points that can be customizable. Yesterday I was refactoring alot of classes tha't didn't make use of the template pattern, but they all inherited from the same base-class. The base-class acted more like a common place for methods that all objects needed. Let me show you some code that I had before the refactoring. public class QuestionQuery : QueryBui... (more)
category: Web Dev | clicked: 0 | comment | | source: knysharp.blogspot.com
tags: Template Pattern, Design Pattern, C#