Since last time I have been looking a bit at Dynamic Programming (DP) and in particular combinatorial optimization problems, for example the Knapsack Problem and the Change-making problem. For those of you that are interested in learning more about DP check out GeeksforGeeks resources on DP. Here you will find reading material plus a LOT of different practice problems.
I have asked myself this question several times, and searched for answers, without coming up with any clear answer. Therefore I have decided to go hard core TDD for a longer period of time (at least 6 months) to really evaluate the effects. There are several things that I find confusing when it comes to TDD. One example is what actually defines a unit test. What is a "unit" anyway? After reading a bit about it I found a text claiming that the "unit" is "a unit of work", i.e. something quite small. Like converting a string to UPPERCASE or splitting a string into an ['a','r', 'r', 'a', 'y'] of chars. This work is usually performed by a single call to a single method in a single, isolated, class. So, what does it mean that a class is isolated? Does it mean that it doesn't have any dependencies to other classes? NO! In the context of TDD it means that any dependencies are supplied by the test environment, for exa...
Kommentarer
Skicka en kommentar