4 ms·
Legacy RPG code is usually not easy to understand. Each line of code can be conditioned with a series of Boolean indicators leading to a simple looking but comp
by russh 5y ago
Legacy RPG code is usually not easy to understand. Each line of code can be conditioned with a series of Boolean indicators leading to a simple looking but complex spaghetti code. One line of code may run if indicators 13, 23, and 90 are set and the next only if 56 is set followed by a line that runs if 13 and 90 are set. You could have 99 indicators plus reserved indicator per program.
This leads to pearls of wisdom like “An indicator is like an atomic bomb, nice to have but not something you want to use.” And “if you solve the problem with an indicator, then you’ll have two problems.”