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

  • Home
  • SEARCH
  • 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 6738139
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T11:19:54+00:00 2026-05-26T11:19:54+00:00

I have a project where I am using the observer pattern extensively for the

  • 0

I have a project where I am using the observer pattern extensively for the first time. One thing I’ve found though, is that if I inspect a typical object in this project, it tends to be astonishingly large with all of the observers and observables, and then the times when an observer has other observers, etc.

That seems to be be beside the point since the performance is fine. But I’ve found that occasionally when I’m in the debugger, if I try to print an instance variable that it will lock up my machine until I kill the process. This has me concerned that there is some opportunity for this to happen while the code is in production. Or that this is just a warning that I am abusing the pattern.

Any tips, suggestions?

  • 1 1 Answer
  • 0 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-26T11:19:54+00:00Added an answer on May 26, 2026 at 11:19 am

    TL;DR: Yep, but that doesn’t mean it’s not perfect sometimes.

    “Astonishingly large” implies… it’s pretty large; what does that actually mean? How many observers/observables are there? Are they deeply nested?

    IMO the correlation between doing stuff in a debugger and “real life” isn’t particularly strong; has it ever locked up in production or testing? I’d be more likely to think it’s an artifact of the debugging process/app.

    “Spooky action at a distance” creates non-locality that must be understood in order to reason correctly about code and behavior. This kind of development needs to be groomed aggressively; rather than saying “I’ll just create a new observer”, architect it in, and keep reasoning as linear as possible.

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

Sidebar

Related Questions

I have one project that is using ESAPI4PHP which is a port of OWASP's
I have a project using Entity Framework code first. For various reasons one of
I have an ASP.Net project using AJAX that I am putting on a server
I have a project using DevExpress docking components, I create forms in run-time, which
I have one project using NHibernate 1.2. I know it's old, but I've used
I have a project using ASIHTTP to multi download files from a site when
We have a project using FluentNibernate to map the entities. Now I need to
I have a test project using MbUnit and TestDriven.Net. If I right-click on an
I have deploy my project using project:deploy --go. Now i have my folders apps,
We have an old project written using Managed C++ syntax. I would like to

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.