theterrasque

joined 2 years ago
[–] theterrasque 5 points 3 days ago* (last edited 3 days ago) (1 children)

It regurgitates old code, it cannot come up with new stuff.

The trick is, most of what you write is basically old code in new wrapping. In most projects, I'd say the new and novel part is maybe 10% of the code. The rest is things like setting up db models, connecting them to base logic, set up views, api endpoints, decoding the message on the ui part, displaying it to user, handling input back, threading things so UI doesn't hang, error handling, input data verification, basic unit tests, set up settings, support reading them from a file or env vars, making UI look not horrible, add translatable text, and so on and on and on. All that has been written in some variation a million times before. All can be written (and verified) by a half-asleep competent coder.

The actual new interesting part is gonna be a small small percentage of the total code.

[–] theterrasque 2 points 3 days ago* (last edited 3 days ago)

I guess I'm one of the idiots then, but what do I know. I've only been coding since the 90s

[–] theterrasque 0 points 3 days ago

That's kinda wrong though. I've seen llm's write pretty good code, in some cases even doing something clever I hadn't thought of.

You should treat it as any junior though, and read the code changes and give feedback if needed.

[–] theterrasque 3 points 3 days ago* (last edited 3 days ago) (1 children)

I've used Claude code to fix some bugs and add some new features to some of my old, small programs and websites. Not things I can't do myself, but things I can't be arsed to sit down and actually do.

It's actually gone really well, with clean and solid code. easily readable, correct, with error handling and even comments explaining things. It even took a gui stream processing program I had and wrote a server / webapp with the same functionality, and was able to extend it with a few new features I've been thinking to add.

These are not complex things, but a few of them were 20+ files big, and it manage to not only navigate the code, but understand it well enough to add features with the changes touching multiple files (model, logic, view layer for example, or refactor a too big class and update all references to use the new classes).

So it's absolutely useful and capable of writing good code.

[–] theterrasque 3 points 2 weeks ago

"Better shoot some blacks to avenge it"

[–] theterrasque 1 points 3 weeks ago

I've found it useful to write test units once you'we written one or two, write specific functions and small scripts. For example some time ago I needed a script that found a machine's public ip, then post that to an mqtt topic along with timestamp, with config abstracted out in a file.

Now there's nothing difficult with this, but just looking up what libraries to use and their syntax takes some time, along with actually writing the code. Also, since it's so straight forward, it's pretty boring. ChatGPT wrote it in under two minutes, working perfectly on first try.

It's also been helpful with bash scripts, powershell scripts and ansible playbooks. Things I don't really remember the syntax on between use, and which are a bit arcane / exotic. It's just a nice helper to have for the boring and simple things that still need to be done.

[–] theterrasque 4 points 3 weeks ago (2 children)

Just can’t waste time on trying to make it do anything complicated because that never goes well.

Yeah, that's a waste of time. However, it can knock out simple code you can easily write yourself, but is boring to write and take time out of working on the real problems.

[–] theterrasque 1 points 3 weeks ago

When you cosplay as judge dredd, it's exactly how it works

[–] theterrasque 7 points 3 weeks ago (2 children)

We don’t even know who killed the guy yet

It doesn't matter at this point, the current narrative has already picked up too much steam

[–] theterrasque 12 points 3 weeks ago (1 children)

uh.. So that's it, the apache server version? That's all? I looked at the critical cve's for that version, and honestly, they'd require a pretty specific setup to be abused if I understood them correctly. Most of them were various DoS with no information disclosure, and the only spooky one I saw require the server to have scripts the server is allowed to execute, but outside of the normal url mapping. Which then would have to be disclosing some info or doing something spooky. The rest seem to require the attacker to control the app behind the apache2 server.

Would be better to upgrade, of course, but it looks nowhere near as bad as the blog author makes it sound.

[–] theterrasque 5 points 1 month ago (1 children)

Damage to company or rich people's property? Why, that sounds like terrorism

[–] theterrasque 8 points 1 month ago (6 children)

This case also highlights how the use of artificial intelligence (AI) can potentially contribute to the development of preventable adverse health outcomes. Based on the timeline of this case, it appears that the patient either consulted ChatGPT 3.5 or 4.0 when considering how he might remove chloride from this diet. Unfortunately, we do not have access to his ChatGPT conversation log and we will never be able to know with certainty what exactly the output he received was, since individual responses are unique and build from previous inputs.

However, when we asked ChatGPT 3.5 what chloride can be replaced with, we also produced a response that included bromide. Though the reply stated that context matters, it did not provide a specific health warning, nor did it inquire about why we wanted to know, as we presume a medical professional would do.

https://www.acpjournals.org/doi/10.7326/aimcc.2024.1260

 

I subscribed to !localllama@sh.itjust.works and while posts show, all of them show 0 comments.

If I go to https://sh.itjust.works/c/localllama it shows all posts having comments.

view more: next ›