Hacker News new | ask | show | jobs
by _5meq 2905 days ago
Agreed.

It's amazing to me how people still "meh" away testing as a secondary concern, and then regret it later. Over and over again.

WRITING software is easy, anyone can do it. CHANGING software is extremely difficult. THAT is why we have tests. Also, if you are smart about it, you can get documentation out of the deal for relatively little additional cost.

My go to example is on-boarding new developers:

New dev: "OK, i'm here! How do I start?"

with tests: Clone the repo, install dependencies, and run the test suite. As you develop new features, be sure to write additional test.

They are up and going in a matter of minutes.

without tests: Clone the repo, install deps, download testing database, achieve homeostasis with your dev environment, learn the entire system, build up the state you require to write your feature, iterate on it by hand over and over again.

1 comments

>without tests: Clone the repo, install deps, download testing database, achieve homeostasis with your dev environment, learn the entire system, build up the state you require to write your feature, iterate on it by hand over and over again.

My first job out of college was like that. I had been doing professional-ish (I was paid and employed but I basically worked alone with no other engineers around) work for two years but this still didn't raise any flags.

You basically quoted exactly the setup.