Skip to main content

8 posts tagged with "testing"

View All Tags

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.

How to Make Doctests Easy in Python with Gitpod and VS Code

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

If you're writing doctests in Python using Gitpod or VS Code, you don’t need much to get started. Python’s built-in doctest module lets you write examples in your function’s docstring using the familiar >>> prompt, and then run those examples as tests. This is great for small, focused functions or when you want your documentation to double as lightweight tests.

Paradigms Every Beginner Should Know Before Learning Shift Left

· 5 min read
serhii_hrekov

Before diving into Shift Left, which emphasizes catching bugs, performance, and security issues early in the software development lifecycle, it’s 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.