Loose & Tight Coupling: Why Code is Hard to Change

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

Bran van der Meer

Bran van der Meer

Күн бұрын

Пікірлер: 18
@KamalMettananda
@KamalMettananda 8 ай бұрын
One of the best videos to get a clear understanding about the big picture. Thanks a lot.
@tanzimchowdhury320
@tanzimchowdhury320 Жыл бұрын
Thank you Bran for your high-quality content :) Please keep making videos like these.
@santhoshninjakhan7880
@santhoshninjakhan7880 9 ай бұрын
This channel is gold mine for Developers thank you soo much! Please make more videos thanks once again for your valuable lessons to us
@bhbr-xb6po
@bhbr-xb6po 3 ай бұрын
5:00 (line 13) wouldn't "return x instanceof String" work as well?
@ericsiddiq7634
@ericsiddiq7634 Жыл бұрын
Excellent explanation ❤
@riquesse3185
@riquesse3185 5 ай бұрын
I'm a bit confused about why there is loose coupling between A and B in the example at 2:33. I thought there was no coupling between A and B since they are not dependent on each other. By the way, great video!
@andreyshedko6155
@andreyshedko6155 2 жыл бұрын
Would be nice to see similar videos about SOLID principles
@branvandermeer
@branvandermeer 2 жыл бұрын
Yes, they're in the planning!
@vinlandish555
@vinlandish555 7 ай бұрын
This was very useful!
@kozas0
@kozas0 2 жыл бұрын
I like how you mention "both sides of the story" at the end, and that if you add too many interfaces and decouple too much there might be consequences. I have seen that on a codebase with DI + interfaces for pretty much everything + multiple impementations, where the code was nearly untracable unless you used a debugger. DI is a great decoupling tool especially when you have a framework that supports it, like Spring or Angular, so you don't have to pass along objects all around your object graph just to feed them somewhere. Also worth mentioning imo is that in stable codebases (or even more in "legacy" ones) the general consensus is that you want to move as little parts as possible, and that kind of colludes with the idea to refactor a codebase to loose its coupling.
@branvandermeer
@branvandermeer Жыл бұрын
Adding too many interfaces and decoupling too much will usually lead to more complexity indeed. It's always a checks and balances game!
@oleksii_gozha
@oleksii_gozha Жыл бұрын
Thank you for high quality content. Could you share some thoughts on freelancing in very specific language ABAP for SAP. It is used in 90% of S&P firms and external people are quiet exensive. So I thought is would be a good idea to become also an external self employed Abap developer. On my Region every company is using German on documentation and on code itself (methods name for example ), so without German no other cheaper outsourced company can not provide service to them. What do you think about such unpopular languages (Abap , cobol) where there is some demand but there are almost no people ? O like your content
@branvandermeer
@branvandermeer Жыл бұрын
I'm not familiar with these languages, and such I can't really speak of it. You kind of answered your own question though: betting on specialising in only a very obscure language probably is a more risky career strategy. But if you develop broadly-applicable skills, that might lower the risk of not being able to find a job in the future.
@cidhighwind8590
@cidhighwind8590 Жыл бұрын
Great video. And cool shirt!
@justgame5508
@justgame5508 4 ай бұрын
There is a trade off though, make code bases too loosely coupled and you lose cohesion
@Aalii6
@Aalii6 4 ай бұрын
👍👍
@edgeeffect
@edgeeffect Жыл бұрын
Watching this on my phone with my old man's eyes.... the code examples are unreadable... a big chunky font or a zoomed in screen would be better... thanks.
@branvandermeer
@branvandermeer Жыл бұрын
Sorry! Unfortunately youtube does not allow changing video after the fact, so all I can recommend is reading the code on the gist, or re-watching on a desktop resolution. gist.github.com/branneman/584f31eb298751ca65b14220e7bb55ce
How I write High Quality Unit Tests
18:34
Bran van der Meer
Рет қаралды 2,7 М.
How To Reduce Coupling With Facade | Design Pattern Tutorial
28:29
SOLID Principles? Nope, just Coupling and Cohesion
13:56
CodeOpinion
Рет қаралды 34 М.
Dependency Injection, The Best Pattern
13:16
CodeAesthetic
Рет қаралды 898 М.
Coupling and Cohesion to Write BETTER C# CODE
17:19
Gui Ferreira
Рет қаралды 3,1 М.
Cohesion and Coupling: Write BETTER PYTHON CODE Part 1
26:14
ArjanCodes
Рет қаралды 218 М.
Dependency Injection, simplified
9:55
Bran van der Meer
Рет қаралды 4,5 М.
Coupling and Cohesion Explained
11:43
Gui Ferreira
Рет қаралды 7 М.
Why Can't We Make Simple Software? - Peter van Hardenberg
41:34
Handmade Cities
Рет қаралды 157 М.
Object-Oriented Programming is Bad
44:35
Brian Will
Рет қаралды 2,3 МЛН
Microservices are Technical Debt
31:59
NeetCodeIO
Рет қаралды 686 М.
Golang: The Last Interface Explanation You'll Ever Need
17:58
Flo Woelki
Рет қаралды 24 М.