• 5 Posts
  • 166 Comments
Joined 1 year ago
cake
Cake day: June 20th, 2023

help-circle







  • vrek@programming.devtoaww@lemmy.worldNew game!
    link
    fedilink
    English
    arrow-up
    43
    arrow-down
    1
    ·
    15 days ago

    If your dog is ever running and you can’t catch them act hurt. Pretend to fall and hurt your knee. Most likely it will come back and check on you and you grab it, unless it’s playing with something else then good luck


  • I had that experience last week. I half blame the language though cause the way it works is you don’t initialize a variable, first time you use it the language automatically makes the variable and default value is 0.

    I had a variable countoot that I had a formula calculate. Then a simple if countoot > 0 do this else do that. The program kept doing that. I knew countoot should be 2. I manually did the formula … The answer was two.

    I did the same formula in 3 other programs and it worked correctly. I spent between 1.5 to 2 hours a day for like 3 days banging my head on the desk trying to figure out why it would work. Fourth day me and 2 other guys were trying to figure it out when I finally really looked closely. I realized the formula result was stored in ccountoot(notice 2 c) and the if statement was based on countoot(notice 1 c)…yeah I felt so stupid when correcting the typo fixed the problem.


  • It might be a side effect of my work environment. I make the equipment that tests electronic medical implants. Theoretically if a unit put 1A of charge out instead of 1ma that could kill a person. Now on a practical level that’s not possible with our devices and even if it was we should be able to identify and prevent that unit from reaching the field.

    Yes you are right, you want 99.99% uptime you need this stuff. In the field I’m in a single case escaping test can be months of engineering time to investigate, root cause analysis to determine the actual cause, expensive fixes for the short term and even more expensive fixes in long term to upgrade everything so it never happens again.

    Boss being unhappy that you missed something is minor. Their boss’s boss’s boss is the real issue. That said we get regularly audited both in-house and external agencies so it’s unlikely. Multiple lines of defense, have a computer check it, have a person check that the computer actually checked it, have a computer verify that the person actually verified it. Have each of those systems regularly audited and verified to be effective.

    It’s expensive but it is what is needed to be in this field.


  • Ok,this maybe too nerdy of a topic for here but that’s why I love unit tests.

    Basically I write a piece of code that gets this input and generated that output. I also make a test to verify that I get a certain output given a certain input.

    Now if I spend all day futzing within that code , changing variable names, refactor and extract a large function to 10 small ones, decide to re-write all the SQL queries to linq arguments…I can fuck up and tests may fail. I fix the failing code to still pass the test. I know I delivered code that met the requirements, hopefully improved it, but I know I didn’t fuck it up enough to not do what it’s expected to do.

    Plus source control…I mess around with code, my tests all pass…I commit it…I mess around more, can’t get the tests to pass, oh well quitting time roll back to previous working commit. Boss may be mad I didn’t improve it but at least I didn’t break it. Zero gain day is better than negative gain…




  • The difference is in exact wording Agile: the software shall properly authticate a user within our active directory.

    Documention : user authentication will be provided by functions ”valisate username” as described in section 14,7 subsection 4, ”validate password” as described in section 16.2 and validate the correct pasword as described in section 23.4.Proper authication to the correct use group shall comply with the requirements in document 654689 section 64.7 subsection 17

    Yes there is a difference and one is better…


  • I don’t know about Georgia but at least in New Jersey that’s not allowed. Not only that buts it’s defense choice of attorney.

    Several years ago, I was in legal trouble. I was recommended a lawyer by a distant family friend. That lawyer happened to be the wife of the lead prosecutor.the lead prosecutor was immediately dismissed from the case and another prosecutor appointed.

    I got off with a light sentence and have cleaned up my life. That said who knows what would of happened if I had a different lawyer, the prosecutor was notorious for being hard and firm in his cases. I probably would of fared worse but he couldn’t touch the case and a junior prosecutor was assigned. As I said different state so different lawyers but kind of makes sense. You can’t monitor opposing benches communication or shared knowledge or deals…a lot of political questions not typically worth dealing with.






  • I know that for FDA or BSI we can’t offer anything at all. We can’t even let them use our building water to drink, they must bring there own water.

    One time we worked with the FDA to help expose some new auditors to a real audit(we were not really being audited but told to treat it like a real audit). One of the new auditors didn’t bring anything to drink, assuming there would be water provided. Nope, the senior auditor made them sit there all morning being thirsty and when we broke for lunch the new auditor went across the street to CVS and bought a bottle of water. I felt kind of bad for them. But every other day they arrived with a big bottle of water :-D