MODULAR PROGRAMMING
Aug 12, 2015
PROBLEMS
• Developing Facebook Implementation again and again… … and again
• Hard to read, easy to breakdown
• Bugs, bugs, bugsssss
BASIC PHILOSOPHY
break down your application into as small a code fragments as possible arranged neatly across a
multitude of easily understandable layout
BE CAREFUL!• SRP = Single Responsibility Principle (One Manager = One Task)
• DRY = Don’t Repeat Yourself (User Interfaces/Abstracts anywhere)
• No direct reference to other Managers! Keep it Modular!
• Build an understandable directory layout
• Always keep your listeners clean. Remove your references on destroy