08-29-2022, 06:55 PM
(08-29-2022, 12:18 AM)TempodiBasic Wrote:Quote:Personally, I'd convert EVERY line of C code to a Basic comment, then start opening it up, adding spaces and blank lines, dividing it into blocks and figuring out what each block does, and what each line within each block does.Lol, it spends a lot of time!
It is methodical. It is useful if you are going in cold, with no idea how the original program works. How long it takes depends on the complexity of the original source. If the source is organized into sections or blocks which can be isolated, then as you figure out how each section works you can rewrite that section or block in Basic.
I'm doing this to one of my old programs, translating from Lua to Basic. Rather than rewrite from scratch and go through all the debugging and fine tuning needed, I'm just translating and improving my old program. I'm not under any productivity quotas, so there is no hurry.
Now that I've done the interesting part of solving the major problems, I just need to motivate myself to do the tedious part and finish the job.