this post was submitted on 02 Jan 2026
92 points (98.9% liked)
Programming
24318 readers
305 users here now
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Rules
- Follow the programming.dev instance rules
- Keep content related to programming in some way
- If you're posting long videos try to add in some form of tldr for those who don't want to watch videos
Wormhole
Follow the wormhole through a path of communities !webdev@programming.dev
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
The LLM basically just did the work once for the sample data set, so all the computation happened up front.
If that was the only data set we’d ever need, and the data set didn’t change realtime based on sensors then … hell yeah that gross switch woulda worked 😂
Ah ok... That makes sense. I was thinking like generate a stream of data, data comes in some format like (string dataType, float dataValue) and a switch like case int{do this} case string {do that} then get new data and repeat while(true).
If it only was calculating based on the test case yeah that's bad.
I told this before but I had a project which had an xml configuration of many sections each targeting something different. I wanted each section as an object. This was a system of many combined systems like one dmm, one custom automated shield box, one bluetooth tester, etc. Each needed specific data to connect to it and configure it for the tests we wanted to run. This was all I needed in the xml file.
So I coded 1 function to read 1 section of the xml file and map it to an class object. I then copied that into Ai, copied configuration file into Ai, and told it to replicate it for each section. That worked. I think Ai can be used in specific circumstances where you are doing like repeated operations but it gets grossly overused. You also have to know the domain and the language to understand what it's doing.
Another example is I was asked to make a sql query which was basically a join(serial number and test guid in one table, test guid and test results in another table and only given serial number). My boss sent me a list of like 150 serial numbers separated by spaces over teams. I wrote the query for the first one and told the Ai to replicate it on the other serial numbers. Yes I could of gone through the list, backspace the space, add common, press enter and repeat. I knew how the query worked. I know the domain I was working in. The Ai output was basically the same as my original just with more serial numbers in the where clause.