The right tool for the job

Don’t be that guy that dismisses singletons just because the internet told you to. Every design pattern and anti-pattern has its place in software development. Static global classes and singletons can be more performant than more complex patterns like service locators and event systems. All tools can be abused. If you are building a desk…

Error Handling

A program should only hard crash if you want it to. Whilst we don’t want to be wrapping try catches around everything if you feel there is a place in your code that could throw an exception, it is a good idea to handle it yourself using a try/catch or some other bespoke solution, It…