gram games | modular programming

11
MODULAR PROGRAMMING

Upload: gram-games

Post on 12-Aug-2015

283 views

Category:

Software


4 download

TRANSCRIPT

MODULAR PROGRAMMING

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

MISSIONRun the BIKE!

TOPICS• General Knowledge

• Abstraction

• Managers

• Events

INTERFACE

ABSTRACT

LOOSE COUPLING

MANAGERS

GearManager BrakeManager

LightsManagerStockManager

SafetyManager

EVENTS

BENEFITS

• Delegated decisions

• Easy logic extension

• Simply scalability

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