Loquacious interfaces - an alternative to fluent chains

added by notherdev
2/24/2012 9:52:49 AM


The thing I'm most impressed with in NHibernate's mapping-by-code feature is its API design. Fabio Maulo, its creator, calls this a loquacious interface, as opposed to chained, fluent interface. It's an API intended to build complex structures in code that resembles the structure itself. I don't know any other projects using solely this kind of API either. But I think this is going to change soon, as Fabio's approach seems to be more powerful and in a lot of cases more readable and "fluent" than chained interfaces.


2/24/2012 9:52:50 AM
I'm also very impressed with how well the data-modeling in code goes with NH. I could see using that type of API for program configuration, even for creating complex processes from disparate systems and modules where a fluent approach won't quite cut it.