SlideShare uses cookies to improve functionality and performance, and to provide you with relevant advertising. If you continue browsing the site, you agree to the use of cookies on this website. See our User Agreement and Privacy Policy.
SlideShare uses cookies to improve functionality and performance, and to provide you with relevant advertising. If you continue browsing the site, you agree to the use of cookies on this website. See our Privacy Policy and User Agreement for details.
Successfully reported this slideshow.
Activate your 14 day free trial to unlock unlimited reading.
1.
Service
Objects
Evolution
by @andriymosin
1
01
Service Objects benefits
What we trying to solve
04 Existing realizations
Gems, best practices and
ideas
03 What we want
Unification, Validation,
Combinations, etc.
02 What we had
Pretty basic object
05 What we have for now
Our current realization
7.
next
Service
Unification
7
1. Same action method name in all service objects
2. Only one public method in object
3. Result should always be true || false
4. No ‘returns’ inside Service Objects