{"id":{"repo_id":"vilnius","oai_identifier":"oai:vu.lt:elaba:308339237"},"canonical_url":"https://search.ndltd.org/etd/vilnius/oai:vu.lt:elaba:308339237","repository":{"repo_id":"vilnius","name":"Vilnius University","base_url":"https://epublications.vu.lt/oai"},"display":{"title":"Evaluating rich domain model impact on software maintainability /","abstract":"The design approach adopted when building a software system significantly influences its maintainability. Two widely used approaches - the anemic domain model (ADM) and the rich domain model (RDM) - differ fundamentally in how business logic is structured within the codebase. Despite this, empirical comparisons between them are scarce and methodologically limited, typically evaluating only a single maintainability dimension at a fixed point in time, without tracking how differences develop as the system evolves. This thesis evaluates the impact of ADM and RDM on software maintainability through a controlled experiment. Two functionally equivalent C# backend implementations of an order management system were constructed - one following ADM, one following RDM using Domain-Driven Design (DDD) tactical patterns - and evolved through four sequential business rule scenarios: a discount system, order cancellation rules, refund functionality, and tax calculation. Maintainability was assessed using a two-phase measurement framework: structural metrics (lines of code, number of classes, cyclomatic complexity, coupling between objects, and lack of cohesion of methods) measured at five points across both implementations, and evolution metrics (modification scope and net code line changes) measured per scenario. The results show that neither approach is uniformly superior. RDM exhibited better average cohesion throughout the experiment, but this advantage diminished from -36.8% at baseline to -7.1% after the final scenario. RDM consistently showed higher average coupling, contrary to theoretical predictions, and evolution metrics did not support the hypothesis that RDM requires fewer modifications per change. The thesis concludes that RDM is the more appropriate choice for behaviour-rich domains with intricate lifecycle logic and significant expected growth, while ADM is more suitable for simpler domains, early-phase projects, or teams unfamiliar with DDD patterns.","abstract_html":"The design approach adopted when building a software system significantly influences its maintainability. Two widely used approaches - the anemic domain model (ADM) and the rich domain model (RDM) - differ fundamentally in how business logic is structured within the codebase. Despite this, empirical comparisons between them are scarce and methodologically limited, typically evaluating only a single maintainability dimension at a fixed point in time, without tracking how differences develop as the system evolves. This thesis evaluates the impact of ADM and RDM on software maintainability through a controlled experiment. Two functionally equivalent C# backend implementations of an order management system were constructed - one following ADM, one following RDM using Domain-Driven Design (DDD) tactical patterns - and evolved through four sequential business rule scenarios: a discount system, order cancellation rules, refund functionality, and tax calculation. Maintainability was assessed using a two-phase measurement framework: structural metrics (lines of code, number of classes, cyclomatic complexity, coupling between objects, and lack of cohesion of methods) measured at five points across both implementations, and evolution metrics (modification scope and net code line changes) measured per scenario. The results show that neither approach is uniformly superior. RDM exhibited better average cohesion throughout the experiment, but this advantage diminished from -36.8% at baseline to -7.1% after the final scenario. RDM consistently showed higher average coupling, contrary to theoretical predictions, and evolution metrics did not support the hypothesis that RDM requires fewer modifications per change. The thesis concludes that RDM is the more appropriate choice for behaviour-rich domains with intricate lifecycle logic and significant expected growth, while ADM is more suitable for simpler domains, early-phase projects, or teams unfamiliar with DDD patterns.","abstract_has_math":false,"creators":["Wilkialis, Linas,"],"institution":"Institutional Repository of Vilnius University","degree_name":null,"degree_level":null,"degree_discipline":null,"degree_department":null,"school":null,"contributors":[],"advisors":[],"committee_chairs":[],"committee_members":[],"year":2026,"date_issued":"2026","date_published":"2026","updated_at":"2026-11-19T10:12:59Z","subjects":["programinės įrangos palaikomumas, anemiškas dalykinės srities modelis, turtingas dalykinės srities modelis, dalykinės srities modeliu grįstu projektavimas, programinės įrangos matai software maintainability, anemic domain model, rich domain model, domain-driven design, software metrics"],"languages":["eng"],"rights":["info:eu-repo/semantics/openAccess"],"rights_urls":[],"identifier_entries":[],"person_identifier_entries":[]},"links":{"outbound_url":"https://repository.vu.lt/VU:ELABAETD308339237&prefLang=en_US","outbound_label":"Repository record","outbound_source":"dc:identifier","record_url":"https://repository.vu.lt/VU:ELABAETD308339237&prefLang=en_US","record_label":"Repository record","record_kind":"record","record_source":"dc:identifier","download_url":null,"download_label":null,"download_source":null,"access_status":"open","embargo_until":null,"access_note":null},"source_record":{"url":"https://epublications.vu.lt/oai?verb=GetRecord&metadataPrefix=oai_dc&identifier=oai%3Avu.lt%3Aelaba%3A308339237","prefix":"oai_dc"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:creator","label":"Author","values":["Wilkialis, Linas,"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date","label":"Dc Date","values":["2026"]},{"key":"dc:publisher","label":"Institution","values":["Institutional Repository of Vilnius University"]},{"key":"dc:relation","label":"Dc Relation","values":["https://epublications.vu.lt/object/elaba:308339237/308339237.pdf"]},{"key":"dc:type","label":"Dc Type","values":["info:eu-repo/semantics/bachelorThesis"]}]},{"id":"subjects_keywords","label":"Subjects and Keywords","entries":[{"key":"dc:subject","label":"Dc Subject","values":["programinės įrangos palaikomumas, anemiškas dalykinės srities modelis, turtingas dalykinės srities modelis, dalykinės srities modeliu grįstu projektavimas, programinės įrangos matai software maintainability, anemic domain model, rich domain model, domain-driven design, software metrics"]}]},{"id":"language_rights","label":"Language and Rights","entries":[{"key":"dc:language","label":"Dc Language","values":["eng"]},{"key":"dc:rights","label":"Dc Rights","values":["info:eu-repo/semantics/openAccess"]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier","label":"Identifier","values":["https://repository.vu.lt/VU:ELABAETD308339237&prefLang=en_US"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description","label":"Description","values":["The design approach adopted when building a software system significantly influences its maintainability. Two widely used approaches - the anemic domain model (ADM) and the rich domain model (RDM) - differ fundamentally in how business logic is structured within the codebase. Despite this, empirical comparisons between them are scarce and methodologically limited, typically evaluating only a single maintainability dimension at a fixed point in time, without tracking how differences develop as the system evolves. This thesis evaluates the impact of ADM and RDM on software maintainability through a controlled experiment. Two functionally equivalent C# backend implementations of an order management system were constructed - one following ADM, one following RDM using Domain-Driven Design (DDD) tactical patterns - and evolved through four sequential business rule scenarios: a discount system, order cancellation rules, refund functionality, and tax calculation. Maintainability was assessed using a two-phase measurement framework: structural metrics (lines of code, number of classes, cyclomatic complexity, coupling between objects, and lack of cohesion of methods) measured at five points across both implementations, and evolution metrics (modification scope and net code line changes) measured per scenario. The results show that neither approach is uniformly superior. RDM exhibited better average cohesion throughout the experiment, but this advantage diminished from -36.8% at baseline to -7.1% after the final scenario. RDM consistently showed higher average coupling, contrary to theoretical predictions, and evolution metrics did not support the hypothesis that RDM requires fewer modifications per change. The thesis concludes that RDM is the more appropriate choice for behaviour-rich domains with intricate lifecycle logic and significant expected growth, while ADM is more suitable for simpler domains, early-phase projects, or teams unfamiliar with DDD patterns."]},{"key":"dc:format","label":"Dc Format","values":["application/pdf"]},{"key":"dc:title","label":"Title","values":["Evaluating rich domain model impact on software maintainability /","Turtingo dalykinės srities modelio poveikio programinės įrangos palaikomumui vertinimas."]}]}],"canonical_facts":{"dc:creator":["Wilkialis, Linas,"],"dc:date":["2026"],"dc:description":["The design approach adopted when building a software system significantly influences its maintainability. Two widely used approaches - the anemic domain model (ADM) and the rich domain model (RDM) - differ fundamentally in how business logic is structured within the codebase. Despite this, empirical comparisons between them are scarce and methodologically limited, typically evaluating only a single maintainability dimension at a fixed point in time, without tracking how differences develop as the system evolves. This thesis evaluates the impact of ADM and RDM on software maintainability through a controlled experiment. Two functionally equivalent C# backend implementations of an order management system were constructed - one following ADM, one following RDM using Domain-Driven Design (DDD) tactical patterns - and evolved through four sequential business rule scenarios: a discount system, order cancellation rules, refund functionality, and tax calculation. Maintainability was assessed using a two-phase measurement framework: structural metrics (lines of code, number of classes, cyclomatic complexity, coupling between objects, and lack of cohesion of methods) measured at five points across both implementations, and evolution metrics (modification scope and net code line changes) measured per scenario. The results show that neither approach is uniformly superior. RDM exhibited better average cohesion throughout the experiment, but this advantage diminished from -36.8% at baseline to -7.1% after the final scenario. RDM consistently showed higher average coupling, contrary to theoretical predictions, and evolution metrics did not support the hypothesis that RDM requires fewer modifications per change. The thesis concludes that RDM is the more appropriate choice for behaviour-rich domains with intricate lifecycle logic and significant expected growth, while ADM is more suitable for simpler domains, early-phase projects, or teams unfamiliar with DDD patterns."],"dc:format":["application/pdf"],"dc:identifier":["https://repository.vu.lt/VU:ELABAETD308339237&prefLang=en_US"],"dc:language":["eng"],"dc:publisher":["Institutional Repository of Vilnius University"],"dc:relation":["https://epublications.vu.lt/object/elaba:308339237/308339237.pdf"],"dc:rights":["info:eu-repo/semantics/openAccess"],"dc:subject":["programinės įrangos palaikomumas, anemiškas dalykinės srities modelis, turtingas dalykinės srities modelis, dalykinės srities modeliu grįstu projektavimas, programinės įrangos matai software maintainability, anemic domain model, rich domain model, domain-driven design, software metrics"],"dc:title":["Evaluating rich domain model impact on software maintainability /","Turtingo dalykinės srities modelio poveikio programinės įrangos palaikomumui vertinimas."],"dc:type":["info:eu-repo/semantics/bachelorThesis"]},"updated_at":"2026-11-19T10:12:59Z"}