Domain-Driven Refactoring - Jimmy Bogard

  Рет қаралды 1,020

KanDDDinsky

KanDDDinsky

Күн бұрын

Books, workshops, storming and more, all build up an idealized domain model. All describe great techniques for domain-driven greenfield applications. But what about the code we have? How can we take what's already built, and move it towards a better, more cohesive design?
In this session, we'll look at anemic, procedural, boring code and examine code smells that can point us in the right direction. We'll also look at standard design patterns for more complex behaviors and models, and how to recognize when (and when not) to apply them. Finally, we'll cover how to safely apply refactoring techniques to achieve our domain-driven model nirvana.

Пікірлер: 3
@GintsPolis
@GintsPolis 9 ай бұрын
Do you think this code gets easer to read and will run faster, after changes made 19:35 and forward?
@balazs.hideghety
@balazs.hideghety 9 ай бұрын
It is. Extracting methods, and replacing the 3-5 line code with a meaningfully named function results later in much easier (and less) readability when we're looking for errors. But probably the biggest achievement is found when he makes members private and creates constructors for some of the objects and this place: kzbin.info/www/bejne/oYCWfX19l7ZmgKc - this part is extremely important, as until NumberOfActiveOffers is public and changeable from anywhere in the code, it's too easy for someone to mess up that data (same for the read-only list of AssignedOffers).
@GintsPolis
@GintsPolis 9 ай бұрын
@@balazs.hideghety that is done till 19:35. Further it gets more difficult to read.
Cute
00:16
Oyuncak Avı
Рет қаралды 12 МЛН
Officer Rabbit is so bad. He made Luffy deaf. #funny #supersiblings #comedy
00:18
Funny superhero siblings
Рет қаралды 7 МЛН
Domain-Driven Refactoring - Jimmy Bogard - NDC London 2022
1:00:03
NDC Conferences
Рет қаралды 45 М.
Is an ANEMIC Domain Model really that BAD?
10:36
CodeOpinion
Рет қаралды 18 М.
How To Use Domain-Driven Design In Clean Architecture
30:27
Milan Jovanović
Рет қаралды 108 М.
Learn How To Use Svelte 5 Snippets
17:41
Joy of Code
Рет қаралды 8 М.
Metaphors We Code By - Kevlin Henney
1:07:41
KanDDDinsky
Рет қаралды 765
Refactoring a React component - Design Patterns
15:19
Cosden Solutions
Рет қаралды 97 М.
Why Use Design Patterns When Python Has Functions?
23:23
ArjanCodes
Рет қаралды 106 М.
Being Competent With Coding Is More Fun
11:13
TheVimeagen
Рет қаралды 80 М.
Cute
00:16
Oyuncak Avı
Рет қаралды 12 МЛН