software-design Questions

3

Solved

I am learning design patterns newly & I am trying to understand the difference between Simple Factory & Factory Method Pattern. First I want to clear that , I tried reading lot of articles ...
Cimmerian asked 30/9, 2017 at 8:53

1

I work with Spring Data and Neo4j in my current project and have the following situation: @RestController @RequestMapping(value = SearchResource.URI) public class PersonResource { public static f...
Wizardry asked 16/8, 2017 at 14:55

5

Is it better to use local or global variables? Let's say talking about 2000+ lines of android(java) service class, and all service is working on 'request' object and similar shared objects. If I ...
Operose asked 24/7, 2017 at 23:35

3

I'm trying to understand SOLID principles, in particular The Dependency Inversion Principle. In this is SO answer it is explained very well. I think I have understood that I can't create any inst...
Gustie asked 20/7, 2017 at 11:13

2

Solved

Recently I conducted a preliminary study on developing an E-commerce site and discovered that redux and reflux both come from flux architecture in Facebook and that both are popular. I am confused ...
Cosset asked 31/3, 2016 at 6:56

1

Solved

I'm planning on using Elasticsearch to log all my application activities (like an audit log). Considering how I have direct control over the application, should I directly push the data into Elast...
Draughty asked 9/6, 2017 at 5:8

5

Solved

I am trying to retrieve the Number of CPUs and Cores per CPU using Command Prompt. I have executed the following command: wmic cpu get NumberOfCores, NumberOfLogicalProcessors/Format:List I get t...
Hoodoo asked 7/4, 2014 at 17:23

3

I've been reading about Clean Architecture from Robert Martin and more specifically about VIPER. Then I ran into this article/post Brigade’s Experience Using an MVC Alternative which describes pre...

1

Solved

I'm currently creating a console implementation of a game of 5 card draw poker in Java. I have a class called HandOfCards, which will handle the proceedings of an individual hand - dealing players...
Gladwin asked 9/4, 2017 at 15:24

3

Consider an application with two entities: User (contains basic user data, such as name) Passport (contains authentication credentials, i.e. password) And two internal microservices: UserService...

2

Solved

I have the following case : My current projects are like that : A master page and set of pages.aspx inherit the layout from the master page. Now i want to make it on large scale . So what i want...

3

I am 4 months into professional software development. TDD is non-negotiable at my company GO-JEK. Here is my observation: People tend to first write code, and then write tests for it. Apparen...
Incinerator asked 16/10, 2016 at 18:22

3

As my Django projects are bigger and bigger I am facing issues regarding architecture. Before starting to code, I spend a lot of time to find a nice architecture for my project: how I split my proj...
Dierdre asked 25/9, 2016 at 12:14

7

I'm trying to figure out the best design pattern to use for managing a "competition" between two interacting objects. For example, if I want to have a Fox class that chases a Rabbit class through a...

3

My program gets information from an external source (can be a file, a database, or anything else I might decide upon in the future). I want to define an interface with all my data needs, and class...
Rack asked 6/9, 2016 at 14:16

4

Solved

I've been charged with the following tasks for a group project: a) Design/Draw an Architecture Context Diagram b) ACD Description c) UML deployment diagram The UML deployment diagram is no ...
Chekhov asked 8/2, 2010 at 16:54

3

I was presented this problem few days back. Requirement was to design a mobile app which serves sports content to the user (say soccer). The app will allow the user to subscriber to specific team....
Phlegmy asked 5/5, 2016 at 10:54

5

Solved

This question was inspired by How to transform a flow chart into an implementation? which asks about ways of algorithmically eliminating the goto statement from code. The answer to the general prob...
Hagiographa asked 6/5, 2016 at 18:39

1

I'm building a PHP web application, that should provide to the user a possiblity to order an "installation"/setup of a (ConnectDirect or File Transfer Gateway) connection between him and another pe...
Chaparral asked 15/2, 2016 at 17:20

3

Solved

I've a class that must depend for some reasons from an int template parameter. For the same reasons, that parameter cannot be part of the parameter list for the class, instead it is part of the par...
Champac asked 19/2, 2016 at 23:41

0

I’m preparing a system design interview, i was expected to be asked such kind of question in the interview, so I want to show my design process about this. In addition, I would like what are ...
Miliary asked 29/3, 2016 at 7:29

2

I am considering implementing Robert Martin's Clean Architecture in a project and I am trying to find out how to handle non-trivial use cases. I am finding it difficult to scale the architecture t...
Jeepers asked 29/1, 2016 at 15:51

7

Solved

I'm writing a library that has several public classes and methods, as well as several private or internal classes and methods that the library itself uses. In the public methods I have a null chec...
Kaminski asked 17/1, 2016 at 1:17

13

Solved

I have seen code where every class has an interface that it implements. Sometimes there is no common interface for them all. They are just there and they are used instead of concrete objects. Th...
Pean asked 14/6, 2010 at 11:19

2

Solved

While researching Observer pattern I have noticed, that the connection between the Subject and the Observer is usually one to many. Why so? Is there any particular reason why many-to-many relations...
Brachylogy asked 6/1, 2016 at 9:50

© 2022 - 2024 — McMap. All rights reserved.