--

state is always irrelevant as long as the behavior is expected.

If you change the side of a squeare, never a rectangle should be affected

Most people use ‘is a’ relation and this is wrong since it is coupled to accidental state.

A better definition is ‘behaves like’

--

--

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)