Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Filter by Categories
About Article
Analyze Data
Archive
Best Practices
Better Outputs
Blog
Code Optimization
Code Quality
Command Line
Daily tips
Dashboard
Data Analysis & Manipulation
Data Engineer
Data Visualization
DataFrame
Delta Lake
DevOps
DuckDB
Environment Management
Feature Engineer
Git
Jupyter Notebook
LLM
LLM
Machine Learning
Machine Learning
Machine Learning & AI
Manage Data
MLOps
Natural Language Processing
NumPy
Pandas
Polars
PySpark
Python Tips
Python Utilities
Python Utilities
Scrape Data
SQL
Testing
Time Series
Tools
Visualization
Visualization & Reporting
Workflow & Automation
Workflow Automation

Testing

Write Better Code with Test-Driven Development

Test-driven development (TDD) is a technique that helps you write better code, faster and with more confidence. It emphasizes writing automated tests before writing the code. Here’s the process:

Create a test that fails because the code doesn’t exist yet.

Write the minimum amount of code necessary to make the test pass.

Refactor the code to make it more maintainable and efficient.

Repeat the process until your code meets the desired behaviors.

My articles on the topic of testing.
Favorite

Write Better Code with Test-Driven Development Read More »

Efficiently Generate Falsified Examples for Unit Tests with Pandera and Hypothesis

Generating readable edge cases for unit tests can often be a challenging task. However, with the combined power of Pandera and Hypothesis, you can efficiently detect falsified examples and write cleaner tests.

Pandera allows you to define constraints for inputs and outputs, while Hypothesis automatically identifies edge cases that match the specified schema.

Hypothesis further simplifies complex examples until it finds a smaller example that still reproduces the issue.

Efficiently Generate Falsified Examples for Unit Tests with Pandera and Hypothesis Read More »

0
    0
    Your Cart
    Your cart is empty
    Scroll to Top

    Work with Khuyen Tran

    Work with Khuyen Tran