LiveWire Network Peer Answers Peer Support Teen Forums Tech Forums College Forums 376 users online 221653 members 504 active today Advertise Here Sign In
TeenCollegeTechPhotos | Quizzes | LiveSecret | Memberlist | Dictionary | News | FAQ
Member Spotlight
greatescape
Favs: "Herb is the healing of a nation...
Mood: Sick
You have 1 new message.
Emergency Help
Until you sign up you can't do much. Yes, it's free.

Sign Up Now
Membername:
Password:
Already have an account?
Invite Friends
Active Members
Groups
Contests
Moderators
4 online / 12 MPM
Fresh Topics
  LiveWire / Technical Forums / Programming & Application Development / Viewing Topic

Event Driven Programming
What is it mainly used for?
Replies: 2Last Post Oct. 31, 2008 12:40am by Ethryx
Welcome to LiveWire!
We're Stronger Together.
Join the Community
Single page for this topic Email Print Favorite
( leon0213 )


Wealthy Hobo

Patron
Reply
Hey, just doing some research work and part of my homework for college and I'm looking at event driven programming. Now I know what events are and I do know what event driven programming is.

My question is what is it typically used for? I mean I can think of ways it can be used within larger programs but is this really the main use, to be a smaller part of programs, or is there a way it is used for large programs itself?

Thank you for your help.

-------
Hello darkness, my old friend,
Ive come to talk with you again


5:47 am on Oct. 18, 2008 | Joined: Nov. 2006 | Days Active: 462
Join to learn more about leon0213 England, United Kingdom | Straight Male | Posts: 1,369 | Points: 5,681
LiveWire Humor
pleaseremove


meh

Patron
Tech Support Leader
Reply
Umm, examples are pretty simple, could just be a button on a very simple application, or it could be some form of data poller which checks a certain location for a certain file and if it is there it does something like important it and process it.

-------
Anyone who isn't confused really doesn't understand the situation
http://craigk.org/pictures/
Can you work out the code?

4:03 pm on Oct. 18, 2008 | Joined: Feb. 2005 | Days Active: 1,299
Join to learn more about pleaseremove England, United Kingdom | Straight Male | Posts: 5,945 | Points: 37,468
Ethryx


Enlightened One

Patron
Tech Support Leader
Reply
Event Driven Programming is used for a lot of OS applications and some web applications. It basically allows for the flow of the program to be determined by user or program generated actions (mouse clicks, key presses, etc). In programs that are not event driven, the flow of the program will be from Start to Finish and never change no matter how many times it is ran. Also, the program will not continue to run unless the program is in some type of loop or waiting for user input. On the other hand, in a program that is Event-driven, the flow of the program can be different every time you run it since the flow is determined by events. The user could click Button A and then Button C which will trigger Event A. While another time, the user could click Button A and then Button B which would trigger Event B.

I personally like Event-driven programs, and they are usually the ones I program with, since they allow the flexibility that I am trying to achieve almost every time. Also, there are a lot of web-based applications now that are event driven, which is creating new possibilities in web-based development.

-------
Learn from yesterday, live for today, hope for tomorrow..


12:40 am on Oct. 31, 2008 | Joined: Jan. 2007 | Days Active: 604
Join to learn more about Ethryx New York, United States | Straight Male | Posts: 5,202 | Points: 14,931
Single page for this topic Email Print Favorite

Quick Reply

You are signed in as our guest.

Looking for something else?
 

  LiveWire / Technical Forums / Programming & Application Development / Viewing Topic