Slide 1

Slide 1 text

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

Slide 84

Slide 84 text

Thanks! πŸ™Œ konradalfaro.com 🌍 8lines.team @alfaro_konrad