Scifabric / pybossa-stats

PyBossa application Stats
GNU General Public License v3.0
0 stars 0 forks source link

programme is all in one very very long function which does more than thirty things #1

Closed mk270 closed 11 years ago

mk270 commented 11 years ago

see https://www.kernel.org/doc/Documentation/CodingStyle section 6 for why this is hard for others to read

teleyinex commented 11 years ago

Yes, that's why I've integrated it properly in PyBossa with functions, caches, proper SQL queries, etc. :-) (see stats.py)

This was a hack and now I need to improve it here, but I think this package is not necessary anymore because any PyBossa app now has its own proper stats pages in the server cached for 24 hours.

mk270 commented 11 years ago

Ok. That's quite a bit better.

There is still the problem that each function huge amounts of duplicated code, which gets in the way of seeing what the function actually does