Nude Models - Part II : Getters

Written by mcsee | Published 2020/08/03
Tech Story Tags: software-engineering | solid-principles | software-development | programming | object-oriented-design | object-oriented | refactoring | coding | web-monetization

TLDR Nude Models - Part II : Getters are an established practice that generates many problems associated with the maintainability and evolution of software. In this second part we will reflect on the reading access of these objects. In the first part of this article, we showed the transition from hidden information in data structures towards living objects responsibilities (the essential what) hiding the implementation (the accidental how) Using getters expose the vertices collection (and since collections are passed by reference in most languages) we lose control over that collection.via the TL;DR App

no story

Written by mcsee | I’m a sr software engineer specialized in Clean Code, Design and TDD Book "Clean Code Cookbook" 500+ articles written
Published by HackerNoon on 2020/08/03