Following the previous article, Development Environment Setup and Virtual Environment, this article does not discuss language differences but focuses on project build and its usage. The purpose of writing code is to…
Tag: Programming
Python vs C++ Series: Development Environment Setup and Virtual Environment
This article is part of the Python vs. C++ Series. Unlike the previous articles focusing on language differences., this article talks about the setup of development environments. Different languages have different toolsets…
Build the Forest in Python Series: Make the Forest Thread-Safe
[Updated: January 27, 2022] Multithreading is a common way to improve performance. However, the shared state and data among the threads become vulnerable to corruption if the shared state or data is…
Python vs C++ Series: Variable Scope
Every programming language has its way to define scope, and most of them work similarly and have similar scope levels such as block scope and function scope. This article is part of…
Python vs C++ Series: Mutable, Immutable, and Copy Assignment
[Updated: October 25, 2021] The third article of the Python vs C++ Series is about immutability – an object cannot be modified after it is created. (Note that the Python code in…
Python vs C++ Series: Polymorphism and Duck Typing
This is the second article of the Python vs C++ Series. In this article, we are going to talk about another basic object-oriented programming concept – Polymorphism. (Note that the Python code…
Python vs C++ Series: Getter, Setter, and Property
As a professional C++ programmer since C++03, the C++ way object-oriented thinking has been deeply embedded in my mind, and it helped me a lot when I picked up a new language…
Build the Forest in Python Series: AVL Tree vs Red-Black Tree
Being a good software engineer not only needs to know what tools (e.g., data structures and algorithms) are available but also understand how to choose the right tools. In addition, a good…
Build the Forest in Python Series: AVL Tree
After the Red-Black Tree discussion, this article will implement another variant of the self-balancing binary search tree: the AVL Tree. Project Setup Follow the same style and assumption as other articles in…
Build the Forest in Python Series: Red-Black Tree
[Updated: December 31, 2021] From the Binary Search Tree: Analysis, we know the tree height is the critical factor of binary search tree’s performance. This article and the following article will implement…