Blog posts in category “Python”
Snakes, snakes everywhere.
-
Aug 27th, 2023Compressing overlapping strings in Python
I developed a solution to a overlapping string puzzle with Python using Test-Driven Development and in this blog post, I share my thinking and development process.
-
Nov 30th, 2022Python prep for Advent of Code 2022
Advent of Code is right around the corner and I decided to gather my favorite Python tips and standard library tools from my previous years' puzzle-solving.
-
Jul 28th, 2022I wrote my first Dropzone 4 action
I recently got into two new apps: open source video player called Iina and a macos menu bar tool Dropzone. Then I wrote a Python script to connect the two. Beautiful.
-
Jul 13th, 2022Unit test your Python code in Jupyter Notebooks
I used learned Jupyter Notebook for last year's Advent of Code but didn't have time in December to figure out how to test my code in that environment. Getting ready for the winter season, I took some time this summer holiday to explore the options and I'm sharing three ways in this blog post.
-
Jun 8th, 2022print is your best debugging tool
One tool to rule them all, one tool to find them (bugs). One tool to bring them all, and in the editor fix them.
-
Apr 14th, 2022My trip to Django Day Copenhagen 2022 and Stockholm
Django Day Copenhagen 2022 was a wonderful event full of great talks and amazing people. Here's my recap of my trip to the event.
-
Dec 31st, 202145 stars, Christmas was almost saved - Advent of Code retrospective
Advent of Code for this year is done and for the first time in my life, I got almost to completion with 45 stars and saving the Christmas! Here's my Advent of Code 2021 retrospective of the things I learned and experienced during this month.
-
Dec 15th, 2021Tips for Advent of Code
Solving Advent of Code puzzles is a fun way to spend December. Over the years I've participated, I've picked up a habit or two that makes debugging broken solutions easier.
-
Dec 8th, 2021Advent of Code 2021
This year I'm once again solving Advent of Code puzzles to help the elves save the Christmas. This year, my trusty tools are Python and Jupyter Notebook and I'm focusing on writing my thoughts and insights for other humans within my notebooks.
-
Oct 6th, 2021Python 3.10 is out and I'm excited
A long-awaited release of Python 3.10 is finally here. Its two major new things are the introduction of pattern matching and the improved error messages.
-
Sep 29th, 2021How would you compare two version numbers?
Comparing two software version numbers may sound simple and straightforward. I ran into a discussion about it in Twitter and explored further.
-
May 19th, 2021Scheduling operations in Python
Do you have a need to run a Python function on regular intervals, like every hour or on 12.00 each Monday? Python package schedule makes it easy and its API is beautiful and easy to understand.
-
Mar 17th, 2021How to parse command line arguments in Python
Python is a great language for writing command line applications. Its built-in tool for parsing arguments is powerful and I gathered together some of the most used cases.
-
Feb 17th, 2021Pattern matching is coming to Python
Pattern matching is coming to Python this year and I'm so excited for it! I'll walk you through what is pattern matching and how it's gonna work in Python.
-
Oct 28th, 2020How to ask help for technical problems?
Asking for help in technical problems can end up in a lot of back and forth before even getting to the bottom of the issue. Here are some tips how to effectively ask for help.
-
May 27th, 2020How to scrape a website with Python & BeautifulSoup
Learn how to scrape data from websites using Python and BeautifulSoup so that you can use it in your scripts and applications.
-
Apr 30th, 2020True, True, True == (True, True, True) in Python
A friend shared this interesting piece of Python code in our Telegram chat today and I wanted to walk you through it.
-
Apr 1st, 2020Testing lifehack: testlab repositories
Sometimes it's hard to set up tests in a legacy project so I built testlab repositories so I can do TDD when I develop new functionality.