Finding Lost
Features
Konrad Alfaro @
How NOT to build mazes
and complexity
Entity
Controller
Service
CQRS
Slide 2
Slide 2 text
Who am I? π€
Backend Engineer with 8+ years of experience
π€
Solutions Architect & Consultant @ 8lines.team
π
Software Agencies, Product companies, Enterprises
π¨
Built 2 Startups (and failed)
π°
8lines.team
Slide 3
Slide 3 text
8lines.team
Scenario π¬
Slide 4
Slide 4 text
8lines.team
β’ Given the system is a CRM system with
Documents and Clients module
β’ Given the resources in the CRM system are
mostly CRUDs
β’ Given the system is going to be used very
infrequently by limited amount of users
Slide 5
Slide 5 text
8lines.team
β’ When we to add an electronic signature process
to our Document resource
Slide 6
Slide 6 text
8lines.team
Thenβ¦
Slide 7
Slide 7 text
8lines.team
I donβt know where to start π±
Slide 8
Slide 8 text
No content
Slide 9
Slide 9 text
Whatβs the most important in
Software Development?
8lines.team
Slide 10
Slide 10 text
Framework!
8lines.team
Slide 11
Slide 11 text
No content
Slide 12
Slide 12 text
βLaravel wayβ π§
8lines.team
Slide 13
Slide 13 text
No content
Slide 14
Slide 14 text
No content
Slide 15
Slide 15 text
No content
Slide 16
Slide 16 text
βSymfony wayβ π»
8lines.team
Slide 17
Slide 17 text
No content
Slide 18
Slide 18 text
No content
Slide 19
Slide 19 text
No content
Slide 20
Slide 20 text
8lines.team
Slide 21
Slide 21 text
Controller
Slide 22
Slide 22 text
Service
Slide 23
Slide 23 text
Event Listener
Slide 24
Slide 24 text
8lines.team
Slide 25
Slide 25 text
No content
Slide 26
Slide 26 text
Pros β
8lines.team
Slide 27
Slide 27 text
8lines.team
β We comply with the Framework
β We follow standardised rules
β We (should) deliver fast
β It is good enough
Slide 28
Slide 28 text
Drawbacks β
8lines.team
Slide 29
Slide 29 text
8lines.team
β We hide business logic behind Framework
concepts and rules
β We couple our business logic strictly with
β¨
the Framework
Slide 30
Slide 30 text
8lines.team
Takeaways π
Slide 31
Slide 31 text
Framework is not your friend,
itβs just a tool you can use
8lines.team
Slide 32
Slide 32 text
8lines.team
Itβs too hard to
f
ind anything π
Slide 33
Slide 33 text
8lines.team
Slide 34
Slide 34 text
DDD
8lines.io
Psst, hey you kids.
Wanna build some Domain
Aggregates?
Slide 35
Slide 35 text
Directory Driven Design
8lines.team
Slide 36
Slide 36 text
8lines.team
Slide 37
Slide 37 text
Command Handler
Slide 38
Slide 38 text
8lines.team
Message Handler
Slide 39
Slide 39 text
Pros β
8lines.team
Slide 40
Slide 40 text
8lines.team
β We think about our business Domain
β We have better separation of concerns
Slide 41
Slide 41 text
Drawbacks β
8lines.team
Slide 42
Slide 42 text
8lines.team
β We introduce a lot of (most likely) unnecessary
complexity - it is just a CRUD!
β We like to implement new patterns just after one
conference talk π
Slide 43
Slide 43 text
8lines.team
Slide 44
Slide 44 text
Takeaways π
8lines.team
Slide 45
Slide 45 text
8lines.team
Donβt be an immature developer
Pick proper solutions to your problems
Slide 46
Slide 46 text
8lines.team
You donβt work at Facebook* π
* - Unless you do π
Slide 47
Slide 47 text
8lines.team
Slide 48
Slide 48 text
Repository overview
Slide 49
Slide 49 text
No content
Slide 50
Slide 50 text
Pros β
8lines.team
Slide 51
Slide 51 text
8lines.team
Slide 52
Slide 52 text
8lines.team
β’ Given the system is a CRM system with
Documents and Clients module
β’ Given the resources in the CRM system are
mostly CRUDs
β’ Given the system is going to be used very
infrequently by limited amount of users
Slide 53
Slide 53 text
8lines.team
β’ Given the system is a CRM system with
Documents and Clients module
β’ Given the resources in the CRM system are
mostly CRUDs
β’ Given the system is going to be used very
infrequently by limited amount of users
Slide 54
Slide 54 text
Cons β
8lines.team
Slide 55
Slide 55 text
8lines.team
β Hard to implement and maintain
β We introduce a lot of complexity
Slide 56
Slide 56 text
8lines.team
Slide 57
Slide 57 text
Takeaways π
8lines.team
Slide 58
Slide 58 text
Find fun π’ in building solutions,
Instead of trying a new frameworks
8lines.team
Slide 59
Slide 59 text
8lines.io
Slide 60
Slide 60 text
There is hope!
8lines.team
Slide 61
Slide 61 text
No content
Slide 62
Slide 62 text
No content
Slide 63
Slide 63 text
No content
Slide 64
Slide 64 text
Processor
Slide 65
Slide 65 text
Modi
f
ier
Slide 66
Slide 66 text
Modi
f
ier
Slide 67
Slide 67 text
Modi
f
ier
Slide 68
Slide 68 text
Action
Slide 69
Slide 69 text
No content
Slide 70
Slide 70 text
No content
Slide 71
Slide 71 text
No content
Slide 72
Slide 72 text
No content
Slide 73
Slide 73 text
No content
Slide 74
Slide 74 text
Infrastructure
Slide 75
Slide 75 text
Drawbacks β
8lines.team
Slide 76
Slide 76 text
8lines.team
β This is not a Domain-Driven approach
β It is not suitable for large and complex systems
Slide 77
Slide 77 text
Pros β
8lines.team
Slide 78
Slide 78 text
8lines.team
β We introduce separation of business concerns
β We donβt required everyone to be a DDD expert
β We deliver fast features using suitable concepts
Slide 79
Slide 79 text
8lines.team
β’ Given the system is a CRM system with
Documents and Clients module
β’ Given the resources in the CRM system are
mostly CRUDs
β’ Given the system is going to be used very
infrequently by limited amount of users
Slide 80
Slide 80 text
8lines.team
β’ Given the system is a CRM system with
Documents and Clients module
β’ Given the resources in the CRM system are
mostly CRUDs
β’ Given the system is going to be used very
infrequently by limited amount of users
Slide 81
Slide 81 text
Takeaways π
8lines.team
Slide 82
Slide 82 text
Make your systems yours
8lines.team
Slide 83
Slide 83 text
8lines.team
β Framework is not your friend
β Donβt be immature and hype-driven
β Build solutions, not personal playgrounds
β Make your systems readable for you