Event Driven Programming
• What is it?
• Why is it different to other forms of
  programming?
• Event Driven programming and operating
  systems
• Event Driven programming and non GUI
  progrms
                            Events
Coursework
Pass                          Merit                       Distinction
P1 explain the key features   M1 discuss how an           D1 evaluate the suitability
of event driven programs      operating system can be     of event driven programs
                              viewed as an event driven   for non-graphical
                              application                 applications

Using suitable software create a presentation for your team leader that
describes the application and limits of procedural, object orientated and
event driven paradigms. Explain what factors might influence the choice of
programming language for a project like ‘Greener and Cleaner’. Give
examples of the key features of event driven programming and the tools and
techniques that event driven programming can offer.
• Types of programming language
• Reasons for choice of language
• Language features
• Datatypes and variables
• Triggers. Tools and techniques
Old fashioned (Data Driven)
                  programming


Get Data                    Do stuff   Output results



For example:
• Code breaking
• Payroll
• Inventory control
• Statistical analysis
• Calculating timetables
• Accounting
• Rocket & Missile design
Event driven programming
• Program waits for events
• Whenever something happens the program
  responds and does something

                   Event Happens

      Wait for                      Perform
    something to                   action in
      happen                       response
Events
•   Button clicks
•   Mouse movement
•   Key presses
•   Network packets arriving
•   Timers
•   Sensor (e.g. temperature)
GUI OS events
•   Clicking
•   “Dragging”
•   Timers and scheduled events
•   USB and other devices being plugged in
Non GUI event driven programs
• Burglar alarms
• Process control (e.g. robots)



                                  Back to start!

Event driven programming amazeballs

  • 1.
    Event Driven Programming •What is it? • Why is it different to other forms of programming? • Event Driven programming and operating systems • Event Driven programming and non GUI progrms Events
  • 2.
    Coursework Pass Merit Distinction P1 explain the key features M1 discuss how an D1 evaluate the suitability of event driven programs operating system can be of event driven programs viewed as an event driven for non-graphical application applications Using suitable software create a presentation for your team leader that describes the application and limits of procedural, object orientated and event driven paradigms. Explain what factors might influence the choice of programming language for a project like ‘Greener and Cleaner’. Give examples of the key features of event driven programming and the tools and techniques that event driven programming can offer. • Types of programming language • Reasons for choice of language • Language features • Datatypes and variables • Triggers. Tools and techniques
  • 3.
    Old fashioned (DataDriven) programming Get Data Do stuff Output results For example: • Code breaking • Payroll • Inventory control • Statistical analysis • Calculating timetables • Accounting • Rocket & Missile design
  • 4.
    Event driven programming •Program waits for events • Whenever something happens the program responds and does something Event Happens Wait for Perform something to action in happen response
  • 5.
    Events • Button clicks • Mouse movement • Key presses • Network packets arriving • Timers • Sensor (e.g. temperature)
  • 6.
    GUI OS events • Clicking • “Dragging” • Timers and scheduled events • USB and other devices being plugged in
  • 7.
    Non GUI eventdriven programs • Burglar alarms • Process control (e.g. robots) Back to start!