• 0 Posts
  • 3 Comments
Joined 1 year ago
cake
Cake day: August 16th, 2023

help-circle
  • Where I work there is a hardware test, where the voltage needs to be changed on the power supply like 8 times. Currently it’s done by hand.

    I gave that to a student with the description that I want that automated, let production show you how the test is done. If you have other ideas how to improve it, just do it.

    This was 8 working days ago for the student. She still hasn’t started, because she wants an exact description what needs to be done. If you want me to write down how exactly everything needs to be done, I might just write it myself in python and be done with it.



  • Other languages: if a is null return b.

    Rust: here is an array of strings, we are going to parse the array to numbers. If that conversion fails we handle the exception and return the minimum integer value. We then save the result in a new vector. We also print it.

    I like rust, but I hate the example too. It’s needlessly complex. Should have just been a.unwrap_or(b).