• 0 Posts
  • 19 Comments
Joined 5 months ago
cake
Cake day: February 5th, 2025

help-circle





  • Probably just to save money really.

    That always helps. It also helps politically that M$ is based in a country that’s outraging the Danish people on a fairly regular basis…

    same thing with 365 but we do a lot of traveling

    Back in 1990-something, I got our office using Ami Pro - it was a vastly superior word processor to anything else available at the time. Then, a couple of years later, we started sharing documents back and forth with business partners via dial-up internet and that was the end of Ami Pro, all our partners used M$ and file format translation / import / export was nigh impossible in those days.



  • I have been more successful with baby steps like: “Write a python 3 program that converts X to Y.” Tweak prompt until that’s working as desired, then: “make it work recursively through all subdirectories” - and again tweak with specifics like converting the files in place, etc. Always very specific, also - force it to fix its own bugs so you can move forward with a clean example as you add complexity. Complexity seems to cap out at a couple of pages of code, at which point “Ooops, something went wrong.”



  • I frequently find myself prompting it: “now show me the whole program with all the errors corrected.” Sometimes I have to ask that two or three times, different ways, before it coughs up the next iteration ready to copy-paste-test. Most times when it gives errors I’ll just write "address: " and copy-paste the error message in - frequently the text of the AI response will apologize, less frequently it will actually fix the error.


  • The first half dozen times I tried AI for code, across the past year or so, it failed pretty much as you describe.

    Finally, I hit on some things it can do. For me: keeping the instructions more general, not specifying certain libraries for instance, was the key to getting something that actually does something. Also, if it doesn’t show you the whole program, get it to show you the whole thing, and make it fix its own mistakes so you can build on working code with later requests.



  • I ask AI to write simple little programs. One time in three they actually compile without errors. To the credit of the AI, I can feed it the error and about half the time it will fix it. Then, when it compiles and runs without crashing, about one time in three it will actually do what I wanted. To the credit of AI, I can give it revised instructions and about half the time it can fix the program to work as intended.

    So, yeah, a lot like interns.