Skip to content

Instantly share code, notes, and snippets.

View xpepper's full-sized avatar
💭
😏

Pietro Di Bello xpepper

💭
😏
View GitHub Profile
tags disqus
kata
pierodibello

A curated list of programming kata

IDE automation skills

  • Refactoring Golf katas (easy...medium), to learn how to use the IDE at its best
tags
kata

ATM kata

You have to develop an Automated Teller Machine (ATM) allowing cash withdrawals.

The ATM main features:

title tags
Refactoring Legacy Code katas
refactoring, kata

Pietro Di Bello, [28 Sep 2020 at 22:59:43]:

voi cosa consigliereste come kata per aiutare un team a fare pratica con il refactoring (abituarsi a cercare di esprimere il codice in modo più chiaro e parlante partendo da una codebase piuttosto "offuscata") ? a me vengono in mente tennis kata (un po' noioso forse), gilded rose? ugly trivia? o anche il mitico goose game refactoring kata?

tags
testing

What NOT to test?

Kent Beck, "XP Explained":

It is impossible to test absolutely everything, without the tests being as complicated and error-prone as the code. It is suicide to test nothing (in this sense of isolated, automatic tests). So, of all the things you can imagine testing, what should you test?

>You should test things that might break. If code is so simple that it can't possibly break, and you measure that the code in question doesn't actually break in practice, then you shouldn't write a test for it...