User:Alive/System Refactor Plan

From MozillaWiki
< User:Alive
Revision as of 02:42, 8 April 2015 by Alive (talk | contribs) (Created page with "= System Refactor Plan = == High level goals == * Modularization * One system app for multiple devices * Maintenance == Key features == * Swappable functionality * Concentrate...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

System Refactor Plan

High level goals

  • Modularization
  • One system app for multiple devices
  • Maintenance

Key features

  • Swappable functionality
  • Concentrated module responsibility
  • Reduce startup time


Swappable functionality

  • Each HW specific functionality should be easily removed/disabled from the current code base.
  • Less module dependency - try not touch global variable.

If you need to ask someone else to work, ask the mediator instead of asking it directly.

 var MyModule = {
   show: function() {
     UtilityTray.hide(); // Sad
     Service.request('UtilityTray:hide'); // Better
   }
 };

Special Topics

  • Statusbar destruction
  • Shared transition controller
  • Notification refactor
  • LockScreen