The whole rewrite took approximately 10 weeks. Personally, I feel the quality 
of the new code is very good, but I may be biased ;-)

In all seriousness though, the separation of views keeps things very contained 
and simple. If you can get everything your app needs in the back-end to be 
accessible via an HTTP API (or a bridge.js API), it helps keep the logic 
contained in the views very simple and straightforward. Also, being able to 
broadcast events to all views via bridge.js made it incredibly easy to keep the 
UI in sync with the back-end. In the old code, there was a fair amount of 
complexity involved in keeping the Player view synced up with the remote 
control interface (lock screen, notification panel). These integrations were 
previously very tightly intertwined, whereas now each view simply listens for 
only the events they need to be concerned with.

-Justin


> On Sep 28, 2015, at 2:30 PM, David Rajchenbach-Teller <[email protected]> 
> wrote:
> 
> Out of personal curiosity, how long did the rewrite take? How do you
> feel about the quality of the new code? Do the NGA and/or Service
> Workers help keeping things cleaner?
> 
> Cheers,
> David
> 



> On 28/09/15 20:26, Prateek Jadhwani wrote:
>> 
>> Woah!!! Looking forward to using the app.
>> Will start testing it tonight on z3c.
>> 
>> Good work guys!!
>> 
>> _______________________________________________
>> dev-fxos mailing list
>> [email protected]
>> https://lists.mozilla.org/listinfo/dev-fxos
>> 
> 
> 
> -- 
> David Rajchenbach-Teller, PhD
> Performance Team, Mozilla
> 
> _______________________________________________
> dev-fxos mailing list
> [email protected]
> https://lists.mozilla.org/listinfo/dev-fxos

_______________________________________________
dev-fxos mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-fxos

Reply via email to