Designing Modules in Python [E-Book]

Designing Modules in Python is part of HashedIn’s training program for junior developers to get better at design. Today, we are making it available as a free ebook. Read more


How to Reorder Data in Log Files Using Python

Let’s say that you have an array or a list, or logs. Each of these logs is a space-delimited string of words. For example: logs = ["dig1 8 1 5 1","let1 art can","dig2 3 6","let2 own kit dig","let3 art zero"] The task is to reorder these logs and return th... (more…)

Read more »

Making Python CLI Apps Faster

As programmers, we can create tools to make programming easier. Often this means building something that can be easily invoked on the command line, whether it is a bash script or a CLI app with a full UI. This post focuses on optimizing the latter option. (more…)

Read more »

Reproducible Python Bytecode

Some Linux distributions (like Alpine and Arch Linux) are shipping something called “python bytecode” in their packages. It’s stored in .pyc files and is generated during the package build. They’re stored in __pycache__ folders and can be seen here: (more…)

Read more »