• 0 Posts
  • 141 Comments
Joined 1 year ago
cake
Cake day: January 24th, 2025

help-circle









  • Yeah, I wonder sometimes if people who fail tonget usable code are

    1- Asking it to do much at once.

    2- Don’t actually understand the problem or coding enough to ask it to do the right thing.

    If you say, “Write a program that does X”, it will most likely fail to give you what you want.

    It works great if you break it down into parts.

    Write a program that takes this databas input and converts it this way.

    Now uodate it so the output gets displayed this way.

    Adjust the colors.

    Add the ability to save the output in this format.

    This looks good but I need to swap these parts of the output and add this data to the output.

    That sort of iterative, step by step process. Or even just, when there are bugs, give it the error output, explain that X needs to be Y. Also, at some point you may need to also look at the code. I had an issue where it was running twice on some data and after looking at it I realized it was processing things as images and links, because the links had images (but images did not always have links). I explained this problem, and pointed to where it was and it fixed it.







  • They are also great for programming one off personal projects that frankly, don’t have the use scale that needs rigerous security oversight. Especially since like, if you did it yourself, you probably were not sanitizing the inputs (etc) anyway. You were slapping down some Python code and moving on.

    Like, I don’t care if my script to convert Wordpress exports to Markdown files crashes if you feed it a JPEG. I am the only one using it, for this data manipulation task.





  • I have a book sort of like this. SevenEves by Niel Stephenson.

    The book blows up (or gets hit or something). The dist will make earth uninhabitable within a few years. I want to say Seven Years. I remeber the SevenEves title has many possible “meanings” and I think years to collapse was one.

    They basically work to get as many people as they can, which isn’t many, into space working with the small crew of a (larger than ISS but not huge) space station. Including all of the logistics of food and housing.

    They also have to manage it in a way as not to cause a panic because billions of people, will die. Because they literally cannot send everyone.

    The first two thirds are pretty good, the lattwr third jump to the future and fallout and I hated that part, but the first part is good.