3 ms·
This is interesting, but come on, man. Not a single unit test? I found TDD to be invaluable when writing a simple RPN calculator (which suddenly became a Forth
by pmarreck 11y ago
This is interesting, but come on, man. Not a single unit test? I found TDD to be invaluable when writing a simple RPN calculator (which suddenly became a Forth interpreter that could do things like compute factorial): https://github.com/pmarreck/elixir-snippets/blob/master/rpn_forth_thing.exs https://github.com/pmarreck/elixir-snippets/blob/master/rpn_...
Note that I was never educated in how to write compilers or transpilers (I was a Psych major and merely a CS minor), I just looked at it as a transformation problem. :)
- aaron-lebo 11y ago> come on man. Not a single unit test? :) Good man. Unit testing is a priority (now). Do plan on dog fooding this. Thanks for your comment.
- pmarreck 11y agoSeriously, once you get into the habit of it, it's awesome and definitely a better way to go about it!