Managed meets functional

Blog about programming and having fun with .Net

About me

 Venice, 2009

profile for Alexander Galkin on Stack Exchange, a network of free, community-driven Q&A sites

Project Euler

Greetings here in my blog!
My name is Alexander Galkin. I was born 1979 in Kazan, Russia, where I graduated in child medicine.
Since 2001 I live in Hamburg, Germany and work as a freelancer software and database architect and trainer for Microsoft technologies.

 Microsoft Certified Trainer
Microsoft Certified Professional Developer
MCTS Logo
MCITP Logo

Calendar

<<  May 2012  >>
MoTuWeThFrSaSu
30123456
78910111213
14151617181920
21222324252627
28293031123
45678910

View posts in large calendar

Object-Relational Mapping: a handy design pattern or a spoiling anti-pattern?

Today somebody asked the question about the nature of ORM in development: should we consider it a useful pattern or an anti-pattern.

Here are my thoughts on the topic (just copy and pasted from StackOverflow):

Actually ORM helps you to quickly implement a data-base connectivity and implement your application logic without paying much attention to the actual connection to database. You are allowed to use the entities of your programming language while implementing the logic and you don't have to care about how these are then translated into the relational model of database. This is the main advantage for me and that is why ORM is so popular -- you can develop a simple data-driven application in just a couple of hours.

So, ORM, as many other technologies like managed code, garbage collection, generics etc. is optimized for developer productivity, e.g. to minimize the number of developer hours (that are normally quite expensive) needed to implement certain functionality.

As long as you have other criteria that may override the above mentioned one, like performance, application size, flexibility of the logic, network throughput, code size (both of the source and compiled) ORM is not your friend anymore. But since this is not a common scenario people usually don't care and take ORM for their applications.


Tags: ,
Permalink | Comments (0) | Post RSSRSS comment feed
Comments are closed