<p>I'm really interested to hear what you think about Model-driven Software Development for Java and/or .NET.</p>

<p>Does it save time? Does it improve quality?</p>

[{'answer_id': 70791, 'author': 'Maximilian', 'author_id': 1733, 'author_profile': 'https://Stackoverflow.com/users/1733', 'pm_score': 0, 'selected': False, 'text': '<p>It sure sounds nice but I have yet to see it implemented in a practially working way.</p>\n\n<p>I hold it like this: The Code is the model. That way your model and your code are always up to date :-)</p>\n'}, {'answer_id': 70810, 'author': 'Mendelt', 'author_id': 3320, 'author_profile': 'https://Stackoverflow.com/users/3320', 'pm_score': 3, 'selected': False, 'text': "<p>MDA is a bit of an overloaded concept. Sometimes it means turning UML or another type of diagrams in to executable code. I've never seen this work out well with the tools available nowadays. It usually causes projects to get results really fast and then cause a maintanance nightmare because the tools available don't really support big teams working on visual diagrams and because people start working in the diagrams as well as the generated code.</p>\n\n<p>I've seen something that looked a lot like domain driven design being referred to as MDA, if you mean that I'm all for it :-)</p>\n"}, {'answer_id': 155468, 'author': 'Lorenzo Boccaccia', 'author_id': 2273540, 'author_profile': 'https://Stackoverflow.com/users/2273540', 'pm_score': -1, 'selected': False, 'text': "<p>MDA usually make difficult to integrate the business rules inside the server side layer, as the model view mapping is handled by generated code and functional hooks are provided as event responders. </p>\n\n<p>Still I've not seen a MDA tool as powerful as Forté (or UDS, now dead) + Express were. I imagine that a MDA with the Forté capabilities plus better pattern to achieve an independent service layer (as ActiveRecord, or EntityTransactionManager patterns) would be a killer app for whatever platform.</p>\n\n<p>The problem with actual application aiming at the three tiered MDA approach is that those are terribly difficult to set up and adapt to specific requirements. Just think of ABAP and SAP rates</p>\n"}, {'answer_id': 155493, 'author': 'dacracot', 'author_id': 13930, 'author_profile': 'https://Stackoverflow.com/users/13930', 'pm_score': 1, 'selected': False, 'text': '<p>I think it preferable.  That is what I was trying to imply on <a href="https://stackoverflow.com/questions/140098/is-mvc-ars-preferable-to-classic-mvc-to-prevent-overloading">this question</a> about MVC-ARS rather than MVC.  The ARS (Action/Representation/State) is contained within the model by design and prevents the overloading of controller or view.</p>\n'}, {'answer_id': 277021, 'author': 'Ted Johnson', 'author_id': 30231, 'author_profile': 'https://Stackoverflow.com/users/30231', 'pm_score': 0, 'selected': False, 'text': "<p>Just to throw in two books I found useful in understanding MDA as stated above it is a broad subject.  </p>\n\n<ul>\n<li>MDA Distilled - Principles of Model-Driven Architecture. (Mellor)</li>\n<li>Real-life MDA: Solving Business Problems with Model Driven Architecture (Guttman)</li>\n</ul>\n\n<p>You don't need to read all of the Guttman to get the idea as the case studies get boring, but the intro was pleasant to read.</p>\n"}, {'answer_id': 277481, 'author': 'akuhn', 'author_id': 24468, 'author_profile': 'https://Stackoverflow.com/users/24468', 'pm_score': 2, 'selected': False, 'text': '<p>Buzz.</p>\n\n<p>What I believe in, OTOH, is modeling at runtime. Instead of generating code, keep the model alive at runtime and let your application be a runtime interpreter of these models.</p>\n\n<p>I dont know if this has been done for Java. For Smalltalk see <a href="http://www.lukas-renggli.ch/smalltalk/magritte" rel="nofollow noreferrer">Magritte</a>, which is used in Seaside.</p>\n'}, {'answer_id': 820359, 'author': 'Mark Dalgarno', 'author_id': 50140, 'author_profile': 'https://Stackoverflow.com/users/50140', 'pm_score': 1, 'selected': False, 'text': "<p>Model-Driven Software Development isn't just about MDA, there are a set of other approaches including the, perhaps more popular, Domain-Specific Languages approach.</p>\n\n<p>Sure, the code is 'a' model, but capturing a higher-level model in a DSL is an even more concise way of expressing the same intent. The key is to <strong>always</strong> generate your code from the model rather than allowing independent modification of generated code.</p>\n\n<p>There's plenty of tooling available, and plenty of published material, including case studies, to tell you how to build your own generators if you're not happy buying an off-the-shelf generator. Arguably this gives you more control than working with a general-purpose programming language.</p>\n"}, {'answer_id': 1041384, 'author': 'Roland', 'author_id': 124408, 'author_profile': 'https://Stackoverflow.com/users/124408', 'pm_score': 4, 'selected': True, 'text': '<p>I am using MDSD in a project with IBM Rational Rhapsody for C++. The model is pretty close to UML, so there we do not really have a Domain-Specific-Language. But still I would claim to use MDSD. From my experience, there are many benefits with MDSD:</p>\n\n<p>a) Using MDSD helps to bring a SW architecture to a sophisticated level. You always work on a very abstract level, thinking about the big picture. Cowboy coding software usually lacks a good architecture, because a developer is stuck in details. With MDSD, I see a tendency in my work, to solve problems with adequate sized classes, nice patterns, or simply better code.</p>\n\n<p>b) Big picture documentation of the SW tends to be better with MDSD. Of course, there are tools that automatically generate a class diagram out of your code. But these diagrams consists of 1000 classes and you do not see the aspect of interest. With MDSD, you specifically draw one aspect of the system, and the very same diagram is also used to generate a part of your code.</p>\n\n<p>c) Modelling helps to deal with an inherent system complexity. I would say, some systems are just too complex to be built without support from computer-aided design. Nobody would design a CPU without the help of huge SW tools. Use SW to help you write even more complex SW.</p>\n\n<p>d) Using MDSD helps to adhere to coding style guidelines. There is no better way to get coherent code style than letting the code be generated by a rule set.</p>\n\n<p>There are of course also some downsides of MDSD:\nd) If you have a model, you want every line of code to come from that model. And it may be difficult to include external libraries to a project. So either you live with the fact, that your system is based on external components or you reinvent the wheel to get it into your model.</p>\n\n<p>e) Modelling tools might suffer from problems using versioning tools. Source code is usually simpler to merge than a model diagram. This forces a team to move from the copy-edit-merge to a lock-edit-merge workflow.</p>\n'}]
['https://Stackoverflow.com/questions/70781', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/11562/']