Friday, March 29, 2019

Event-Driven Programming Features

Event-Driven information processing system programing FeaturesEvent-driven program known as a computer schedule paradigm that physical exercise the occurrence of characters to descend the control fall of the program. This part of application is designed to detect details as they occur, and aim an appropriate event-handling procedure to deal with it, which normally use a reminiscence function or method.Theoretically, event-driven style of programming is supported in all programming languages, but they may different in the guidance of implement it, for example, its easier to implement in languages that provide high-level abstr meets, such as closures. Besides, for other programming environments such as Adobe Flash, they are specifically tailored for triggering program figure by events.Generally, in that respect is a chief(prenominal) loop in an event-driven application that used to listen for events and triggers a callback function when there are events is detected.Key features and characteristics of event-driven programmingService lieService oriented is a key features in event-driven programming that used to write programs that are made for services and it takes does not slow down feather the computer as service oriented sole(prenominal) consume superficial of the computer processing power and usually services run in the background of OS.Time DrivenIn event driven programming, meter driven is a paradigm, its a cypher that runs on a period trigger, time driven can be a specific principle that runs on a specific time, which could be once an hour, once a week or once a month, this averages its a pre-set to do task. For example, windows update is the example of time driven, which drug user can set when to update or when to check and download the update.Event HandlersEvent handlers is a type of function or method that run a specific action when a specific event is triggered. For example, it could be a button that when user thumb it, it will display a centre, and it will close the message when user click the button again, this is an event handler.Trigger FunctionsTrigger functions in event-driven programming are a functions that decide what code to run when there are a specific event occurs, which are used to drive which event handler to use for the event when there is specific event occurred.EventsEvents include mouse, keyboard and user interface, which events need to be triggered in the program in order to happen, that mean user have to interacts with an object in the program, for example, click a button by a mouse, use keyboard to select a button and etc.Simplicity of Programming and Ease of DevelopmentEvent-driven programming is simple and easier to program compared to other type of programming as its actually visual, for example you can place a button by but select it and place it onto a form and write a code for it. Event-driven programming also easy for user to insert a pre-written code scripts into an existi ng application because it allows user to pause the code while its running. Which restore developing using event-driven programming is easy.Compare Event Driven Programming with Object-oriented Programming (OOP)As mentioned above, event-driven programming known as a computer programming paradigm that used the occurrence of events to determine the control flow of the program, while objects-oriented programming (OOP) treats datafields as objects manipulated through pre-defined methods only and it constructed over quatern major principles, which are Encapsulation, Data Abstraction, Polymorphism and Inheritance.JavaScript, ActionScript, Visual Basic and elm are the example for event-driven programming, while C++, C, Java, Python, Ruby and Scala are the examples for object-oriented programming.In event-driven programming, a program is executed when they detected an event occur, for example, use mouse to click a button to show a message. Besides, in object-oriented programming, emphasis is given to data and classes are the main part of OOP, which mean classes are the blueprints of object and keep the data secure in the classes, only methods of particular classes are allowed to view the data.The classes are also different betwixt event-driven programming and object oriented programming. In OOP, classes can be created by own while in event-driven programming user must use the defined classes.Object-oriented programming and event-driven programming may use together, which mentioned above that event-driven programming are support in all programming language, its just the personal manner of implement it may different.ReferencesWhat is event-driven programming? (2017). Retrieved January 17, 2017, from http//www.computerhope.com/jargon/e/event-driven-prog.htm1010, zakkcuthbert. (2014, November 7). Key features of event driven programs. Retrieved January 17, 2017, from https//zakkcuthbertunit14eventdrivenprogramming.wordpress.com/2014/11/07/key-features-of-event-driven-p rograms/Event-driven programming (2017). . In Wikipedia. Retrieved from https//en.wikipedia.org/wiki/Event-driven_programmingCommon_usesComparison of programming paradigms (2017). . In Wikipedia. Retrieved from https//en.wikipedia.org/wiki/Comparison_of_programming_paradigmsStudytonight. (2016). Object oriented programming concepts in C++. Retrieved January 17, 2017, from http//www.studytonight.com/cpp/cpp-and-oops-concepts.php

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.