3 Ideas on Refactoring

  Рет қаралды 11,669

Christopher Okhravi

Christopher Okhravi

3 ай бұрын

Nuggets from one of the most iconic programming books of all time.
🔥 Get the book! geni.us/k8KhT3

Пікірлер: 21
@lyonyan
@lyonyan 3 ай бұрын
Very good point about not doing premature optimization!
@nickbarton3191
@nickbarton3191 3 ай бұрын
The root of all evil - Donald Knuth said it first I think.
@franssu2229
@franssu2229 2 ай бұрын
He didn't talk about premature optimisation, but premature abstraction
@nickbarton3191
@nickbarton3191 2 ай бұрын
@@franssu2229 Good point.
@thundaGawd
@thundaGawd 3 ай бұрын
I will always remember this book, I didn't even know about it. Nor how much it would help me. It was laying outside a bookstore in Melvlille, Johannseburg, South Africa among a collection of books that the store was giving away. Once I started reading it, what a gem it was. Saw coding completely different.
@enowmbi2943
@enowmbi2943 2 ай бұрын
Your approach and energy are out of this world. Great content. Keep it up, sir.
@HerbertonCandidoSouza
@HerbertonCandidoSouza 2 ай бұрын
Your teaching is perfect... Congrats!!!!
@carnicer78
@carnicer78 2 ай бұрын
I'm crying. That's how I think and how I program. Flattered that Martin and you agree.
@rudreshgp
@rudreshgp 3 ай бұрын
My approach 1. KISS 2. SOLID principles 3. Gang of Four 4. Performance optimization
@StuartLoria
@StuartLoria 5 күн бұрын
The first rule is ignored by the smartest programmers and held by their egos and lust for speed.
@skipodap1
@skipodap1 3 ай бұрын
I might be wrong, but I think point #3 is actually from Tidy First by Kent Beck.
@ChristopherOkhravi
@ChristopherOkhravi 3 ай бұрын
You are right. It’s by Kent Beck. I explain it properly in the full video but couldn’t fit it into the short 😊😊 Thank you very much for the clarification nevertheless. Thanks for watching 😊
@ChristopherOkhravi
@ChristopherOkhravi 3 ай бұрын
Thanks for pointing out that it’s Tidy First btw! 🙏😊
@skipodap1
@skipodap1 3 ай бұрын
@@ChristopherOkhravi Thanks for the great content!
@fatihtt8102
@fatihtt8102 3 ай бұрын
I didn't quite understand the 3rd Point. What exactly does that mean, make the change easy, and then make the change?
@ChristopherOkhravi
@ChristopherOkhravi 3 ай бұрын
Check out the full video for a more complete explanation 😊 In short: Don’t spend time making a difficult change. Instead spend time refactoring to make the change easy and then make the change. 😊
@nickbarton3191
@nickbarton3191 3 ай бұрын
I started implementing a complex feature, was like wading through soup. Then I realised that it would be a whole lot easier if the architect (design pattern) was like so and so. Rolled back, started refactoring, made sure tests passed, then implemented the feature.
@fatihtt8102
@fatihtt8102 3 ай бұрын
In an older Codebase, you can't really refactor to make the changes easy, or at least it would take a lot of time and also would need a lot of testing. A lot of methods are private, so no Unittests for them.. But what I can take from this is before making the changes see if you can refactor the code to make it easier maintainable and then apply that code (eg method) in other locations where you use it aswell. 👍 Sadly we developers don't get payed for refactoring only for implementing the required changes/features. Noone cares how the Code looks.
@nickbarton3191
@nickbarton3191 3 ай бұрын
@@fatihtt8102 Be kind to the next guy, of course people care but not necessarily understand. I've been re-educating management for years. They will finally get it, especially when they see cost reductions. You'll be a hero and reap the rewards.
@7xBiox7
@7xBiox7 3 ай бұрын
Your contents helped me a lot in the past, and again excellent content!
@ChristopherOkhravi
@ChristopherOkhravi 3 ай бұрын
Happy to hear. Thank you 🙏😊
Always Use Interfaces
8:08
Christopher Okhravi
Рет қаралды 45 М.
Covariance and Contravariance
13:31
Christopher Okhravi
Рет қаралды 12 М.
That's how money comes into our family
00:14
Mamasoboliha
Рет қаралды 11 МЛН
How Senior Programmers ACTUALLY Write Code
13:37
Thriving Technologist
Рет қаралды 1,4 МЛН
The Most Legendary Programmers Of All Time
11:49
Aaron Jack
Рет қаралды 536 М.
Why I Quit the Scrum Alliance
7:58
The Passionate Programmer
Рет қаралды 12 М.
4 Billion If Statements | Prime Reacts
9:47
ThePrimeTime
Рет қаралды 603 М.
Depend on Abstractions not Concretions (Framework)
11:56
Christopher Okhravi
Рет қаралды 15 М.
5 Design Patterns That Are ACTUALLY Used By Developers
9:27
Alex Hyett
Рет қаралды 213 М.
7 Tips to Grow as a Developer
7:25
Christopher Okhravi
Рет қаралды 14 М.
Everything Starts with a Note-taking System
21:23
Mischa van den Burg
Рет қаралды 175 М.
3 Reasons WHY Waterfall Doesn't Work
11:30
Christopher Okhravi
Рет қаралды 4,6 М.
SOLID principles - write clean code in React.js app
4:08
moderndev
Рет қаралды 28 М.
That's how money comes into our family
00:14
Mamasoboliha
Рет қаралды 11 МЛН