4 ms·
> [running program] + [auto persistence] + [editing tools] How do you use TDD when coding like this?
by vvdcect 9y ago
> [running program] + [auto persistence] + [editing tools]
How do you use TDD when coding like this?
- stcredzero 9y agoHow do you use TDD when coding like this? There were some utilities that let you run the tests at the push of a button.
- bertfreudenberg 9y agoKent Beck invented TDD while programming in Smalltalk. You first extend the environment with tests, then add the code to make them green. All without ever having to restart the "program".
- e12e 9y agoI admit the question made me smile, but it's a great question. I found these short videos, that are maybe the shortest possible answer (less than 3 minutes, I just watched them w/o sound, auto-captioned): Pharo: https://youtu.be/ymITEeAOtEA https://youtu.be/ymITEeAOtEA Cinecom Smalltalk: https://youtu.be/mXoxfmcDDJM https://youtu.be/mXoxfmcDDJM
- shalabhc 9y agoOthers have answered but interestingly, TDD was 'built-in' to the Pharo tutorial I did a while back. Basically you write a test first, say it calls an undefined method `x.somemethod()`. You push a button to run the test, as soon as the method call fails, the environment shows you a popup which lets you define the method right then and there, while you have all the details of the suspended execution. You can write the method and the 'resume' the execution from where it excepted.
- igouy 9y agoSee "Chapter 9 SUnit" in [pdf] "Pharo by Example" http://files.pharo.org/books-pdfs/updated-pharo-by-example/2017-01-14-UpdatedPharoByExample.pdf http://files.pharo.org/books-pdfs/updated-pharo-by-example/2... There are pictures :-)
- ben-coman 9y agoHere is a nice Pharo TDD video (thx Avi) from an author of several Ruby books, when he was trying Pharo... http://www.virtuouscode.com/2015/05/11/in-which-i-make-you-hate-ruby-in-7-minutes/ http://www.virtuouscode.com/2015/05/11/in-which-i-make-you-h...