Hacker News
new
past
comments
ask
show
jobs
points
by
egonschiele
3 hours ago
|
comments
by
dualvariable
3 hours ago
|
next
[-]
I've seen a lot of human-written tests that wind up testing the testing framework and not the actual code.
reply
by
djjdfjjddndn
2 hours ago
|
parent
|
[-]
yeah but it'll be one or two at a time that you find like that. LLMs will output two dozen tests for one line of real code, where you maybe needed one
reply
by
cagz
1 hours ago
|
prev
|
[-]
My workflow is: - Write the test first, confirm it fails - Write the minimum code to make that test pass - Confirm it is green
reply
by
t-writescode
25 minutes ago
|
parent
|
[-]
TDD like this is a very good system for a lot of things, especially brownfield development - gotta make sure you understand the error space before you know you’ve fixed the error. :D
reply