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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T00:43:07+00:00 2026-05-17T00:43:07+00:00

As a junior developper, i’m a bit confused about some design patterns. Sometimes, i

  • 0

As a junior developper, i’m a bit confused about some design patterns. Sometimes, i just don’t know which to use in which context.

For exemple, on creational patterns, i don’t really know when to use:

  • Factory
  • Prototype
  • Builder

Actually, i see some differences; but i also see that you can use multiple solutions like:

  • Calling a factory that calls the appropriate builder that clones a prototype.
  • Calling a factory that clones the appropriate prototype
  • Calling a builder with the appropriate director
  • …

I mean, the result of these creations is at the end the same: you get your object instance.

I just wonder what kind of design you would use on different contexts (i guess it could be depending on performence needs, objects complexity, coupling…)

Also, I don’t really see a big differences between a facade and a mediator, except the mediator calls different interfaces.

Same for chain of responsability, don’t really understand why all implementations i see use chained lists. Can’t this pattern be implemented with a simple List of handlers that we call successively?

That’s why i’d like people to tell me in which concrete context you would use a GoF pattern, and also why you wouldn’t use any of the other patterns that could have fit to the given problem (but probably in a less elegant way).

Thanks

  • 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-17T00:43:07+00:00Added an answer on May 17, 2026 at 12:43 am

    Like many people when I first came across design patterns I realized that a lot of them were simply names for mechanisms I’d already used to solve design problems. The problem came first, then the solution. I never approached design patterns like they were puzzle pieces that needed to fit somewhere.

    You’re not really required to answer a problem with the name of a pattern as if it was an exam. The way to do it is to sit down and think about what you need your code to do and how it may change in the future. This is how we got to these design patterns anyway. People kept using the same tricks to solve a certain set of problems until eventually someone came along and gave those tricks names.

    The only problem you have is lack of experience and that can’t be fixed just by SO. As you write software you’ll invariably get some things wrong. You’ll discover that if you had done things this way, they would have been better. Incidentally this way has a name; “abstract factory”, “adapter”, “observer”, whatever. In the future you’ll know when and why to use it. For now remember the KISS principle. Don’t complicate things that don’t have to be complicated.

    The fact that you’re aware of design patterns before knowing how to use them means that you’re a step ahead of most devs. Don’t sweat it too much, just remember that next time you have a problem one of them might be an acceptable answer. Little by little you’ll find out when a design pattern should be used and when it shouldn’t.

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

Sidebar

Related Questions

I've been learning the adapter and facade design patterns for an upcoming junior development
I am a junior developer and I have just graduated from university this year.
As a fairly junior developer, I'm running into a problem that highlights my lack
Let me set the stage here. I'm a very junior developer who's recently made
I have a team of junior developers and they want to have better understanding
We have a junior programmer that simply doesn't write enough tests. I have to
I am a junior programmer. Since my supervisor told me to sit in with
I'm a junior student in IT. I am facing a problem with the output
Does anyone have any suggestions on how to mentor a junior programmer ? If
I am preparing a lecture on files for the more junior students in programming

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.