this post was submitted on 21 Oct 2024
390 points (97.1% liked)

Programmer Humor

32475 readers
1525 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] CodingCarpenter@lemm.ee 21 points 3 weeks ago (1 children)

Ai is great for finding small flaws or reciting documentation in a more succinct way. But writing new code and functions? That's a fools errand hoping it works out

[–] flashgnash@lemm.ee 9 points 3 weeks ago* (last edited 3 weeks ago) (1 children)

I use it for writing functions and snippets all the time, at least in python and rust as long as you describe what you want it to do properly it works great

Example I used recently: "Please generate me a rust function that will take a u32 user id and return a unique RGB colour"

Generated the function, I plugged it in and it worked perfectly first time

[–] Flyberius@hexbear.net 6 points 3 weeks ago

To be honest yes. That is the sort of thing that sounds great. I have a little project I'm about to start so I'll take a look