>
There is a lot of IF in the code to form a ring. Typical codemonkey approach. :)>
>It is certainly a whole lot easier to refactor some code monkey's algorithm that writing your own from scratch.
It is so much more fun (satisfactory) to have a fancy algorithm that is more complicated by a magnitude of 2 then code monkeys way.
;)
It was more a hint to think outside the typical if-then-else thing. (On this I value a degree in informatic sience I do not own.)
Update:
It's more a problem with the lang I'm working today. It's a graphical approach and every IF statement is very large and a single case will fill more then two screens. I do stuff like forming a ring and with modulo it's just a single (or to be exact three blocks since I run between 1 and limit) block. Much much better.
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord
Weeks of programming can save you hours of planning.
OffThere is no place like [::1]