Want to master Clean Architecture? Go here: bit.ly/3PupkOJ Want to unlock Modular Monoliths? Go here: bit.ly/3SXlzSt
@RaZziaN1Ай бұрын
Really good video, you should keep going with videos like this. Especially how to unmess this e-commerce enterprise mess, it happened many times while working as programmer
@YehorBachurinDevАй бұрын
💀💀💀
@MilanJovanovicTechАй бұрын
Do you have a repository I can use as an example?
@jawadsrour8490Ай бұрын
You listened to me and did it! Man your the goat! Superb video💪🏻
@MilanJovanovicTechАй бұрын
Open for more ideas 😁
@jawadsrour8490Ай бұрын
@@MilanJovanovicTech connected on Linkedin, will send you good stuff there
@helen6400Ай бұрын
I love it. I definitely would like to see more refactoring videos. That will help a lot when doing my job. Thanks
@MilanJovanovicTechАй бұрын
More to come!
@JamesYGGoYАй бұрын
yeah, more of this please. this was good
@MilanJovanovicTechАй бұрын
Awesome, appreciate the feedback 👌
@gustavoftrindade17 сағат бұрын
Thank you so much for sharing 😃
@MilanJovanovicTech13 сағат бұрын
Any time!
@PierreM9705 күн бұрын
Cool. What I would personally first do is write a Player class (a prop for Score, an WinPoint method and a WonPoint event). Then remove the WonPoint method from the tennis game interface (what if the given string does not match any players names?) and add instead 2 TennisPlayer props. The implementation of the interface can then become even more meaningful...
@MilanJovanovicTech5 күн бұрын
Cool! I wasn't considering going down that path at all, but it can work.
@MatheusLB2009Ай бұрын
I've been a huge fan of Switch Statements since 2017 and even I didn't know of those tricks. Kudos
@MilanJovanovicTechАй бұрын
Awesome 😁
@yuriy537618 күн бұрын
To be precise, these are switch expressions. Switch statements were used originally and then replaced by expressions.
@wilsonmori949Ай бұрын
For a clearer explanation, you must activate the file selection in the solution explorer. Thank you so much for your explanation.
@MilanJovanovicTechАй бұрын
There was 6-8 files in total
@seefarosАй бұрын
Please make more video about refactoring :3
@MilanJovanovicTechАй бұрын
Noted!
@antonmartyniukАй бұрын
Nice video. Many years ago I was doing one type of refactoring quite often. Some time later, when I was learning the essentials of software architecture, I found out how this refactoring pattern is called - Boy Scout Rule. It says thay you should leave the code better than you found it.
@MilanJovanovicTechАй бұрын
Something I try to do often. But the tricky part is not going overboard with refactoring.
@antonmartyniukАй бұрын
@@MilanJovanovicTech 100% sure
@abo1428Ай бұрын
Thank You Millan! 👏🏻
@MilanJovanovicTechАй бұрын
My pleasure!
@RezaRajaei-lv9fs2 күн бұрын
Amazing
@MilanJovanovicTech2 күн бұрын
Ty
@vukilesimelane2033Ай бұрын
This is soo good!! Thanks Milan
@MilanJovanovicTechАй бұрын
Glad you liked it 😁
@saveliebabaianu9888Ай бұрын
Hey Milan, can you make a video about how to identify the Bounded Contexts and how to structure the entities in microservices please?
@MilanJovanovicTechАй бұрын
Good suggestion
@CRBarchagerАй бұрын
This is an excellent exercise for junior developers and a good way to show that there are never just 1 way of doing things.
@MilanJovanovicTechАй бұрын
Especially if you try all the refactoring katas in that repo
@AlexxXRecorDАй бұрын
Thanks so much! Very interesting
@MilanJovanovicTechАй бұрын
Glad you enjoyed it!
@ShahedAlMahmudMoniАй бұрын
Please make more video about refactoring
@MilanJovanovicTechАй бұрын
Will do!
@sinthonseng8981Ай бұрын
15:32 first time I have heard you laugh. 🤣🤣
@MilanJovanovicTechАй бұрын
I broke character 😂
@raycarlbrown-amory3509Ай бұрын
Really Really good video
@MilanJovanovicTechАй бұрын
Thanks a lot!
@whosgotrythmАй бұрын
Thanks not enough videos of refactoring code.
@MilanJovanovicTechАй бұрын
Thank you, that's good feedback
@marvinxulu7816Ай бұрын
use generics on the next ep 🔥🔥🔥🔥
@MilanJovanovicTechАй бұрын
Where would they fit?
@marvinxulu7816Ай бұрын
@@MilanJovanovicTech refactor using Genetics ? or any example using genetics
@ayasaber256728 күн бұрын
When I make Ctrl+. I don't find the option of 'convert to switch expression', any idea pls
@MilanJovanovicTech28 күн бұрын
Not sure. Not even when you hover over it with your mouse?
@ayasaber256728 күн бұрын
@@MilanJovanovicTech Yes, when I chose 'quick options and refactoring' nothing appeared, should I install NuGet package or something related?
@DavidSmith-ef4ehАй бұрын
Enterprise solution scared me.
@MilanJovanovicTechАй бұрын
Try to refactor it 😁
@DavidSmith-ef4ehАй бұрын
@@MilanJovanovicTech nope. Even if you did it in a video, I'd probably be too scared to watch it.
@rafazieba9982Ай бұрын
1) Stop using Hungarian Notation. Both "m_..." and "_..." are Hungarian notation. If you want to show that something is a private field use "this.variableName". 2) By adding the default case you changed the behavior. 3) What would be your name for the constant equal to "-1" and how would it help you understand what it does?
@MilanJovanovicTechАй бұрын
@@rafazieba9982 1) No thanks, I like my style. 2) True, acceptable for me. 3) We're not looking at the shortcomings of the implementation here (and there are many), as I didn't write the original code.
@antonmartyniukАй бұрын
"_..." notation for naming private variables is a standard that is used by Microsoft, you even have built-in analyzer in the IDE that suggest using this notation
@rafazieba9982Ай бұрын
@@antonmartyniuk Microsoft switched from leading underscore to no prefix some time ago. Microsoft doesn't always follow its own advice. Check the IDE options. You can chose between underscore and no prefix. Use .editorconfig file to promote single code guidelines to whole repository.
@jchandra74Ай бұрын
If I need to depends on ceremony, I rather have one that is shorter. Therefore, _ is shorter than this. It's a known convention and it met my laziness and requirement. 😊
@LilPozzerАй бұрын
Why do people keep calling it an enterprise lol, it's barely laboratory work 1 back in my university