Write Stable Code using Coupling Metrics

  Рет қаралды 6,906

CodeOpinion

CodeOpinion

Күн бұрын

Пікірлер: 17
@coderanger75
@coderanger75 4 жыл бұрын
I have never seen anything like this before. Thanks for sharing!
@CodeOpinion
@CodeOpinion 4 жыл бұрын
Hope you find it applicable in your own project/systems.
@OllyWood688
@OllyWood688 4 жыл бұрын
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.
@Dynamiclink2
@Dynamiclink2 4 жыл бұрын
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!
@CodeOpinion
@CodeOpinion 4 жыл бұрын
I do believe VS has built-in code metrics and includes coupling at the class level: docs.microsoft.com/en-us/visualstudio/code-quality/code-metrics-class-coupling?view=vs-2019
@marancibia1971
@marancibia1971 3 жыл бұрын
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.
@CodeOpinion
@CodeOpinion 3 жыл бұрын
Not sure if you watched this video, I just posted it today: kzbin.info/www/bejne/aJiygKaqeq5nrLc
@drissallaki
@drissallaki 2 жыл бұрын
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 :)
@CodeOpinion
@CodeOpinion 2 жыл бұрын
Dependency on other boundaries. If you require data between boundaries would be an indication of lake of cohesion because of the coupling. Not exactly what you're asking but I think this video might give some insight: kzbin.info/www/bejne/q3y4g6N7ZpeAndE
@mateuszpachulski6211
@mateuszpachulski6211 Жыл бұрын
Love it ❤🎉❤
@bosypuspus
@bosypuspus 3 жыл бұрын
Where were you before I started my project?
@CodeOpinion
@CodeOpinion 3 жыл бұрын
Creating this video 😆
@gauravimore4362
@gauravimore4362 3 жыл бұрын
Can you please share this coupling code with me..?
@morgadoapi4431
@morgadoapi4431 3 жыл бұрын
If you have a solution with projects CRM, Sales, Shipping and Billing, then: - the Sales project will have a reference to CRM in the Dependencies - the Billing project will have a reference to Sales - the Shipping project will have a reference to Sales That's all. I hope that helps.
@yuuu__diii
@yuuu__diii Жыл бұрын
on x2 it seems that Mordin from mass effect is talking
REST APIs for Microservices? Beware!
11:49
CodeOpinion
Рет қаралды 49 М.
Sagas: Event Choreography & Orchestration (NServiceBus)
15:18
CodeOpinion
Рет қаралды 41 М.
Avoiding a Big Ball of Mud! Coupling in a Monolith
11:00
CodeOpinion
Рет қаралды 7 М.
AVOID Entity Services by Focusing on Capabilities
7:31
CodeOpinion
Рет қаралды 31 М.
Highly COHESIVE Software Design to tame Complexity
9:01
CodeOpinion
Рет қаралды 13 М.
SOLID Principles? Nope, just Coupling and Cohesion
13:56
CodeOpinion
Рет қаралды 34 М.
Cohesion and Coupling: Write BETTER PYTHON CODE Part 1
26:14
ArjanCodes
Рет қаралды 219 М.
Restructuring to a Vertical Slice Architecture
17:50
CodeOpinion
Рет қаралды 31 М.
How Senior Programmers ACTUALLY Write Code
13:37
Thriving Technologist
Рет қаралды 1,6 МЛН
Loose vs Tight Coupling
5:37
Scott Bailey
Рет қаралды 14 М.