News for hackers. Stuff that matters.
Re:The Last 1% by Pxtl on Tuesday August 08, 2023 @09:12PM (#37057589)
Those don't sound like 1%. They sound like a lot more than that. Which is why they don't get done. Who has the time?
Re:The Last 1% by huganabaga on Wednesday August 09, 2023 @02:05AM (#37059218)
Everybody has time to write an automated test. If you don't, then you don't have time to write code in the first place.

That's the difference between professional software engineering and just hacking something quick in your free time.

You wouldn't ride a motorbike at 150mph on a German autobahn if it was put together by your neighbor with parts from a junkyard in an afternoon. Unclear to me why you'd treat software any different.

Re:The Last 1% by Pxtl on Wednesday August 09, 2023 @09:49AM (#37062618)
Fair, automated tests are important, but it's still ludicrous to call automated testing "1%". It's a lot. And let's be real - there isn't always the time, requirements being what they are, especially for properly isolated unit tests. But I'm always an advocate for a "worse-is-better" integration-test-script that requires a full test environment rather than having to build a full mock architecture. Unit tests are the gold standard, but a few integration tests per-feature are a good bare minimum.