Home
Objectively Disorienting Language
Cancel

more const

As I was trying to understand myself due to multiple ways a const might exist in code, I have found one neat little tip I found regarding const that helps us identify what that const means. I found...

const in parameters

There is a concept in C++ known as top-level and low-level const. Top-level const indicates that the pointer itself is a const. Low-level const indicates that the pointer is pointing to a const o...

Namespace

:: is known as a scope operator in C++. It tells the codes to look at the scope of the left-hand operand for the name of the right-hand operand. For example, std::cout would say that we want to use...

Advent of Code 2021

Advent of Code Ever since I’ve known about Advent of Code, I always get pretty excited to do my best tackling it comes December. This year is no different! Even though I may not always finish them...

Class inheritance

Class inheritance is an important subject to understand when it comes to objected oriented programming. It is the basis in which we can code as little as possible yet still have it contain as much ...

Lambda madness

A little while back, I have encountered something rather interesting with regards to Python’s lambda. I searched around online and found other people with similar issues such as this one What do (l...

Using python's "with" statement

Recently, I have learned about the usage of with statement in python. It has some pretty interesting properties in the sense that it can be nicely used for contextual purposes. Acting very similarl...

The power of partial

A little something that I have learned when making a PySide widget at work is the usage of functools’ partial. My most basic understanding of this is that it helps passes parameters to a function. ...

Basic unit testing

Today I have begun learning and writing unit tests for some updates I have made to existing python functions. The idea of the unit test is to make sure the updated python modules/functions/classes ...

Hello world

Hello world! I would like to start posting here on programming topics I am learning as a newly minted software engineer! I hope to make this a nice repository of Python and C++ topics that I have l...