Frans Bouma (founder/developer of LLBLGen) “discovers” Quino
Published by marco on
Encodo Systems AG started work on its metadata framework Quino in late 2007. We’ve used it successfully in many projects, from Windows desktop applications to standalone servers, Windows services and web sites. It has grown considerably since its inception and the core concept of keeping the focus of an application on its metadata has stood the test of time quite well.
The recent article Code-first O/R mapping is actually rather silly by Frans Bouma recounts how the lead developer and architect of another popular ORM LLBLGen Pro, has also recently “discovered” the benefits of the metadata-first approach.
“Starting with code in the form of entity classes is equally odd as starting with a table: they both require reverse engineering to the abstract entity definition to create the element ‘on the other side’: reverse engineer[ing] the class to the abstract entity definition to create a table and the mappings is equal to reverse engineering a table to a class and create the mappings. [T]he core issue is that if you start with a class or a table, you start with the end result of a projection of an abstract entity definition […]
“What if that abstract entity definition which was used to create the class or table was in a model which contained all of the domain types for the domain used in the software to build? […] it would give a couple of benefits: you can create overviews of the model and more importantly, changes in the domain can be applied directly into the model which then ripple through to classes and tables in the right form […] (Emphasis added.)”
He describes the core tenets of Quino rather well: starting with the metadata avoids diluting the domain model with the limitations of a projection domain (classes, tables, etc.). This has been borne out by our experience working in exactly this manner for the last several years.
The ORM in Quino is only a satellite component that leverages the centrally defined metadata just as many other components do. The programmer defines the metadata of the domain model and Quino provides tools to do many tasks automatically:
- Create or update a database schema
- Select/create/update/delete data in one or more databases
- Generate standardized user interfaces for multiple platforms
- Integrate with reporting engines and designers
- Generate UML diagrams
- …and much more…
I heartily encourage Frans to continue thinking in this direction. He will be rewarded greatly for it.