Every dunder method in Python

date: 2024-03-22 路 Tags: #python, #dev

A comprehensive reading material of almost all the dunder methods in Python. Essential and excellent cheatsheet for advanced Python developers.

Ref: Every dunder method in Python

Writing Technical Articles

date: 2024-03-17 路 Tags: #good-reading, #writing

Some notes from Henning Schulzrinne, Professor in the Dept. of Computer Science at Columbia University, about how and what style is "good" to write technical articles.

A good research paper has a clear statement of the problem the paper is addressing, the proposed solution(s), and results achieved. It describes clearly what has been done before on the problem, and what is new.

old, but still useful.

Ref: Writing Technical Articles

Modern Git Commands and Features You Should Be Using

date: 2024-03-15 路 Tags: #git, #dev

I always like to find somethings in modern ways 馃グ Here are serveral new features for Git. My short notes:

  • git switch and git restore are new commands that are more intuitive than git checkout and git reset. They are also safer, as they don't change the working directory by default.
  • git sparse-checkout is a new feature that allows you to only checkout the parts of the repository you need. This is useful for large repositories or monorepo style env.
  • git worktree is a new feature that allows you to have multiple working directories for the same repository. This command allows us to have multiple branches of the same repository checked out at the same time.
  • git bisect is a command that helps you find the commit that introduced a bug. It's been around for a while, but it's not used as often as it should be.

Refs: