software-design Questions

2

Solved

As I read, there are two patterns to define one microservice, by business capability and by subdomain. But I still find it very ambiguous. I get confused how these two patterns differentiate from e...
Backlash asked 15/8, 2017 at 8:1

1

Solved

I'm working on some library header file that is supposed to be used from both C and C++. Since C does not have a namespace concept I would add a "library prefix" to all names defined in the header ...
Occiput asked 17/10, 2019 at 5:30

3

I´m twisting my head now for a while and don´t get to a final solution. So I hope I might find some exchange or help on how to solve this issue here on an architectural level. I´m currently facing...

1

Solved

I recently discovered VIPER clean architecture and I started looking for sample tutorials on applying this architecture on the Android platform. However, what I only found was sample projects which...

5

As a project grows, so do dependencies and event chains, especially in overridden save() methods and post_save and pre_save signals. Example: An overridden A.save creates two related objects to ...
Pothook asked 8/4, 2019 at 16:54

2

Solved

I have two checked exceptions: TestException1 and TestException2 and the following code: void p1() throws TestException1{ p2(); } void p2() throws TestException1 { p3(); } void p3() throws Te...
Abercromby asked 26/2, 2019 at 9:30

3

Solved

Is it good approach when in software-designing the class interactions are describe only with interfaces? If yes, should I always use this approach? I must design class library that should have a h...
Beyer asked 22/9, 2011 at 7:48

2

Solved

My understanding is that the service layer should always return a DTO so that domain (entity) objects are preserved within the service layer. But what should be the input for the service layer from...
Dreg asked 29/12, 2018 at 3:22

3

Solved

The MVC pattern component interactions are described this way on Wikipedia: The model is responsible for managing the data of the application. It receives user input from the controller. The vi...
Dishtowel asked 10/12, 2018 at 9:45

3

Solved

My question is the following. Should I avoid using any kind of jQuery code in Angular application as it seems legit to have only one thing interacting with DOM. Another question is if anyone ...
Oxford asked 29/11, 2018 at 8:43

5

I am new to the State design pattern and I can't find a proper example of saving different states of an object to the database (SQL Server in my case). The scenario is quite similar [almost identic...
Ashtonashtonunderlyne asked 21/5, 2014 at 10:23

1

Solved

I want to model a OneToMany Relation with Spring Data JDBC. I´ve read on this very useful blog https://spring.io/blog/2018/09/24/spring-data-jdbc-references-and-aggregates that you should use refer...
Denisdenise asked 19/11, 2018 at 13:52

1

I was trying to implement a way to decouple View and Presenter in the MVP pattern to provide a framework, which does exactly this, but after a point I got confused. Background I have a View inter...
Garvy asked 29/8, 2018 at 17:7

1

Solved

I am developing a project using Django REST API (backend) and React JS (front end). I am using Json Web token for authentication. But I am confused at the point that whether should I store Json Web...
Raimondo asked 8/6, 2018 at 17:51

2

Solved

I have noticed that it is common for laravel programmers to use traits to implement some kind of dependency injection in controllers and also laravel itself uses lots of traits to implement somethi...
Bohner asked 16/1, 2018 at 11:57

3

Solved

I am facing difficulties to decide between using a marker interface or an empty abstract class. I have two classes BrokerResponse and Notification, which have no structural similarity. The only thi...

2

Recently I took over an android project which is built on top of MVP. While simple screens are quite straight forward and easy to read and maintain, the more complex parts of the app are not. Multi...
Bactericide asked 16/3, 2018 at 10:19

4

Solved

In python when you initialize an instance variable (e.g. self.my_var) you should do it in your class __init__ function, so that the memory is properly reserved for this variable per instance (<-...
Transience asked 3/8, 2017 at 13:57

2

I'm trying to implement the Clean Architecture described by Robert Martin. More specifically I'm using VIPER which is an iOS version of Clean Architecture. The problem I have is as follows: The u...
Odyssey asked 6/3, 2015 at 5:25

14

Solved

I saw this question: If a "Utilities" class is evil, where do I put my generic code? And I thought, why are utility classes evil? Let’s say I have a domain model that is dozens of c...
Cicatrix asked 27/7, 2010 at 0:55

2

In which scenario, we should not use micro services architecture? So far I can see the design for micro services, looks good for many use cases. One of the basic use case I will not recommend for...
Rhapsodize asked 5/2, 2018 at 6:30

2

Solved

I have been reading about multi-tenancy for quite a while. With the very trivial statements like below. I have read dozens of links and sites but all are quite abstract. ..In which a single inst...
Studbook asked 5/1, 2018 at 16:34

3

I've a bunch of small services that share some common packages like Logger, Configuration and Net. And I wrote each package in separated project. The issue is that my Logger needs package Configura...
Bed asked 12/1, 2018 at 7:22

6

Solved

According to UML context diagram context diagram doesn't exists. So my question is which one of UML diagrams is good to show something like this and how to paint this?
Duo asked 20/5, 2014 at 13:42

3

I have been working for a while now but because of my earlier habits i never worked systematically. I have never created a workflow chart for my software as how the software will work and in...
Gastrolith asked 1/11, 2017 at 15:0

© 2022 - 2024 — McMap. All rights reserved.