28 Mar 2022
|
python
OOP
Background
In Pyhton, there are some built-in functions when creating a class that looks like __func_name__
. There are two of them, __new__
and __init__
. I found it’s very interesting that we seldomly use __new__
but mostly just use __init__
. But actually they are bit different and are all useful for different senarios.
30 Nov 2021
|
python
nginx
docker
Background
FastAPI is a high performance web framework in Python 3.6+ that booming very fast recently. While NGINX is one of the most popular open source load balancer that been used widely as a reverse proxy in front of the app.
07 Oct 2021
|
MySQL
SQL
docker
Background
MySQL is one of the most popular open source relational database management system (RDBMS) thus a good tool for learning SQL. This artical shows how to quickly implement a MySQL env locally with docker-compose and visit it by a GUI called MySQL workbench.
14 Sep 2021
|
python
syntax
What
In a python function, we need to pass params but sometimes you may find two weird thing like *args
or **kwargs
. These two special charactors means we can pass multiple arguments or keyword arguments to a function.
09 Aug 2021
|
SQL
data
SQL, short for Structured Query Lanuguage, is widely used in proramming and desigined for managing data in a relational database management system.