[okfn-labs] Blog post about PyBossa speedups

Daniel Lombraña González teleyinex at gmail.com
Fri Dec 14 08:38:22 UTC 2012


Great!!!

I've added some comments on the Github issue and I would say that this is
the way to go!!! At the same time, yesterday I applied several caches the
to PyBossa framework and now the app seems to fly :-) I'm still working on
this, but if you load the front page from Crowdcrafting.org or
ForestWatchers.net/pybossa you will feel the difference.

We can keep the discussion in the Github issues.

Cheers,

Daniel


On Thu, Dec 13, 2012 at 10:49 PM, Gregor Aisch <gregor.aisch at okfn.org>wrote:

> As far as I know it's not implemented in the example apps yet, but it's
> implemented in this app:
> https://github.com/PyBossa/app-lobbyfacts
>
> I think making this the default is a great thing, but I would go one step
> further and improve the whole app development.
>
> As described in my post, there're essentially two hooks the user need to
> plug into: *loadTask* and *presentTask*. In loadTask, or more precisely,
> taskLoaded, the app gets a task object that has just been loaded (or
> pre-loaded) along with a deferred. Then you can load data from additional
> APIs or fetch some images, and as you're ready you resolve the deferred.
> Same with presentTask, in which you get a task and a deferred, update your
> UI, set your event handlers and eventually resolve the deferred as the user
> has come up with a solution.
>
> The entire rest of the magic should be handled by pybossa.js, without any
> line of code in user apps. pybossa.js would ensure that tasks are
> pre-loaded, that the url hash for the task is updated, the answers are
> submitted etc.
>
> Will forward this discussion to Github.
>
> -Gregor
>
>
> Am 13.12.2012 um 22:33 schrieb Tom Morris <tfmorris at gmail.com>:
>
> On Thu, Dec 13, 2012 at 3:43 PM, Gregor Aisch <gregor.aisch at okfn.org>wrote:
>
>> Hi,
>>
>> Accidentally almost simultaneously with Stefan I pushed a blog post about
>> how to speed up PyBossa apps by pre-loading upcoming tasks while the user
>> is solving the current one.
>>
>> http://okfnlabs.org/blog/2012/12/12/speeding-up-pybossa-apps.html
>>
>>
> Background task loading should be the default.  Is this implemented in the
> example apps so people who just do a simple minded copy get it?
>
> Other keys to fast and efficient working include:
> - Undo always available
> - Keyboard shortcuts (e.g. arrow keys) for all voting actions
>
> Tom
>
>
>
> _______________________________________________
> okfn-labs mailing list
> okfn-labs at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/okfn-labs
> Unsubscribe: http://lists.okfn.org/mailman/options/okfn-labs
>
>


-- 
··························································································································································
http://daniellombrana.es
http://www.flickr.com/photos/teleyinex
··························································································································································
Por favor, NO utilice formatos de archivo propietarios para el
intercambio de documentos, como DOC y XLS, sino PDF, HTML, RTF, TXT, CSV
o cualquier otro que no obligue a utilizar un programa de un
fabricante concreto para tratar la información contenida en él.
··························································································································································
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/okfn-labs/attachments/20121214/b5a60e13/attachment-0002.html>


More information about the okfn-labs mailing list