CodeX
Published in

CodeX

Why Getters & Setters Aren't OOP, Use This Technic Instead

How Yegor Bugayenko's concept of printers finally achieve proper OOP encapsulation

Getters and Setters are common practice but fundamentally against OOP.

Allen Holub describes how getters and setters make your code terrible for maintainability. He also states that this overall pattern…

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Arnold Abraham

Arnold Abraham

896 Followers

German software engineer who helps aspiring coders to learn software development enjoyably where fun & emotions come first to learn on the fly 😉 arnoldcode.com