Open pjurczynski opened 4 years ago
I read the article once again and I think I know what we did wrong the first time (apart from not reading the instruction first and going bare foot into the fire ;)).
First, split the problem in two areas
Next, tackle only one type of operations (we did that, but I think I got distracted by the fact we're not covering the other case and I got a thinking block). This might close ourselves from some optimal answers, but this feels easier when you don't have an idea how to solve a problem.
Let's do the same. Let's focus on binary calculations.
Another problem I had is I thought that TDD could magically find an answer to a problem by going step by step. But now I think you still need to have a plan in your head, and try to follow it step by step (I think you already said that but with different words).
Currently I have two ideas - binary tree, or a similar approach we had before, but this time working ;). I'll think more later.
Well actually, you should be able to find the answer during developing it, because you are facing the implementation and see how it is really working, but that's true if you have a strong vision how would you implement it, that won't throw you back.
But that's the point, if you do not read that, we could have discussed what we made wrong and how could have done better what could have discuss during testing, now you spoiled the fun!!
Anyway let's focus on Binary operations I agree with it, also I open for anything (I am still open this question from my side even during TTD, that we can see how we want to implement it when we are actually see it works or not)
But that's the point, if you do not read that, we could have discussed what we made wrong and how could have done better what could have discuss during testing, now you spoiled the fun!!
I have only read the definition, not the implementation nor the pseudo-code ;) - so we're safe, we can still discuss :). You cannot do TDD if you don't know the problem.
Base article: https://en.wikipedia.org/wiki/Reverse_Polish_notation