Tom Ramcigam (magicmarmot) wrote,
Tom Ramcigam

  • Mood:

The Delphi code is grotesque. In one case that I just found, there is a read of the serial port with a 10 ms timeout that is used to "clear the buffer". Problem is that it takes 50 ms to do one cycle, and the first program goes on, does another command, then it gets back a timeout result from the first read.

It's sprinkled with crap like that.

And there's a difference between seconds and milliseconds.

I just had to add code to my stuff to check for a timeout of less than some minimum and treat it as a special case where you don't want anything to happen. It's ugly.
Tags: codegeek

  • (no subject)

    Got a few small things done today. Fixed some light fixtures, replaced the shower head with one of those spasming dealy-bobs, got some stuff moved…

  • (no subject)

    Woke up from what I think was a dream with that line in my head. No context, other than it completely made sense. Yes, I am indeed awake, and for no…

  • (no subject)

    Done- de done-done. At least for the night. The old studio is no longer a studio, it's now a studio apartment of sorts. The walls are fixed, though…

  • Post a new comment


    default userpic

    Your reply will be screened

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.