--

i will definitively add a "pros and cons" sections.

Nevertheless to check a permission i will not return a boolean

I will use polymorphism to execute the action with or without the permission.

If Removed. everybody happy

Solid's Open/Closed principle also honored

--

--

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)