Sunday, December 27, 2009

How event programming differs from procedural programming?

Event programming implies the program is responding to some stimulous, e.g., a button click, a car arriving at a stop light, the reset button is pressed on a microwave.





Procedure programming is really strict computational where a series of functions are called to solve a problem. For example, convert a BMP image to JPG, or calculate total interest for a loan over 25 years.





Note: even event programming will have some procedural aspects to it but actions happen when a trigger is hit. For example, you click the Home button on explorer, it then calls a number of internal procedures to get your home page address, download it's content, render, etc.How event programming differs from procedural programming?
This sounds like a test/homework question, however...





Procedural programming is where the program is designed to follow a specific series of steps and/or alternate series of steps. The user is shown exactly what is to happen and program logic determines the next step(s).





Event programming is where the program is designed to react to something happening. Those happenings can be user actions (clicks, keystrokes, mouse moves, etc.), timers, files appearing in folders or any time that something changes.
  • blonde highlight
  • oil offshore
  • printer ink
  • printer ink
  • No comments:

    Post a Comment