Skip to main content
Best practices
0 votes
1 replies
45 views

What is the best practice for creating the PerishableIngredient object? Also should I try to get the compiler to hint at the required fields, allow omission of optional fields, and not allow ...
Sean Forrest's user avatar
1 vote
1 answer
136 views

In a coding exercise I want to create a Java software for an hypothetical shop: I have a User superclass and three subclasses: administrator (who can manage the product catalog and the customer's list)...
Alex's user avatar
  • 13
1 vote
1 answer
78 views

in my project, I have 3 separated files as mainly. My project directory Directory/ |-main.py |-scrape/ |--ScrapeFactory.py |--ScrapeFromAmazon.py ScrapeFactory.py includes from abc import ABC, ...
Göktürk Sığırtmaç's user avatar
0 votes
2 answers
183 views

I want to make multiple implementations of a specific interface accessible through an Abstract Factory in .NET Core. Based on a supplied enum the correct implementation should be returned. This is my ...
Engin Şengül's user avatar
1 vote
0 answers
197 views

In a project, I have decided to try to hide all the widget toolkit details behind an abstract factory pattern. The concrete widget toolkit is gtkmm. Here is simple diagram showing the architecture I ...
BobMorane's user avatar
  • 4,340
1 vote
0 answers
92 views

I am trying to create "plugin" factory. When an user requests creation of an object factory queries it's child factories and picks suitable one to create the object. Instances of child ...
KajzerSoze's user avatar
0 votes
1 answer
144 views

I have an interface which is implemented by different classes. I want to make the implementation classes package private so that clients only use the interface, but of course they somehow need to ...
Rob's user avatar
  • 13
1 vote
1 answer
51 views

I'm trying to implement Abstract Factory pattern in Python, but after creating new "product" it simply does not work and I can't firuge out what's the problem. Here's a code: `from ...
Yanka Smetanka's user avatar
-3 votes
1 answer
160 views

I have multiple macros at beginning of each GameObject child class header. This is intended, as the client might add any number of classes inheriting from GameObject, with any engine macro arguments. ...
GitButtCoder's user avatar
4 votes
1 answer
194 views

Referring to the UML diagram depicted in https://en.wikipedia.org/wiki/Abstract_factory_pattern#/media/File:Abstract_factory_UML.svg, one could conclude that ConcreteFactory1 and ConcreteFactory2 are ...
WebViewer's user avatar
  • 831
0 votes
1 answer
226 views

I am working to understand Abstract Factory design pattern and facing an error in many examples. As in below class diagram: Here in this example Abstract Factory class which must be an interface have ...
ABU-ZHAR's user avatar
1 vote
1 answer
63 views

I am currently working on a machine learning project and would like my Python program to be able to process/convert measurement data from various measurement data formats into a PyTorch compatible ...
J. Lo's user avatar
  • 179
0 votes
1 answer
116 views

I am trying to learn design patterns in C# and my friend has written me some code for an Abstract factory pattern (I think). from what I am seeing the code creates a factory(Fa), this factory(Fa) then ...
Clas Antics's user avatar
0 votes
1 answer
98 views

Everything works fine till the constructors of the realizations are the same. However, I have a sort of dilemma when the constructors are different. Is it okay or maybe there is an architecture issue? ...
Dasic's user avatar
  • 29
1 vote
1 answer
255 views

In Design Patterns Elements of Reusable Object-Oriented Software, it states that one of the issues in the Abstract factory pattern is the following: Supporting new kinds of products is difficult. ...
jabr's user avatar
  • 11

15 30 50 per page
1
2 3 4 5
18