DEV Community

Discussion on: The Hello World Kata

 
dev3l profile image
Justin L Beall • Edited

For mocking built ins, I work on an ETL Integration team, writing unit tests that mock open in Python and read/write IO. At one point this was a pain in the arse.
I love the conversation and don't want to trivialize any concerns you have, FYI :)
I intend to finish/polish this article tonight.
I look at it this like a proof in discrete mathematics. From the base case of what the concept of 1 is, we can prove 1+1=2, then eventually get to calculus or linear algebra.

Thread Thread
 
theodesp profile image
Theofanis Despoudis

Ok, I agree with that kind of proofs you need something more formal. Have you explored Coq?
coq.inria.fr/

or Idris
idris-lang.org/

Thread Thread
 
dev3l profile image
Justin L Beall • Edited

O no, I haven't done formal proofs since college. I was trying to make an analogy.
I have been TDD exclusive for over 4 months (in both professional and personal projects), yet I had not attempted something like this. In the analogy, I had been playing with high level concepts without 'mastering' the base case.
I feel like even in this SIMPLE example, there are a few things that could be better. To get my commits to look pretty, I interactively rebased.