← Back to team overview

kicad-developers team mailing list archive

Re: Decoupling issues with python


On Wed, Aug 15, 2012 at 10:43:33AM -0500, Dick Hollenbeck wrote:
> You seem to have a good grasp of the problem & its magnitude.

Tragical past experiences... had to maintain a GTK1 project (an OBD
tester) which displayed car parameters in 8 panes: each panes had
value, min/max unit of measure and so on, plus a couple of button to
freeze, change parameter and such easy things.

The *genius* which implemented this had copied the wholes fscking code
for a pane in each single event function (simply changing variable names
and the constant indices into param array). Had to change panel
behaviour XD

Before refactoring: >15KLOC of C (few or no comments)
After refactoring: about 2KLOC commented

Took two weeks of full time work:(((

Lorenzo Marcantonio
Logos Srl