13 points by Chrisszz about 7 hours ago | 5 comments | View on ycombinator
3192875 1 minute ago |
wrxd about 4 hours ago |
simianwords about 4 hours ago |
Two of the reasons I never liked writing tests is
- they didn’t seem to usually assert much internal logic
- they would have to be maintained along with the original code
I think scenario testing is much better instead because the actual way a person uses a feature hardly changes but the internals might change a lot.
So imagine I’m making an e-commerce website. There are lots of internal mechanisms. I’ll have an agent testing all the functionalities as if it were a customer. This gives me much much more confidence while writing code because it is more uncorellated with the code.
Tomorrow I can change a lot of internals but the testing agent stays the same.
There’s something to note though: not all code is possible to be scenario tested. Like data engineering and other things where the feedback time is huge.
He'll find that no one wants the new Redis vibe coded features that have to be propped up by blog posts. When it matters, people chose real software.