News for hackers. Stuff that matters.
Re:Ask HN: Inherited the worst code and tech team I have eve... by 29athrowaway on Saturday September 17, 2022 @10:26PM (#32883816)
Exactly. If they write tests, they will be just doing TDD where the specification becomes a problem in itself.
Re:Ask HN: Inherited the worst code and tech team I have eve... by 41b696ef1113 on Sunday September 18, 2022 @04:54AM (#32885727)
It is a 12 year old legacy product. What specification exists other than, "Yesterday it did X when I clicked the button, but now it does not do that anymore."
Re:Ask HN: Inherited the worst code and tech team I have eve... by cpfohl on Sunday September 18, 2022 @07:25AM (#32886588)
This is the point: I don’t TDD, but i am a big fan of tests. I’m this case the incorrect spec can be flagged, but all the other incorrect specs will also be there. If your Fix doesn’t break a spec, great, but if it does you can check if that spec was correct. It’s a back and forth between code and business requirements