{"title":"奥卡姆剃刀在面向对象建模中的应用","authors":"Alexander Pollok, A. Klöckner","doi":"10.1145/2904081.2904086","DOIUrl":null,"url":null,"abstract":"From the perspective of a practitioner, the development of perfect equation-based models is limited by language, hardware, and one's own mind. While the first two aspects are covered extensively in literature, only little attention has been given to the third one. We make a case for simple models, with a focus on two aspects: use of inheritance and creation of flexible models. Both can have adverse side-effects if used without restriction. To exemplify this discussion, two versions of a library as used in the aerospace industry are compared. The old version made heavy use of inheritance and tried to conduct everything with a minimal number of components. It was completely redesigned after maintenance efforts became too high. A psychological experiment was performed, where the effect of inheritance on the ability of participants to understand a model was analyzed. Results showed that each level of hierarchy significantly increases the time to understand a model by 26.65 s, when correcting for total model length. This supports our hypothesis that flat models are easier to understand than deeply nested models.","PeriodicalId":344062,"journal":{"name":"Proceedings of the 7th International Workshop on Equation-Based Object-Oriented Modeling Languages and Tools","volume":"1 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2016-04-18","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"4","resultStr":"{\"title\":\"The use of Ockham's Razor in object-oriented modeling\",\"authors\":\"Alexander Pollok, A. Klöckner\",\"doi\":\"10.1145/2904081.2904086\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"From the perspective of a practitioner, the development of perfect equation-based models is limited by language, hardware, and one's own mind. While the first two aspects are covered extensively in literature, only little attention has been given to the third one. We make a case for simple models, with a focus on two aspects: use of inheritance and creation of flexible models. Both can have adverse side-effects if used without restriction. To exemplify this discussion, two versions of a library as used in the aerospace industry are compared. The old version made heavy use of inheritance and tried to conduct everything with a minimal number of components. It was completely redesigned after maintenance efforts became too high. A psychological experiment was performed, where the effect of inheritance on the ability of participants to understand a model was analyzed. Results showed that each level of hierarchy significantly increases the time to understand a model by 26.65 s, when correcting for total model length. This supports our hypothesis that flat models are easier to understand than deeply nested models.\",\"PeriodicalId\":344062,\"journal\":{\"name\":\"Proceedings of the 7th International Workshop on Equation-Based Object-Oriented Modeling Languages and Tools\",\"volume\":\"1 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2016-04-18\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"4\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Proceedings of the 7th International Workshop on Equation-Based Object-Oriented Modeling Languages and Tools\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1145/2904081.2904086\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Proceedings of the 7th International Workshop on Equation-Based Object-Oriented Modeling Languages and Tools","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/2904081.2904086","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
The use of Ockham's Razor in object-oriented modeling
From the perspective of a practitioner, the development of perfect equation-based models is limited by language, hardware, and one's own mind. While the first two aspects are covered extensively in literature, only little attention has been given to the third one. We make a case for simple models, with a focus on two aspects: use of inheritance and creation of flexible models. Both can have adverse side-effects if used without restriction. To exemplify this discussion, two versions of a library as used in the aerospace industry are compared. The old version made heavy use of inheritance and tried to conduct everything with a minimal number of components. It was completely redesigned after maintenance efforts became too high. A psychological experiment was performed, where the effect of inheritance on the ability of participants to understand a model was analyzed. Results showed that each level of hierarchy significantly increases the time to understand a model by 26.65 s, when correcting for total model length. This supports our hypothesis that flat models are easier to understand than deeply nested models.