Programming: what is event programming?
In this post, the tutor speaks from experience, rather than formal education.
Event programming (aka, event-driven programming), as I understand, focuses on designing interfaces that react to user input. What happens when the user clicks a button? What happens when they press enter? Specifying what should happen – then making sure it does – is event programming.
You could pose the idea that video game programming was the first event-driven programming. However, I’d argue that event programming as we know it today barely existed when I was in university (I got out in ’95). That’s because nowadays it seems inextricably connected with web design.
This post contains a little example of event-driven programming. On the choice menu below, you can select a color, then click the button to change the text of this paragraph to the color you’ve chosen.
| → |
Event programming is often coded in Javascript. It’s another computer language I’ll be discussing in future posts.
PS: Event programming is not to be confused with event planning, which is well beyond the tutor’s experience:)
Source: w3schools.com
Jack of Oracle Tutoring by Jack and Diane, Campbell River, BC.