this post was submitted on 01 Apr 2025
512 points (96.7% liked)

Programmer Humor

22155 readers
3316 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 32 points 1 day ago (9 children)

When I used to do image and signal processing for embedded systems in C and C++, AI was useless. Now that I do backend web development in Python and Ruby, AI is better than me. It really depends on the problem area and how many sample code and answers are out there for it to steal from.

[–] [email protected] 30 points 1 day ago (1 children)

I do backend development in PHP and Ruby, and AI sometimes has a suggestion that helps me out but is often completely, utterly useless, especially at actually coding the thing from scratch.

[–] [email protected] 14 points 1 day ago* (last edited 1 day ago) (1 children)

Yeah lol, a lot of "I need to do X" and I often get "use functionThatDoesX then" and sometimes it's a wonderful discovery, most often though it just doesn't exist lol

[–] [email protected] 7 points 1 day ago

I asked gpt for code to aim a heliostat

It needed a module to get the sun's position, it used sun::alt:: azimuth which doesn't exist rather than Astro::Coord::ECI::Sun

It needed a module to calculate mirror angle between the Sun's altitude and azimuth and the target altitude and azimuth. It left that commented out rather than selecting the altitude halfway between Sun and target and azimuth between Sun and azimuth

It turns out there's precious little on the internet on how to aim a mirror, partly because it's not popular, partly because it's dead simple

load more comments (7 replies)