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 35313
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T14:12:59+00:00 2026-05-10T14:12:59+00:00

The Gang of Four’s Design Patterns uses a word processor as an example for

  • 0

The Gang of Four’s Design Patterns uses a word processor as an example for at least a few of their patterns, particularly Composite and Flyweight.

Other than by using C or C++, could you really use those patterns and the object-oriented overhead they entail to write a high-performing fully featured word processor?

I know that Eclipse is written in Java but I haven’t used it much so I don’t know if it’s all that fast or as polished as something like Visual Studio, which has a C++ based text editing system.


I only used C++ and Java as examples. The question has more to do with the overhead of having a lot of in-memory objects like you would in an application such as a word processor or even a game.

Design patterns promote abstraction at the expense of parsimony even though they usually point out when you might take some kind of performance hit. Word processors and especially games get the most benefit from being as close to the metal as possible.

I was just wondering if anyone knew of an fast object-oriented word processor or text editor that wasn’t written in C++, and whether they’d build one using patterns or would they forgoe a lot of the abstracting away of things?

  • 1 1 Answer
  • 1 View
  • 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. 2026-05-10T14:12:59+00:00Added an answer on May 10, 2026 at 2:12 pm

    Flyweight really is just a way of conserving resources in situations where there are thousands of objects with intrinsic shared state, so it could be useful in higher level languages than C/C++. Maybe the GoF’s example using glyphs in a document was not the best choice to illustrate this pattern.

    I think there’s a lot more to building a high performance word processor than just these basic patterns though – not sure whether there is anything in GoF that rules out being able to successfully do this.

    Generally, Visual Studio (VS) is more advanced and performs significantly better than Eclipse – at least, the versions of VS that I have seen. Eclipse is one of the most impressive Java applications out there though, it runs quite well on more recent machines with lots of RAM.

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

Sidebar

Related Questions

We all know the great book about design patterns known as Gang of Four,
Gang of four uses a load balancer example to demonstrate the singleton pattern. I'm
From Gang of Four on the Template Method Pattern: Three implementation issues are worth
My Question: What are some good examples of design patterns used in CakePHP? Why
Hey gang, I'm trying to convert a legacy php script over to python and
I don't understand what's the difference between those patterns Martin Fowler says : Transaction
Whilst learning events and delegates I can't help but think about the Observer design
Take this following code from an example HR system. The user has the ability
Hey gang, I need to know if i need to restart my computer to
Hey gang. I have just written a client and server in C++ using sys/socket.

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.