HNHacker News
TopNewBestAskShowJobs

hamdal

536 karma · joined November 18, 2013

submissionscomments
hamdal··on AI could upend the world even more than electricity or the internet
I'm not sure how old you are, but I'm pretty sure no monk was copying books in my lifetime.
hamdal··on Setting up pre-commit tests with Git
Sure, if you find it convenient - go for it. However, I'd not enforce it as a policy for whole organisation for the reasons outlined above.
hamdal··on Setting up pre-commit tests with Git
I'm not sure if this is a good practice. As project grows, running tests takes more time - remember that tests are not only unit tests which should run quickly, there are acceptance tests which can take some time to run. Waiting for commit to finish can become painfully slow.

Additionally, I like to commit partial solutions to feature branch as I work. Later I will fix the mess with rebase - this workflow wouldn't work.

You need CI anyway, so I'd leave tests there, and let the developer decide when to run the unit tests on his machine.