in reply to Re: Code style question
in thread Code style question

Really? I thought I was the only using that! Back in the Turbo Pascal days, indents levels were all over the place, and I settled on 3 for exactly the reasons you mentioned. Been using it ever since.

Seeking work! You can reach me at ikegami@adaelis.com

Replies are listed 'Best First'.
Re^3: Code style question
by Marshall (Canon) on May 20, 2021 at 19:21 UTC
    Wow, Turbo Pascal! That brings back memories...

    I hired a guy to write a test program for me. Running 24 hours per day, it took about 5 days to reach a result.
    I knew that the problem lay in a buffer compare routine.
    I had the guy rework the code such that this was a sub which "touched" all the vars that I needed.
    I took the floppy back to my office and hacked in the binary code for the new "string" operations that Intel had for the 80186. Cut the execution time down to about 8 hours.

    PS: I still have a pre-production 6 Mhz IBM PC with a 5MB Quantum hard card. Free to anybody who wants it. Production models were 8 Mhz. This thing boots and works, even has Lotus 123 on it!

Re^3: Code style question
by Marshall (Canon) on May 20, 2021 at 16:12 UTC
    This 3 has very solid evidence in CS studies. And for the reasons that we both agree upon.