This post explores the compatibility of Test-Driven Development (TDD) with AI coding assistants, specifically using Kiro, an AI-powered IDE. The author conducts an experiment involving the Number Parser Kata to demonstrate how Kiro effectively follows TDD principles, emphasizing that TDD remains essential for ensuring that AI-generated code solves the intended problems accurately.
Tag: Refactoring
Refactor “if” statements – functional programming style
Have you ever seen code that look like this: public string GetStatusDescription(Model model){ if(model.HasProblemReports) { return "Errors"; } if(model.SystemState.WorkingMode == WorkingMode.NotManaged) { return "Manual"; } if(model.SystemState.IsInitializing) { return "Initialize"; } if(!model.SystemState.InService) { return "Not in service"; } if(model.SystemState.WorkingMode == WorkingMode.Paused) { return "Paused"; } if(model.Storage.Objects.Any(obj => obj.IsMoving)) { return "Movement in storage"; } return string.Empty;}I … Continue reading Refactor “if” statements – functional programming style
Five reasons to install Resharper 5 today
I’ve been using R# v5 for a few weeks (ever since the nightly builds were made public) and I’m not going back. There is an exception now and then but it get caught by R# and reported back (if you want it to) without causing any problems with Visual Studio. There are some feature I … Continue reading Five reasons to install Resharper 5 today
CodeRush Express Available as free download
It seems that DevExpress (along with Microsoft) are giving away an "express" version of their tool CodeRush. You can read all about it here - CodeRush Xpress announced and available From the download page: Supported Features: CodeRush Xpress includes the following features. Duplicate Line Highlight All References Increase or Reduce Selection Smart Clipboard Operations Generate … Continue reading CodeRush Express Available as free download
