fiji / Colocalisation_Analysis

Fiji's plugin for colocalization analysis
http://imagej.net/Coloc_2
GNU General Public License v3.0
24 stars 18 forks source link

Gadgets: Simplify by Factoring out the DataContainer??? #38

Open chalkie666 opened 9 years ago

chalkie666 commented 9 years ago

Why? Because it is complex and opaque making dev harder, especially for developers who are new to this plugin?

idea from Dscho - run through the de-Torvalds filter:

The DataContainer is cute, if perhaps rather over-engineered. The makes it hard to sit a new developer (or Dan White) in front of the Coloc2 source code and figure out how its working. Example: its hard to figure out where the color map is set. Example: Due to the many indirections in the container, it is pretty tricky debug into it. (Dan wonders what "indirection" is, and has to check on Wikipedia...)

A solution might be to: First, make everything explicit (again). Remove the DataContainer and replace it with direct data flows that are easier to follow and understand, building on the nice ResultHandler idea. The SingleWindowDisplayand pdf outputter implementations of ResultsHandler are two completely separate things... and should do their own thing, but use the same data.