software-design Questions

7

Solved

I have a few questions about the Adapter pattern. I understand that the class adapter inherits from the adaptee while the object adapter has the adaptee as an object rather than inheriting from it....
Anthocyanin asked 29/3, 2011 at 1:41

1

I am playing with mermaid to build C4 diagrams in GitHub. I cannot find any good way to place elements correctly. I have tried putting 2 elements with a relation between them (see live editor). Bot...
Rademacher asked 23/6, 2023 at 12:3

3

Solved

Lets say we have a class with only 1 function, eg: compute DFS. Which of the following is preferred approach and why ? Approach 1: public class DFS { public DFS(Graph g) { dfs(g); // <--- c...
Renell asked 5/8, 2013 at 2:16

8

Solved

One stumbles upon this phrase when reading about design patterns. But I don't understand it, could someone explain this for me?
Chiffchaff asked 23/4, 2010 at 10:27

2

Solved

There is this codebase where we use automapper and have 2 layers, Domain and Service. Each has its object for data representation, DomainItem and ServiceItem. The service gets data from domain, the...
Demote asked 12/10, 2016 at 12:2

20

Solved

Interviewer: What is encapsulation and how do you achieve it in Java? Me: Encapsulation is a mechanism to hide information from the client. The information may be data or implementation or alg...
Adorn asked 17/8, 2012 at 21:31

15

Solved

What is the difference between cohesion and coupling? How can coupling and cohesion lead to either good or poor software design? What are some examples that outline the difference between the two...
Lida asked 21/6, 2010 at 14:1

6

Solved

I'm basing this question on Fowler PoEAA. Given your familiarity with this text, aren't the ViewModels used in ASP.NET MVC the same as DTOs? Why or why not? Thank you.
Adamski asked 16/9, 2009 at 7:13

6

There exists quite a bit of discussions on feature flags/toggles and why you would use them but most of the discussion on implementing them center around (web or client) apps. If your product/artif...
Adelaadelaida asked 2/8, 2018 at 15:37

13

Solved

Has anyone ever used the Bridge pattern in a real world application? If so, how did you use it? Is it me, or is it just the Adapter pattern with a little dependency injection thrown into the mix? D...

4

Solved

Can someone explain what does this phrase mean in this sentence? Dart is a client-optimized programming language for apps on multiple platforms.
Thermosetting asked 29/12, 2019 at 5:37

4

When we talk about sourcing events, we have a simple dual write architecture where we can write to database and then write the events to a queue like Kafka. Other downstream systems can read those ...

2

Solved

I'm in the analysis phase of a big project, that will be created with a micro services architecture. I am pretty confident that (at least for the next 3 years to come) the whole codebase will be wr...
Hideandseek asked 14/5, 2021 at 14:9

2

Solved

I'm currently developing an Angular 2 application. While developing I started to use TypeScript classes to create objects from JSON I receive through HTTP or when creating a new object in a form. ...

5

I am writing RESTful services using spring and hibernate. I read many resource in internet, but they did not clarify my doubts. Please explain me in details what are DAO, DTO and Service layers in ...
Stinkpot asked 29/1, 2016 at 6:41

7

Solved

I am a beginner in developing Flutter application, and try to create a sample application for educational purpose. Last few weeks I decided to do a sample application in flutter that have no inbuil...

1

Solved

We are planning to develop an API. There are so many cases that a request can be considered as a bad request. For this, We have planned to send a JSON object with error code, error, and addit...
Hurryscurry asked 5/10, 2020 at 7:56

2

Solved

I am asking you who know well and have experience in building a software using any layered architecture (onion, hexagonal, clean, etc.). Whenever I google about the software architecture, people ha...

15

Solved

I want to demonstrate use of Adapter Pattern to my team. I've read many books and articles online. Everyone is citing an example which are useful to understand the concept (Shape, Memory Card...
Parrett asked 18/6, 2012 at 8:55

3

Solved

trying to figure out some concepts and haven't been able to understand What is a use-case in the Ports and Adapters architecture ? What an implementation of a use-case would look like ? What ...

4

Solved

Is there any difference between them (onion | hexagonal), from my understanding they are just the same, they focus upon the domain which is at the core of the application and should be technology /...

2

Solved

I am going to create my CI/CD pipeline in Azure DevOps, but I have a problem with release version number. with this CI/CD a dotnet app build and a docker image created, so I want to have docker ima...
Longheaded asked 13/7, 2020 at 11:48

4

Solved

I have read several documents over clean architecture in general and Android specific as well. I totally like the idea of creating a separate module for each new feature but my concern is how do ...
Lindholm asked 10/3, 2016 at 0:55

2

I have come across with this design and I didn't fully grasp mixing object oriented programming with functional programming in Java 8. I was interested in mixing both language paradigms and most ...
Beanfeast asked 8/1, 2020 at 17:13

2

Solved

Using shared libraries in microservices is a bad practice. But every microservice depends on frameworks and libraries: Spring Boot, Kafka Java Client etc. If a system consists of 30 microservices ...
Photodisintegration asked 29/2, 2020 at 14:15

© 2022 - 2024 — McMap. All rights reserved.