Skip to main content

2 posts tagged with "Testing"

View All Tags

Testing in the Age of AI: Why TDD Still Matters

· 4 min read
Bater Chen
Senior Full-Stack Engineer

In this AI-driven era, the landscape of software development is transforming with unprecedented speed and flexibility. From code generation to deployment, and from requirement definition to bug fixing, AI tools are reshaping our relationship with code. Yet, amidst this profound transformation, one classic practice is gaining renewed significance: Test-Driven Development (TDD).

Mastering Private Methods and Refactoring: A Practical Guide

· 4 min read
Bater Chen
Senior Full-Stack Engineer

In the wild world of software development, we're constantly juggling encapsulation and testability. You want clean, hidden implementation details to keep your code modular, but you also need to test critical logic to avoid nasty bugs. Recently, our team tackled a beastly public method—sprawling, complex, and crying out for a refactor. We split it into private helper methods for clarity, but then the question hit: How do we test these private methods?