Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
M1sf3t55127dSounds like time to scrap it and get a new one. What I'm telling most of my customers these days anyway 😅
Even if I rewrite it would took at least 6 month (that is the best estimate)
The program is the core component which a lot of another programs depend upon so I cannot scrap it as I want.
When I was writing the program I can recall even to the tiniest arcane detail and now I cannot even list the major feature.
Voxera77697dI know the problem but I learned the lesson long before I started building professional software.
A small hobby program written in gw basic, it is one of the varieties using line numbers.
I was “very clever” in reusing code and “avoiding unnecessary number if lines” which caused the code to have very long lines :/.
You could write multiple statements on the same line using ; and using gosub you could even jump out and back into the same like.
But the resulting code was unintelligible about 2 weeks after it was finished.
I have never repeated that mistake, at least not to the same degree;)
The problem I cannot seen to figure out is that I am doing math operation with constant.
I cannot seem to remember what that constant do. Of course there is constant name but it is too generic. The only thing I can remember is that it have to do with business goal.
I also cannot remember why I do certain path manipuliation.
I learnt my lesson but it always pain to look at your older code.
Nanos96307dFX [ Looks at code he wrote 35 years ago and tries to figure out how it works.. ]