Skip to main content

Supabase Pitfalls: Avoid These Common Mistakes for a Robust Backend

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

Supabase Pitfalls: Avoid These Common Mistakes for a Robust Backend

Supabase offers a powerful open-source alternative to Firebase, built around PostgreSQL. Its ease of use makes it a favorite for rapid development, but this very convenience can lead developers down paths that introduce technical debt, performance bottlenecks, and security vulnerabilities. Understanding and avoiding these common pitfalls is crucial for building a robust and scalable application.

Regex for searches in VSCode

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

Visual Studio Code (VS Code) provides a powerful, built-in regex engine for its Find and Search functions. This feature allows you to perform highly specific and complex searches and replacements across a single file or an entire project.

Is Supabase Vendor Lock-in a Problem? Debunking the Myths

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

Supabase has minimal vendor lock-in by design because it's built on a foundation of popular open-source technologies, most notably PostgreSQL. This is a core part of their philosophy and a key differentiator from closed-source alternatives like Firebase. However, while minimal, some "stickiness" exists in their value-added services.

Benchmark: msgspec vs. Pydantic v2

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

msgspec is an extremely fast serialization and validation library that consistently outperforms Pydantic v2 in benchmarks. This performance advantage comes from its design as a lean, compiled-code-based library focused on a narrow set of data handling tasks, whereas Pydantic v2 is a feature-rich framework.

The performance differences are most pronounced in two key areas: parsing/decoding (converting data like JSON into Python objects) and serialization/encoding (converting Python objects into data like JSON).

Msgspec fastapi integration

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

msgspec is a Python library designed for high-performance serialization and validation, which makes it a powerful partner for FastAPI. It can be used as a drop-in replacement for FastAPI's default Pydantic models to handle data validation and schema generation, often leading to a significant speedup in API performance.

msgspec Struct

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

msgspec.Struct is a powerful data class in the msgspec library that's used to define the schema of your data. It's similar to Python's built-in dataclasses or typing.NamedTuple, but it's specifically optimized for high-performance serialization and validation. When you use a Struct, msgspec can perform operations like JSON encoding and decoding significantly faster than standard Python methods because it has a predefined, static understanding of your data's layout.

How is GFM different from CommonMark?

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

GitHub Flavored Markdown (GFM) is a strict superset of the CommonMark specification. This means that GFM includes all the features of CommonMark and adds several of its own, making it a more feature-rich dialect of Markdown.

The key differences between GFM and CommonMark lie in the extra features GFM provides to support the collaborative nature of a platform like GitHub.

Github flavored markdown syntax

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

GitHub Flavored Markdown (GFM) is a superset of the CommonMark specification, which means it includes all the standard Markdown features plus several useful additions. It's the dialect of Markdown used on GitHub for things like issues, pull requests, wikis, and comments.