Skip to main content

flake8 or ruff - Detects Unused Variables, Bad Patterns, and Syntax Errors Early

4 min read
Serhii Hrekov
software engineer, creator, artist, programmer, projects founder

Writing clean and correct code is critical for every Python programmer, especially beginners. Tools like flake8 and ruff help catch issues like unused variables, potential bugs, syntax errors, and styling problems early - often before you even run the code.

Black - Auto-Format Your Python Code Like a Pro

5 min read
Serhii Hrekov
software engineer, creator, artist, programmer, projects founder

Writing clean and consistent code is a mark of professionalism, and it also makes collaboration easier. But keeping formatting consistent manually is hard. That鈥檚 where Black, the Python code formatter, shines.

Black automatically formats your code according to PEP 8 (Python鈥檚 style guide), with minimal configuration and zero fuss. This guide will show you how to install it, use it, and why it's helpful - especially if you're new to Python programming.

What is Pyright and Why You Should Use It

6 min read
Serhii Hrekov
software engineer, creator, artist, programmer, projects founder

Python is known for being dynamic, fast to prototype with, and easy to write. But these same characteristics can introduce bugs that are only caught at runtime.

Static type checking-validating code without running it-helps you catch bugs earlier. This is where Pyright enters the stage.

What is Mypy, How to Use It, and Why It Matters

5 min read
Serhii Hrekov
software engineer, creator, artist, programmer, projects founder

Python is known for being a dynamically typed language - you don鈥檛 have to declare variable types, and everything works at runtime. But as your codebase grows, undetected type errors can creep in. That鈥檚 where Mypy comes in.

Mypy is a static type checker for Python. It checks your Python code for type errors without running it.

What is Shift Left Paradigm in Programming? Explained for Beginners

6 min read
Serhii Hrekov
software engineer, creator, artist, programmer, projects founder

If you've heard developers or tech leads talk about "shifting left", it may sound like some kind of command-line trick. But in reality, "shift left" is a mindset - and it's becoming increasingly important in modern software development.

Whether you're writing Python or any other language, understanding this approach can help you build more reliable code, find bugs earlier, and ship faster.

Paradigms Every Beginner Should Know Before Learning Shift Left

5 min read
Serhii Hrekov
software engineer, creator, artist, programmer, projects founder

Before diving into Shift Left, which emphasizes catching bugs, performance, and security issues early in the software development lifecycle, it鈥檚 important for new programmers to learn the foundational paradigms that support this philosophy.

These paradigms teach early thinking, good code hygiene, and automation - all of which are building blocks of effective software engineering.

How to Checkout a Single File from Another Git Branch

5 min read
Serhii Hrekov
software engineer, creator, artist, programmer, projects founder

Sometimes, you may want to retrieve a specific file from another branch in a Git repository without switching branches completely. This is particularly useful when you want to grab a specific version of a file for debugging, rollback, or review.

In this guide, we鈥檒l walk through how to checkout a single file from another branch using Git. We鈥檒l cover multiple scenarios with examples and best practices.

How to Measure Execution Time of a Function in Python (With Examples)

6 min read
Serhii Hrekov
software engineer, creator, artist, programmer, projects founder

Measuring how long your Python code takes to run is a critical skill for performance optimization, profiling, or benchmarking different approaches to solving a problem. Python offers many tools for tracking the execution time of a function - from simple built-in methods to full-blown profilers.

In this guide, we will explore multiple methods with code examples to help you choose the right one for your use case.

How to Install a .deb Package on Ubuntu

5 min read
Serhii Hrekov
software engineer, creator, artist, programmer, projects founder

Ubuntu, like other Debian-based systems, uses .deb files as the standard package format. While most software is installed via apt or the Ubuntu Software Center, sometimes you may need to install software manually using a .deb file you downloaded from a website or built yourself.

In this article, we鈥檒l cover how to install .deb packages using the GUI and command line, how to resolve dependencies, and best practices for safe installation.

Looking for more content?
Hrekov Blog contains 165 articles. Browse the blog archive or Explore the full timeline.