• 1 Post
  • 116 Comments
Joined 2 years ago
cake
Cake day: June 20th, 2023

help-circle






  • I saw a talk recently, I can find the video if you like but pretty sure it was the most recent ND conference, where they made the point that a lot of lack of efficiency in modern code is because of large companies. Basically in alot of cases it’s more important to get a product out ASAP then to care if it was well done. Ok, a poorly written program may cost an extra $10,000 a month to run but if it earns them a million a month and saves 6 months of development time it pays for itself and they can eat the cost.

    This seems like the case with renting vdis instead of fixing the program.











  • I worked on a laser seam welder which basically was programmed in a mix of g code and I guess vb??

    The fun part was variables could only be numbers between 100 to 999. So let’s say you have a sensor and need to verify it’s within a certain range. You could set #525 to 10 and #526 to 20 then say #527 = sensor 1 signal. Now lower down you verify it as if(#525 > #527 || #526 < #527){show error}

    Now you could create each variable at the beginning with comment of what it was but then have to keep referring to the top to remind yourself what number was what. Or create the variable at first use so it was closer but now it’s spread across the document.

    I went with first case and just printed out the first 2 pages which listed all the variables.

    Before you ask, I talked to the guy who wrote the language and made the system many times he confirmed you couldn’t use variable names.