You HATE This Design Pattern But It Enables Refactoring!
January 1, 2024
• 1,147 views
singletonsingleton design patternsingleton patternsingleton c#design patternsc# singletonsingleton design pattern c# examplerefactoringlive refactoringsoftware craftsmanshiprefactoring legacy codelegacy systemsrefactoring legacy code javarefactoring martin fowlerwhat is refactoringrefactoring visual studiobe a better devc# global variablesglobal variablesstatic classesstatic class in csharpstatic class in c#static classes c#dotnet
In this video, I am going to show you how the design pattern that we all know and dislike can help us incrementally refactor usage of global static variables. I'll explain why this kind of usage is unsafe, why this pattern seems to work really well, and how we can move to dependency injection... All by taking small steps!
Have you subscribed to my weekly newsletter yet? A 5-minute read every weekend, right to your inbox, so you can start your weekend learning off strong:
https://subscribe.devle...
