Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 612883
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T17:56:28+00:00 2026-05-13T17:56:28+00:00

Was just thinking about this question while trying to figure out some code written

  • 0

Was just thinking about this question while trying to figure out some code written by our previous developer. Trying to trace out how control of the program was happening reminded me of the bad old days of BASIC, where it was hardly ever obvious the execution path of a program. Is this more a symptom of event abuse, or is there a structual problem with the observer pattern?

  • 1 1 Answer
  • 2 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T17:56:28+00:00Added an answer on May 13, 2026 at 5:56 pm

    Like any technology, events can be used incorrectly and abused. However, since you didn’t give any examples of your problem, it’s virtually impossible for us to tell what you’re talking about.

    In general, no. Events are not the OO equivalent of GOTO, nor are they typically a problem. Nor is there any structural problem with the observer pattern that I’m aware of. But abuse can happen with anything.

    GOTO’s are bad for a lot of reasons, but one of the biggest ones is that it is a transfer of program flow, not merely a subroutine execution. When you use a goto, program execution does not return to the point after your goto call when it’s done (or after it’s been initiated in the case of an asynchronous event). Program flow is transfered permanently to the new execution point. What’s worse, is that it can transfer execution to anywhere, including inside other control structures or other functions.

    Events simply do not have these characteristics, and are little more than function pointers with object awareness and a publish/subscribe capability. (ok, there’s a lot more than that, but this is their basic usage)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been thinking about this and I just can't think of a way to
Maybe I am just over thinking this and need to write some more prototype
G'day, While having a think about this question here about overdesigning for possible future
Can I specify interfaces when I declare a member? After thinking about this question
I'm thinking about this since a while: I'm build a single-page webapp with ExtJS
This question is more about language design and less about changing C++ conventions. While
Just thinking about the best way to build an Order form that would (from
I'm just thinking about the styling and performance. Previously I used to write something
I'm just wondering what are you thinking about DIV-tag inside FORM-tag? I need something
Sorry if this is dumb but I was just thinking I should give a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.