Write Stable Code using Coupling Metrics

preview_player
Показать описание
Are you tired of changing one part of a system, only to have another part break? Write stable code! Writing stable code can seem impossible. Trying to keep things from breaking can be a nightmare if you're unaware of how your system is coupled. Understanding Afferent & Efferent coupling can guide you into insights about your software architecture & design.

💥 Join this channel to get access to source code & demos!

🔥 Don't have the JOIN button? Support me on Patreon!

0:00 Intro
1:30 Afferent Coupling (Ca)
2:24 Efferent Coupling (Ce)
5:15 Instability
7:03 Onion Architecture

Рекомендации по теме
Комментарии
Автор

I have never seen anything like this before. Thanks for sharing!

coderanger
Автор

You can actually also apply those metrics to social contacts to figure out which of your friends are most likely to cause you drama. Not kidding.
Also, it's somewhat interesting to observe how over the years most of my social relationships emerged towards stability over versatility. Meaning I have a few good friends that I have "a more or less effrent coupling" on and anything outside that is basically irrelevant to/interchangeable without affecting my functionality.

OllyWood
Автор

Is there any visual studio extension or something like it, to calculate the stability ratio for each dependency? Many thanks for the explanation! Really awesome!

Dynamiclink
Автор

Hi Derek! I like your channel. I have a question about this topic. If you need implement a microservice architecture using the same example and every entity has its own bounded context, how do you break the dependencies at data model level? Considering a microservice has to be independent and autonomous.

marancibia
Автор

Great content, as always!
Actually, I'm already measuring the coupling of my microservices (seen as components) using this metric of "Instability" (thanks uncle Bob for providing such metrics). However, I'm struggling to apply the "Abstractness" metric in the context of microservices (I don't get the need for such metric for microservices).
Moreover, I have no idea on how to measure the internal cohesion of a service using traditional oop metrics such as LCOM for instance.
I'll be thankful if you have something to share about this :)

drissallaki
Автор

Where were you before I started my project?

bosypuspus
Автор

on x2 it seems that Mordin from mass effect is talking

yuuu__diii
Автор

Can you please share this coupling code with me..?

gauravimore
visit shbcf.ru