Re: Code reworking: directory structure
Reply #1 – December 20, 2012, 06:52:15 pm
Option 3: Reduce the number of files. Really.
Re: Code reworking: directory structure
Reply #2 – December 20, 2012, 07:09:49 pm
I really don't think that will happen soon (at all). We do where appropriate, but it cannot be done just like that: on the contrary, 4000-lines files is insane. (usually; and those doing everything under the sun and don't forget their mother's shoes, moreso.) 1/ I'll note that the redesign we're doing already removes code, because it removes duplicate code. (by consolidating the duplicate common stuff in library functions). Sometimes it does arrive to the point of removing useless files, yes, but more often than not, it doesn't. (not now, for a 1.0+ version). 2/ The longer-term goal is to redesign the code such that features/functionality become more modular. Which answers the "reduce the number of files" differently: the admin can always remove (or not download and install at all) the modules. ETA, 3/ Well hey, we cannot have new features without adding new code. 1/ and 2/ exist exactly to address that. Make it possible, with better designed code.