Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Waarom ik geen if's meer schrijf

Waarom ik geen if's meer schrijf

Avatar for Kim Van Renterghem

Kim Van Renterghem

June 01, 2022
Tweet

More Decks by Kim Van Renterghem

Other Decks in Programming

Transcript

  1. Duplication You can describe the topic of the section here

    04 Problemen GoTo Paper You can describe the topic of the section here 01 Nested Ifs You can describe the topic of the section here 02 Open Closed You can describe the topic of the section here 05 Cognitive load You can describe the topic of the section here 03 Enums/boolean You can describe the topic of the section here 06
  2. Fizz Buzz Fizz buzz is a group word game for

    children to teach them about division. Players take turns to count incrementally, replacing any number divisible by three with the word "fizz", and any number divisible by five with the word "buzz".
  3. Object Transformatie Vaak worden veranderingen met booleans of state checks

    gedaan. Het is netter om object transformaties te werken
  4. This can be the part of the presentation where you

    can introduce yourself, write your own email…
  5. Maar met verschillende repos: factuur(voorstel, verstuurd, betaald) Status colum Beter

    is nog om verschillende entiten te maken want properties verschillen Tabelen Ook hier kan je een vertaling doen API? Je moet je repo als anti-corruptie zien ACL Hoe kunnen we dit door trekken?
  6. Door objecten te gebruiken steek je het gedrag samen Centraliseer

    Hierdoor kan je objecten met gerdag terug geven. Despite being red, Mars is a cold place, not hot. It’s full of iron oxide Gebruik Const MAIN PROBLEM Enum Class?
  7. Event Sourcing STRENGTHS WEAKNESSES • Only work with changes •

    Event driven • State en behavior is decopled • Easier to model transitions • Time is added • Versioning events! • It requires a lot of discipline from The team • Complexity in domain not in db
  8. Toegestaan? Vallidate inkomende data. Voor object creatie. Gardes Zijn een

    elegante vatiantie van een dixionary en returnen het resultaat Switch expresion Kortom de buitenkant van je applicatie. Omdat je niet altijd vrij bent om te modeleren ACL / Aplication laier