News for hackers. Stuff that matters.
Re:AI Makes Tech Debt More Expensive by MarcelOlsz on Thursday November 14, 2024 @03:53PM (#42141096)
It's containerized and I have a script that takes care of everything from the ground up :) I've tested this on multiple OS' and friends computers. I'm thankful to old me for writing a readme for current me lol.

>Please tell me this is satire.

No. I started doing TDD. It's fun to think about a piece of functionality, write out some tests, and then slowly make it pass. Removes a lot of cognitive load for me and serves as a micro todo. It's also nice that when you're working and think of something to add, you can just write out a quick test for it and add it to kanban later.

I can't tell you how many times I've worked on projects that are gigantic in complexity and don't do any testing, or use typescript, or both. You're always like 25% paranoid about everything you do and it's the worst.

Re:AI Makes Tech Debt More Expensive by sarchertech on Friday November 15, 2024 @06:22AM (#42145900)
>It's a huge motivator actually to write a piece of code with the reward being the ability to send it to the LLM to create some tests and then seeing a nice stream of green checkmarks.

Yeah that’s not TDD.

Re:AI Makes Tech Debt More Expensive by MarcelOlsz on Friday November 15, 2024 @06:36AM (#42146001)
Don't you have a book to get to writing instead of leaving useless comments? Haha.
Re:AI Makes Tech Debt More Expensive by sarchertech on Friday November 15, 2024 @07:10AM (#42146183)
More importantly I have a French cleat wall to finish, a Christmas present to make for my wife, and a toddler and infant to keep from killing themselves.

But I also have a day job and I can’t even begin to imagine how much extra work someone doing “TDD” by writing a function and then fixing it in place with a whole suite of generated tests would cause me.

I’m fine with TDD. I do it myself fairly often. I also go back in and delete the tests that I used to build it that aren’t actually going to be useful a year from now.

Re:AI Makes Tech Debt More Expensive by MarcelOlsz on Friday November 15, 2024 @07:59AM (#42146498)
Like I said above, I like the ability to scaffold tests using english and tweaking from there. I'm still not sure what point you're trying to make.
Re:AI Makes Tech Debt More Expensive by sarchertech on Friday November 15, 2024 @11:06AM (#42148139)
Your original point was that it was great to “write some code then send it to the LLM to create tests.”

That’s not test driven development.

Re:AI Makes Tech Debt More Expensive by MarcelOlsz on Friday November 15, 2024 @04:05PM (#42151036)
If you want to take the absolute least charitable interpretation of what I said and lambast me for it, sure.
Re:AI Makes Tech Debt More Expensive by sarchertech on Saturday November 16, 2024 @08:54PM (#42161327)
“write a piece of code with the reward being the ability to send it to the LLM to create some tests and then seeing a nice stream of green checkmarks”

You write code, then you send the code to the LLM to create tests for you.

How can this possibly be interpreted to mean the reverse?

That you write tests first by asking the LLM in English to help you without “sending the code” you wrote because you haven’t written it yet. Then you use those tests to help you write the code.

Now if you misspoke then my comment isn’t relevant to your situation, but don’t pretend that I somehow interpreted what you said uncharitably. There’s no other way to interpret it.

Re:AI Makes Tech Debt More Expensive by MarcelOlsz on Sunday November 17, 2024 @12:35PM (#42165498)
Ok you win.
Re:AI Makes Tech Debt More Expensive by sarchertech on Sunday November 17, 2024 @01:36PM (#42165933)
Thanks