SOLID Design Principles

A set of principles to help keep large object-oriented codebases understandable, maintainable, extensible and testable. Created by Robert C Martin in 2000 paper Design Principles and Design Patterns. https://web.archive.org/web/20150906155800/http:/www.objectmentor.com/resources/articles/Principles_and_Patterns.pdf Single Responsibility Principle (SRP) A class should have one and only one responsibility. All its methods and data should support that responsibility. Makes classes more focused,… Continue reading SOLID Design Principles

ping from a container without ping installed

Troubleshooting docker network issues can be a bit tricky, especially if your container is minimal (as it should be). If you don’t want to install ping then you can do the following: If you can’t connect with the hostname, remember to try with a FQDN or an IP to rule out DNS issues. Pretty fancy!

Graphics Drivers in Ubuntu 20.10

Ubuntu 20.10 has a nice new feature when it comes to managing graphics drivers. Use the following to see what drivers are available and which is recommended: Then if you are happy with the recommendation: It seems like a good idea to run this after every dist-upgrade.