Page 1 of 1

Clean source code

Posted: Tue Dec 10, 2019 4:29 pm
by Otto
Hello,
I have an old source code. There is an input screen with many controls on it.
If you change one of the controls all others are updated. This is done by one function.
But there are many parameters to pass. Sure this could be done better.
But now I had to make some changes.

Image

This is the source code "monster".

Image

But now Harbourino comes into action

Image

Define a Harbourino include file. This way you only have one place to check everything.

Image

Change the source code to Harbourino style.

Image

Now all is very easy to follow.
Best regards
Otto