Blog

For Loop vs. List Comprehension

For Loop vs. List Comprehension

Simple "for loops" can be replaced with a list comprehension. But is it going to make our code faster? And what limitations list comprehension has?

Ordered Dictionaries

Ordered Dictionaries

Dictionaries in the latest Python versions preserve the insertion order. So, is there any reason to use the OrderedDict as we used to do in the past?

Easy Speedup Wins With Numba

Easy Speedup Wins With Numba

Numba library has plenty of tools to speed up your mathematical-heavy programs. From a simple @jit decorator, all the way to running your code on a CUDA GPU.

Find Item in a List

Find Item in a List

How to quickly find something in a collection of items, like a list or a range? When a generator expression is a great solution, and when it's not?

Ask for Forgiveness or Look Before You Leap?

Ask for Forgiveness or Look Before You Leap?

Is it faster to "ask for forgiveness" or "look before you leap" in Python? And when it's better to use one over the other?

Writing Faster Python - Introduction

Writing Faster Python - Introduction

Introduction to the "Writing Faster Python" series. What it is about, how do I benchmark, frequently asked questions, and additional resources.

Let's Write an IPython Extension the Hard Way

Let's Write an IPython Extension the Hard Way

How a 5-minute hack for %reload function turned into a rabbit hole of different Python tools and techniques.

My Favorite CLI Tools

My Favorite CLI Tools

26 CLI tools that I love. And one that is OK.

18 Plugins for Writing Python in VS Code

18 Plugins for Writing Python in VS Code

List of my favorite VS Code plugins that helps me build Python application.

My Favorite Macbook Tools

My Favorite Macbook Tools

I'm programming on a Macbook, and I love it. Here are some of the tools that make my life easier.

5 Ways of Debugging with IPython

5 Ways of Debugging with IPython

Tips and tricks on how to use IPython as your debugger.

Disable pip Outside of Virtual Environments

Disable pip Outside of Virtual Environments

How to stop pip from running outside of a virtual environment and messing up your dependencies?