Event-Driven Programming

Posted: June 8, 2012 in Uncategorized

As I am a developer I love to explore all the available things even if I won’t use it. Practically I am most of my time using the C#, C++ programming language. Most of the Programming Languages I knew or even I studied were all about object oriented programming where the classes and the objects were all the most important things. However after diving into the Cloud Computing and developing on multiple platform, I found several new things like the new concept of programming Node JS, I will blog about it later. One of them was the Event-Driven programming. Event-Driven programming is a programming concept based on events, can be from human interaction with the application or any other interactions. Like for those who know about the assembly language or embedded systems, the event driven programming is like the interrupts. Another important thing you might think of the Event-Driven programming is how the application can handle a lot of events from a single user and process them all without making him feel that it is costing any processing time. In other words the event-driven programming is a way to handle continuous inputs or events done on your application.

Let me give you a small example of something you might have been used. When you browse to any web application, go to the menu and press a certain button, you might find that you get the response very fast without even feeling it is taking any time to send the request, get a response or even without changing the page you are in. What really happens is when you click this button, you trigger an event and the web application will send the request for this certain function and gets back to you the response in one of the available formats like JSON, XML and so on…

For the Event-Driven programming, you can use it with any programming languages. Let’s have few examples with some programming language for the .Net developers, let’s assume that your application has a button in its UI so when the user click on it, it triggers a new event.


Here another example for the events that you might think of is when the user start entering a text in the text block. For the ASP.NET developers you can find the OnTextChanged=”X” and name the function as you wish and you can interact with what the user is entering while he is doing so. I will follow with more blog posts about this topic and will focus later on, on the server side, the Cloud.



Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s