|
|
|
|
|
by HackerQED
640 days ago
|
|
Great, and the more you know about software engineering, the better it would perform. IMO, the 1st law of SE is about creating a bounded context, to make any junior can work like a senior. And Cursor is a really hardworking and smart junior. |
|
One thing I dislike about TDD is I sometimes think better in code than use cases. And stuff like mocks etc take far longer to write than a 5 line fix. Say, I have a repo where it takes variable from source A when X happens, and source B when Y happens.
Now I can do reverse TDD. I write the code first. I highlight my code and tell Cursor to write the tests. I tag all the classes and models and other things that I want Cursor to mock. It writes the test, the tests pass, green. Then I stage the code that I wrote, and those tests should fail, red. It also finds all the dumb things I missed out on like imports.
So there, I have a pair programmer that writes the 300 lines of tests while I write the 5 lines of functional code, no worries about hallucinations and all.