© 2023 Hashnode
#tdd
Test-driven development (TDD) is a software development process where developers write tests before writing the actual code. The tests check the functionality of the code, and the code is written to m…
Writing tests for your app helps to ensure that your code is functioning correctly and is free of bugs. This improves the overall quality of your app, making it more reliable and user-friendly. 1. Imp…
Most of us think of TDD as a tool for software testing and verification. But if used effectively it is more than that. Since Test Drive Development (TDD) was introduced by Kent Beck it has always been…
What are Unit tests and TDD? Unit tests: Unit tests are some pieces of code that exercise the input, the output, and the behavior of your code. TDD tests: Test-Driven Development is a strategy that en…
Problem: How to avoid threading race conditions in your class? Solution: Use actor that handles all the concurrency for you! Code that runs synchronously is easy to manage and understandBut when start…
It’s been a while since I logged a Command Shift diary entry but now seems as good a time as any for an update. This one is all about fresh starts and a tale of two halves. Getting back into the groov…
An Introduction to Unit Testing This article provides an introduction to unit testing. Contents Unit testing in theory Unit testing in practice Fakes Code samples Suggested readings Unit testing in …
Books Refactoring: Interesting strategies to deal with 'big' refactorings Interesting concept in the NullObject (Blog post pending) I am left pondering how I would actually refactor the db in somet…
If you enjoy this topic, you will probably like my articles, tweets, and stuff. If you're wondering, check out my social media profiles and don't forget to subscribe and follow since I'm offering prog…
Here is an example of a simple telephone directory implemented in Go using Test-Driven Development (TDD) principles: package main import ( "fmt" "strings" ) type Directory struct { contacts map[string]string } func (d *Direct…