Want to master Clean Architecture? Go here: bit.ly/3PupkOJ Want to unlock Modular Monoliths? Go here: bit.ly/3SXlzSt
@RaZziaN15 ай бұрын
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
@YehorBachurinDev5 ай бұрын
💀💀💀
@MilanJovanovicTech5 ай бұрын
Do you have a repository I can use as an example?
@jawadsrour84905 ай бұрын
You listened to me and did it! Man your the goat! Superb video💪🏻
@MilanJovanovicTech5 ай бұрын
Open for more ideas 😁
@jawadsrour84905 ай бұрын
@@MilanJovanovicTech connected on Linkedin, will send you good stuff there
@helen64005 ай бұрын
I love it. I definitely would like to see more refactoring videos. That will help a lot when doing my job. Thanks
@MilanJovanovicTech5 ай бұрын
More to come!
@JamesYGGoY5 ай бұрын
yeah, more of this please. this was good
@MilanJovanovicTech5 ай бұрын
Awesome, appreciate the feedback 👌
@MatheusLB20095 ай бұрын
I've been a huge fan of Switch Statements since 2017 and even I didn't know of those tricks. Kudos
@MilanJovanovicTech5 ай бұрын
Awesome 😁
@yuriy53764 ай бұрын
To be precise, these are switch expressions. Switch statements were used originally and then replaced by expressions.
@seefaros5 ай бұрын
Please make more video about refactoring :3
@MilanJovanovicTech5 ай бұрын
Noted!
@antonmartyniuk5 ай бұрын
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.
@MilanJovanovicTech5 ай бұрын
Something I try to do often. But the tricky part is not going overboard with refactoring.
@antonmartyniuk5 ай бұрын
@@MilanJovanovicTech 100% sure
@PierreM9704 ай бұрын
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...
@MilanJovanovicTech4 ай бұрын
Cool! I wasn't considering going down that path at all, but it can work.
@wilsonmori9495 ай бұрын
For a clearer explanation, you must activate the file selection in the solution explorer. Thank you so much for your explanation.
@MilanJovanovicTech5 ай бұрын
There was 6-8 files in total
@gustavoftrindade4 ай бұрын
Thank you so much for sharing 😃
@MilanJovanovicTech4 ай бұрын
Any time!
@sinthonseng5 ай бұрын
15:32 first time I have heard you laugh. 🤣🤣
@MilanJovanovicTech5 ай бұрын
I broke character 😂
@vukilesimelane20335 ай бұрын
This is soo good!! Thanks Milan
@MilanJovanovicTech5 ай бұрын
Glad you liked it 😁
@Shahed-Al-Mahmud5 ай бұрын
Please make more video about refactoring
@MilanJovanovicTech5 ай бұрын
Will do!
@ayasaber25675 ай бұрын
When I make Ctrl+. I don't find the option of 'convert to switch expression', any idea pls
@MilanJovanovicTech5 ай бұрын
Not sure. Not even when you hover over it with your mouse?
@ayasaber25675 ай бұрын
@@MilanJovanovicTech Yes, when I chose 'quick options and refactoring' nothing appeared, should I install NuGet package or something related?
@saveliebabaianu98885 ай бұрын
Hey Milan, can you make a video about how to identify the Bounded Contexts and how to structure the entities in microservices please?
@MilanJovanovicTech5 ай бұрын
Good suggestion
@abo14285 ай бұрын
Thank You Millan! 👏🏻
@MilanJovanovicTech5 ай бұрын
My pleasure!
@AlexxXRecorD5 ай бұрын
Thanks so much! Very interesting
@MilanJovanovicTech5 ай бұрын
Glad you enjoyed it!
@whosgotrythm5 ай бұрын
Thanks not enough videos of refactoring code.
@MilanJovanovicTech5 ай бұрын
Thank you, that's good feedback
@raycarlbrown-amory35095 ай бұрын
Really Really good video
@MilanJovanovicTech5 ай бұрын
Thanks a lot!
@RezaRajaei-lv9fs4 ай бұрын
Amazing
@MilanJovanovicTech4 ай бұрын
Ty
@DavidSmith-ef4eh5 ай бұрын
Enterprise solution scared me.
@MilanJovanovicTech5 ай бұрын
Try to refactor it 😁
@DavidSmith-ef4eh5 ай бұрын
@@MilanJovanovicTech nope. Even if you did it in a video, I'd probably be too scared to watch it.
@marvinxulu78165 ай бұрын
use generics on the next ep 🔥🔥🔥🔥
@MilanJovanovicTech5 ай бұрын
Where would they fit?
@marvinxulu78165 ай бұрын
@@MilanJovanovicTech refactor using Genetics ? or any example using genetics
@rafazieba99825 ай бұрын
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?
@MilanJovanovicTech5 ай бұрын
@@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.
@antonmartyniuk5 ай бұрын
"_..." 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
@rafazieba99825 ай бұрын
@@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.
@jchandra745 ай бұрын
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. 😊
@LilPozzer5 ай бұрын
Why do people keep calling it an enterprise lol, it's barely laboratory work 1 back in my university
@MilanJovanovicTech5 ай бұрын
Enterprising before it was cool
@CRBarchager5 ай бұрын
This is an excellent exercise for junior developers and a good way to show that there are never just 1 way of doing things.
@MilanJovanovicTech5 ай бұрын
Especially if you try all the refactoring katas in that repo