Browse by Tags

More on generics and Inversion of Control
06 April 08 09:29 PM | andersnoras | 2 Comments   
My last post on Java generics and the Repository pattern got a bit of interest. Judging from the feedback I got, I feel the need to elaborate on the Inversion of Control part of this. As some readers pointed out, Google’s Guice container employes Read More...
Filed under: , ,
Generics, Inversion of Control and Repository<T>
03 April 08 07:32 AM | andersnoras | 4 Comments   
Whenever I stray off the beaten path of Java generics, I instantly miss C#’s generics implementation. Earlier today, Java’s type erasure erased a few good hours of productivity whilst I was doing a spike on bringing the IRepository<T> experience Read More...
Is it a bird? Is it a plane? It's a DSL!
15 July 07 06:11 AM | andersnoras | 7 Comments   
My latest posts on DSLs caused a bit of a stir around the blogosphere. Some of of the more constructive debates have been on wether a fluent interface is just a fluent interface or if it can be labeled as a DSL. I have a consultant's answer to this; it Read More...
Filed under: , , , ,
Behind the scenes of the planning DSL
09 July 07 10:54 PM | andersnoras | 28 Comments   
Last week I blogged about an embedded DSL for creating different calendar components like events and to do-tasks . For this post I'll let you in on some of the "secrets" of embedded DSL development in C#. Before we get started, let me refresh your memory Read More...
Filed under: , ,
I'm coming down with a serious case of the DSLs!
04 July 07 08:28 PM | andersnoras | 10 Comments   
Back in May chromatic published a tongue-in-cheek checklist to determine whether your code is a DSL or an API . Regular readers know that I've done quite a bit of fooling around with various embedded DSLs in Java and I assure you that getting serious Read More...
Filed under: , ,
IPoco?
03 July 07 04:52 AM | andersnoras | 3 Comments   
You've probably noticed by now that a new CTP of the Entity Framework has been released . One of the new features is oddly named IPOCO . This is supposedly a step towards persistence ignorance for users of the framework. While people are already having Read More...
Filed under: , ,
Source code for the Coho Light sample
01 May 07 06:57 PM | andersnoras | 1 Comments   
A while ago I posted a rant about software factories and maintainability . This post has grown popular, especially after Ayende refered to it in a post , and I have gotten quite a few requests to post the code for my alternative implementation of the Read More...
NHibernate: Mapping a Class to Several Tables
01 March 07 11:41 PM | andersnoras | 8 Comments   
In wake of the recent discussion on Microsoft's Entity Framework , mapping types to more than one table was an issue that came up. One of the central features in EDM is that you can map a type to any number of tables. If you're creating a new application, Read More...
Filed under:
Spanglish and other smells
19 February 07 05:25 AM | andersnoras | 0 Comments   
Have you ever experienced developers misunderstanding business domain specialists because their jargons are different? When the business and the developers talk past each other the project can suffer serious problems. This is why having a Ubiquitous Language Read More...
Filed under:
The forth era of Java, the second era of .NET
11 February 07 02:32 PM | andersnoras | 1 Comments   
Johannes Brodwall has written an excellent blog post on the history of Java . Whether you do Java development or not, the article is a great read and it will help clarify the missed history lesson I wrote about earlier. . "There are a few things you need Read More...
Filed under: ,
EDM: I'm not impressed either
11 February 07 07:25 AM | andersnoras | 2 Comments   
Hammett and Oren both posted about the ADO.NET Entity Framework this weekend. Go ahead can read Hammnett's "Is EDM the unlearned EJB lesson?" and Oren's follow up "Complex EDM" . I've had the unpleasant experience of working with the horribly broken architecture Read More...
Filed under:
Money Pattern: An introduction to Value Objects
30 January 07 06:09 AM | andersnoras | 4 Comments   
There is a saying that you can get away with just about any crime as long as you only commit it once. This is probably a hard-learned lesson for the Cobol developer employed by a major Norwegian bank back in the early nineties. He added a small “feature” Read More...
Filed under: