TDD (Test-Driven Development) Overview with NextJS Example

Test-Driven Development (TDD) is a software development methodology that emphasizes writing tests before writing code. This approach helps developers catch bugs early and ensures that the code they write is maintainable, scalable, and well-documented. In this blog post, we will take a look at how to get started with TDD in a NextJS and TypeScript project. I’ve also done similar posts in the past: Rust TypeScript (vanilla) Python Prerequisites Before we get started, you’ll need to have a basic understanding of NextJS, TypeScript, and testing....

February 2023 · Michael John Peña

TDD (Test-Driven Development) Overview with Python Example

Test-Driven Development (TDD) is a software development approach where developers write tests before writing the code itself. TDD emphasizes writing tests that fail initially, then writing the minimum amount of code necessary to pass the tests. This process is repeated until the desired functionality is complete. TDD provides a number of benefits, including increased confidence in the code, better documentation, and reduced time spent debugging. How TDD Works TDD is based on the Red-Green-Refactor cycle:...

February 2023 · Michael John Peña

Test-Driven Development in TypeScript: A Practical Guide

Test-driven development (TDD) is a software development approach in which tests are written for a piece of code before the code is written. The tests describe the desired behavior of the code, and the code is written to make the tests pass. This approach helps ensure that the code meets the requirements and works as intended. In this post, we will explore how to do TDD in TypeScript, a typed superset of JavaScript that can be used to build large scale applications....

December 2022 · Michael John Peña

Test Driven Development in Rust

Test Driven Development, or TDD, is a software development process that involves writing tests for your code before writing the actual code itself. This helps to ensure that your code is robust and free of bugs, as you are able to test it thoroughly before it is even written. In this blog post, we’ll look at how to implement TDD in the Rust programming language, with some code examples to help illustrate the process....

December 2022 · Michael John Peña