Maximiliano Contieri
1 min readAug 25, 2020

--

auto generated and manually generated setters/getters cause issues.

Related to the color. Is that color essential to the object ?

  1. if it is then you should create a new one (functional way)
  2. if its accidental you could change that color (no set a color, change it) but this will bring ripple effect on all references to your objects

--

--

Maximiliano Contieri
Maximiliano Contieri

Written by Maximiliano Contieri

I’m a senior software engineer specialized in declarative designs. S.O.L.I.D. and agile methodologies fan. Maximilianocontieri.com

Responses (1)