Hacker News new | ask | show | jobs
by aconbere 1196 days ago
Just hash the whole function and be done with it.

Joe Armstrong made a proposal for this (I’m pretty sure half tongue in cheek).

https://joearms.github.io/published/2015-03-12-The_web_of_na...

1 comments

Hashing also allows you to be more confident in the tests for that code. Tests cant catch when additional side effects are added. If the hash changes, you can trigger behavior like restarting the QA on it.