devxlogo

Event-Oriented Programming

Event-Oriented Programming

Question:
What’s the meaning of “event oriented programing?”

Answer:
Basically, it means that you program everything as a response to an event, instead of a topdown program where the ordering of the code determines the order of execution.

You code based on what happens when the user does something. Events can be mouse moves, mouse clicks or double-clicks, keystrokes, changes made in textboxes, timing based on a timer, etc.. Note that this is not an exhaustive list of events, just a small sampling.

It is quite a bit different from top-down coding, but it’s pretty easy once you make the mental jump.

devx-admin

Share the Post: