Hacker News new | ask | show | jobs
by Cieplak 4230 days ago
Very cool. I would like it even more if there were tests :)

https://github.com/Emsu/prophet/

2 comments

Definitely adding tests :) The folder's sitting in my local repo and it'll be the next thing I do.
You posted the github link yourself... (Fork button is top right).
Can we stop making these responses every time anyone suggests a feature or critiques an open source project, please
Can we stop with the "I this doesn't match my ideology" critiques?
Actually, that's not how tests work. Writing a test after the code has been produced should not be considered a real test. Let me quote Robert C. Martin on this.

    If we lose the production code, we end up with a better designed system that stays clean because it has tests. If we lose the tests, then the production code rots and the team slows down in a never ending spiral of lost productivity.

    So we can conclude that if it became a choice between the tests or the production code, we'd rather preserve the tests. And this means that the tests are a more important component of the system than the production code is. Because the tests are the specs.
http://blog.8thlight.com/uncle-bob/2013/09/23/Test-first.htm...
Tests written after are still tests. It may not be 'test driven development', but they are still tests, and TDD is not the final answer IMHO.
nonsense!

these are still tests just as much as if they'd been written first, it's just a different methodology.