Skip to main content

Does git rebase affect other branches?

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

Does git rebase affect other branches?

Yes, git rebase can affect other branches, but only if you rebase a branch that other developers have already pulled and started working from. Rebasing a local, unshared branch has no impact on other branches in the repository.

The key to understanding this lies in how rebase works. It rewrites the commit history of a branch by moving its commits to a new base. When you run git rebase, you're essentially creating a new set of commits that replace the original ones.

How to install supabase cli

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

You can install the Supabase CLI using a variety of package managers, including npm, Homebrew, and Scoop, depending on your operating system. The CLI is a powerful tool that allows you to manage database migrations, develop locally, and deploy your project.

Supabase self host

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

Supabase is a Backend-as-a-Service (BaaS) platform that is almost entirely open source, which provides flexibility for developers. While their hosted service is what most people use, you have the freedom to self-host the entire stack. This open-source nature is a key differentiator when comparing it to other solutions like a custom stack with Hasura.

Python's @property vs. @classmethod - A No-Nonsense Guide

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

When you're diving into Python's Object-Oriented Programming (OOP) features, decorators like @property and @classmethod pop up all the time. They might seem similar at first glance, but they serve fundamentally different purposes. Getting them straight is key to writing clean, Pythonic code.

Let's cut through the noise and get straight to what they do and when you should use them.

Managing database queries in Django applications and where save the queries

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

As a Django app grows, managing database queries effectively is crucial for maintainability, performance, and testability. Storing them haphazardly is a recipe for disaster. The best place to store your queries is on custom Model Managers and QuerySets. This approach keeps your logic organized, reusable, and closely tied to the data it operates on. Here are the main variants for storing your queries, from the least recommended to the best practice.

Vercel vs GitHub pages comparison for project maker

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

What is better Vercel or GitHub pages in terms of customization and settings

If you're at a point where you want to build a site that goes beyond just a portfolio or a blog—something you might monetize, track analytics on, add dynamic features to, or even scale up into something bigger—it’s important to choose your hosting platform wisely. GitHub Pages and Vercel are both wildly popular options, but they offer fundamentally different experiences once you want to do more than just put HTML online.

Testing hello world function in python with doctests

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

Sometimes even the simplest programs deserve solid testing—especially when you're working in a team or trying to set strong standards for code quality. In this note, we'll take the most basic example—"Hello, World!"—and build out everything around it to demonstrate how doctests can be used effectively, even for something so trivial. The goal is to build intuition for testing, not just solve a toy problem.

Various Ways for Executing Doctests in Python

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

Executing Doctests in Python: A Comprehensive Guide

Doctest is a module in the Python Standard Library that enables you to write tests within the documentation of your code—typically inside docstrings. These tests look like interactive Python sessions (as if they were run in a Python shell), and the doctest module verifies that the output matches the expected result. While doctests are generally simpler than unit tests written with unittest or pytest, they are powerful for checking that code examples in documentation remain correct over time.

This guide explores the various ways to execute doctests in Python, from running them via the command line to embedding them in code and running them programmatically.