DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones AWS Cloud
by AWS Developer Relations
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones
AWS Cloud
by AWS Developer Relations

What Is Event-Driven Programming And Why Is It So Popular?

Take a look at arguably the most popular design paradigm in software development, and learn a little more about what makes it so widespread.

Annika Helendi user avatar by
Annika Helendi
·
Sep. 05, 18 · Analysis
Like (3)
Save
Tweet
Share
61.02K Views

Join the DZone community and get the full member experience.

Join For Free

Event-driven programming is currently the default paradigm in software engineering. As the name suggests, it uses events as the basis for developing the software. These events can be something the users are doing — clicking on a specific button, picking an option from drop-down, typing text into a field, giving voice commands, or uploading a video — or system-generated events such as a program loading.

The central idea of event-driven programming is that the application is designed to react.

Why Is It So Popular Right Now?

On the business development side, keeping the user engaged with your program is one clear way of making sure your app is actively used and offers value, so it makes sense to build your applications with this focus in mind.

Event-driven programming serves the user with the quickest and most accurate responses and this usually translates into better user experience and business gains. Also, the whole focus of software development is on the actual people using the app and their actions, so it will produce better and more intuitive products for the end-users.

The opposite of event-driven programming would be software that doesn’t need any user input to act. There are definitely valid use cases for this as well but the majority of popular applications on the market right now function through user input (all the social media platforms, games, productivity tools, etc).

Needless to say, GUI (graphical user interface) applications can experience the biggest benefits of using this approach.

One of the big benefits of event-driven programming is that it’s very intuitive, flexible and naturally well-suited to applications whose control flow are based, not on its structure, but rather on internal or external events.

What’s the Best Programming Language for This Approach?

Because event-driven programming is an approach rather than a type of programming language, it can be practiced with any programming language.

What Are the Disadvantages?

Since it offers the most value for GUI applications, some other use cases might not benefit from it.

Some critics are also saying that event-driven programming is complex to master and not worth the trouble when your application is very simple and small.

What’s the Next Big Thing?

The next big paradigm shift definitely comes with serverless computing — it’s another level of abstraction that makes creating new applications easier and quicker. With serverless, you don’t have to worry about server ops anymore; you can just write your functions, upload the code to one of the cloud providers (AWS Lambda is currently the biggest one) and let them handle all the backend work (and you only pay for the time when your code is executed). This is the next big change that will bring event-based programming to the next level and it’s already gaining mainstream traction.

Event-driven programming application IT

Published at DZone with permission of Annika Helendi, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Multi-Cloud Integration
  • The 5 Books You Absolutely Must Read as an Engineering Manager
  • Create a REST API in C# Using ChatGPT
  • 10 Best Ways to Level Up as a Developer

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: