[crossfire] Moving server towards a modularized system?

tchize tchize at myrealbox.com
Thu Jan 26 09:02:56 CST 2006


Le Jeudi 26 Janvier 2006 00:17, Miguel Ghobangieno a écrit :
> Yes, "spagetti code", if that's what you wish to call
> it. Some CF programmers, such as Cave, would like to
> beable to reuse their code without having to recopy
> and paste what they have allready done (which would
> create bloated code if it was required). Modules would
> disallow this (bad) as they are not loaded untill they
> are called. Call it what you will but this is why
> subroutienes were invented (subroutines, in assembly,
> are basically gotos... :) ) so you didn't have to
> paste the same code everywhere.

That goes in modules dependencies, helper methods gets on a common root.
Spaghetti code happens when this occurs without limits (eg a method in loader 
call a method in socket which itself calls a methods in player which itself calls back the socket!)
Code reuse happens in modularized code too!



More information about the crossfire mailing list