Programming

Two Environment Variables for More Robust R Code

Two Environment Variables for More Robust R Code

The good, the bad, and the ugly of R's typing system and how environment variables can remedy the situation.

0

R's type system is known to be flexible, which, at the same time makes the language very fragile. Luckily, there are environment variables that can make our code more robust. In this post, you will learn how to use two environment variables in order to prevent mistakes when dealing with conditionals and logical operators.

The SOLID Principles: a Guide for Object-Oriented Design

The SOLID Principles: a Guide for Object-Oriented Design

0

Writing high-quality software can be hard. Luckily, there are principles that can guide object-oriented software design such as the SOLID principles, which consist of the single-responsibility principle, the open-closed principle, the Liskov substitution principle, the interface segregation principle, and the dependency inversion principle. In this post, I give a short explanation of each principle and give practical examples of their application.