Technology
This is a most excellent place for technology news and articles.
Our Rules
- Follow the lemmy.world rules.
- Only tech related news or articles.
- Be excellent to each other!
- Mod approved content bots can post up to 10 articles per day.
- Threads asking for personal tech support may be deleted.
- Politics threads may be removed.
- No memes allowed as posts, OK to post as comments.
- Only approved bots from the list below, this includes using AI responses and summaries. To ask if your bot can be added please contact a mod.
- Check for duplicates before posting, duplicates may be removed
- Accounts 7 days and younger will have their posts automatically removed.
Approved Bots
yeah but then you have to fix everything in the code that they didn't get right.
like using it to automate a shell is fine; but trusting it blindly and treating it as the finishing product? you're delusional.
It says it will finish the code, it doesn't say the code will work.
Also just because the code works, doesn't mean it's good code.
I've had to review code the other day which was clearly created by an LLM. Two classes needed to talk to each other in a bit of a complex way. So I would expect one class to create some kind of request data object, submit it to the other class, which then returns some kind of response data object.
What the LLM actually did was pretty shocking, it used reflection to get access from one class to the private properties with the data required inside the other class. It then just straight up stole the data and did the work itself (wrongly as well I might add). I just about fell of my chair when I saw this.
So I asked the dev, he said he didn't fully understand what the LLM did, he wasn't familiar with reflection. But since it seemed to work in the few tests he did and the unit tests the LLM generated passed, he thought it would be fine.
Also the unit tests were wrong, I explained to the dev that usually with humans it's a bad idea to have the person who wrote the code also (exclusively) write the unit tests. Whenever possible have somebody else write the unit tests, so they don't have the same assumptions and blind spots. With LLMs this is doubly true, it will just straight up lie in the unit tests. If they aren't complete nonsense to begin with.
I swear to the gods, LLMs don't save time or money, they just give the illusion they do. Some task of a few hours will take 20 min and everyone claps. But then another task takes twice as long and we just don't look at that. And the quality suffers a lot, without anyone really noticing.
Why would unit tests not be written by the same person? That doesn’t make a lot of sense…
Great description of a problem I noticed with most LLM generated code of any decent complexity. It will look fantastic at first but you will be truly up shit creek by the time you realise it didn't generate a paddle.
I was going to say. The code won’t compile but it will be “finished “
A couple agent iterations will compile. Definitely won't do what you wanted though, and if it does it will be the dumbest way possible.
Yeah you can definitely bully AI into giving you some thing that will run if you yell at it long enough. I don’t have that kind of patience
Edit: typically I see it just silently dump errors to /dev/null if you complain about it not working lol
Ooh, unemployment! How exciting! I love Microsoft now.
Seriously who the hell are they trying to sell this to?
Are they just that desperate to keep the hype train going?
Business owners. People that don't want to spend money on annoying stuff like wages.
The circlejerk of tech bros and busidiots who haven't built a damn thing in their lives.
Copilot, turn on the gas stove without the pilot. Copilot, in 3 hours light the pilot.
My Windows automatically read these instructions from my screen and I died!
You forgot to follow it up with “copilot: open windows” then.
Username checks out
Copilot keeps finishing my code for me in near real time... it completely disrupts my train of thought and my productivity dropped tremendously. I finally disabled it.
I LIKE writing code, stop trying to take the stuff away that I WANT to do and instead take away the stuff I HATE doing.
What I don't want AI to do:
- write code for me
- write fixes for me
What I want it to do:
- find bugs and tell me about them (but still don't fix them)
They do have ones that will review your prs. That's pretty neat
Yeah, I just wrote a blog post comment about how I enjoy using Copilot. But that's when I explicitly ask it a question or give it a task. The auto complete is wrong more often than it's right.
Probably doesn't help that if it was tedious, boilerplate code I would have already explicitly asked it.
I like auto complete because I'm a terrible speller I'd write "int countOfCommplixThang", but auto complete guesses "int countComplexThing" Sometimes it even comes up with a better name than I would
That old autocomplete is great. It's specifically the AI autocomplete that's less useful.
The AI is doing it though. I type "in [tab]" and I get the whole line. Sometimes I don't even have to type anything.
I've never been able to get an AI promt to write useful code though.
yes but all the code will be wrong and you will spend your entire day chasing stupid mistakes and hallucinations in the code. I'd rather just write the code myself thanks.
Yeah! I can make my own stupid mistakes and hallucinations, thank you very much!
I had a bit of a breakthrough with some personal growth with my code today.
I learned a bit more about entity framework that my company is using for a project, and was able to create a database table, query it, add/delete/update, normal CRUD stuff.
I normally work mostly on front end code, so it was rewarding to learn a new skill and see the data all the way from the database to the UI and back - all my code. I felt great after doing a code review this afternoon to make sure I wasn’t missing anything, and we talked about some refactoring to make it better.
AI will never give you that.
I was finished with Windows before Microshit finished Copilot.
But, will it work, huh? HUH?
I can also type a bunch of random sentences of words. Doesn’t make it more understandable.
but can YOU do it before I finish my coffee?
My problem is that the dev and stage environments are giving me 502 gateway errors when hitting only certain api endpoints from the app gateway. My real problem is devops aren't answering my support tickets and telling me which terraform var file I gotta muck with and tell me what to fix on it. I'm sure you'll be fixed soon though right copilot?
By the headline statement, that it should be complete and works 100%. Big doubt.
No, just complete. Whatever the dude does may have nothing to do with what you needed it to do, but it will be "done"
But... But I don't want it to. 😮💨
Make it de the shit I don't want to do, then we'll talk