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