Topalov Alex 2016
duplication is far cheaper than the wrong abstraction
- Sandi Metz. RailsConf 2014
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
- Andy Hunt and Dave Thomas.
1. Unreasonable expectations because of tight budget or else
1. Unreasonable expectations because of tight budget or else.
Solution: Try to at least squeeze some integration testing or(and!) re-write in a future completely.
1. Unreasonable expectations because of tight budget or else.
Solution: Try to at least squeeze some integration testing or(and!) re-write in a future completely.
2. Lack of application design understanding.
Solutions:
Solutions:
1. Interactor
2. Light-service
3. Custom/Own
Delegate tasks to Strategy objects which have same interface
Rails concerns or non-rails.
Idea is to encapsulate logic around some functionality that used only in one context.
12. Factory
13. Abstract Factory
14. Proxy
15. Command
16. Iterator
17. Builder
18. Singleton
19. Interpreter
20. etc
Symptomps:
Treatment:
Symptomps:
Treatment: