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. 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.

Getting Ionic framework up and running on Ubuntu 14.04

Ionic is a framework for hybrid or progressive mobile app development. Throw in electron and you can get a desktop app too! Note that this will only deal with android app development, there are likely many more steps involved with iOS. We need the following software setup – NodeJS – ionic is build using node.… Continue reading Getting Ionic framework up and running on Ubuntu 14.04