All Questions

1
vote
0answers
49 views

How can I resolve circular dependency within service layer in a n-tier architecture system?

I am currently starting a new project with a 4-tier architecture design. The layers is set as follow. +------------------+ +---------...
1
vote
2answers
279 views

Which SOLID principles are broken by this class diagram?

I just read about all the 5 principles S,O,L,I,D and I like test it in little example if I understand them correct. Which SOLID principles are hurt by this class diagram? I think what is broken is ...
1
vote
0answers
44 views

What algorithms does Hunspell use?

I am trying to make a spell checker for Kurdish. The problem is, Kurdish is an agglutinative language. It has suffixes, prefixes, and infixes. So a normal Hunspell dictionary could contain thousands ...
0
votes
0answers
17 views

DataTable Processing: Want lowest result

(Hi there, not entirely sure if this is the right place to ask, sorry if it isn't!) I am knocking up a fairly quick and dirty Visual Basic.NET application that essentially is a DB UI for my day job, ...
0
votes
2answers
53 views

Singleton's applicability clarification

According to the GOF Design patterns' book, singleton pattern should be used when: there must be exactly one instance of a class, and it must be accessible to clients from a well-known access ...
1
vote
0answers
21 views

How to do pagination while page gets populated dynamically

I have a page where I list some products based on search data. The products shown are not saved in local database, but are taken live using API (and this is how it has to stay). When page loads, it ...
-2
votes
0answers
28 views

How to maintain a web application for different clients with different UI and several customized functions?

We have an web application that mvc architecture and written in php. This application is used by different client that need different UI and also several module customization. This application is ...
-2
votes
1answer
71 views

How can I unit test this code

How can I unit test a codebase which contains classes that includes two or three methods. In general these methods are too long. The methods contain lots of tasks like filtering datasets and a ...
23
votes
4answers
4k views

Is there an industry standard for Gender model other than male and female? [on hold]

I am modeling a database that should be used as generic non-functional requisite for all services of the startup company, like persons, users, services and commercial data like coupons, signature ...
0
votes
5answers
224 views

How to avoid the continuous downcasting in this case?

I have an abstract class Dog and multiple subclasses (Beagle, Labrador, Bulldog...) extendig it. I have a DogHouse that can store a Dog. My problem is that when I put for example a Beagle into a ...
0
votes
2answers
75 views

How can I force an object that respects an interface to output a certain data type / structure with its functions?

This is exactly my code, I'm just stripping out everything that isn't needed: First of all, I met this issue a lot of times and something tells me that it's something to do with PHP itself and "data ...
2
votes
2answers
107 views

malloc on different platforms

I am testing a red-black tree implementation (repository) and I find that with Windows 10 and gcc, malloc starts returning NULL after inserting approx. 50 million nodes but on Linux it works at least ...
0
votes
4answers
79 views

Design pattern for creating object hidden from client

I am having difficulty understanding which design pattern would be best for the following scenario. An application uses a database. That database can either be the production version (SQL) or a test ...
-2
votes
0answers
15 views

Regular imports of data into Event Sourcing based system for analytics

I'm building a system that's gonna be mostly used for analytics. The data there would come from various systems - through webhooks and CSV file imports. CSV (Spreadsheet) files worry me the most - ...
0
votes
0answers
69 views

are dynamic variable names for readability a good practice

So recently I've been developing some simple stuff in C# to process data in an excel spreadsheet. I've had to create a nested map construct to represent the sheet of the excel document I want to work ...
0
votes
1answer
40 views

Point-to-Point integration vs ESB

We have a system which has been in development for 10+ years and still continues. It is built as an SOA and use SOAP. We have a new client, internally within our company, who wants to integrate with ...
0
votes
1answer
143 views

Is it a good idea to make huge objects dynamic in C++? [on hold]

I have an engine and if I want to use the 3d system I always have to pass a pointer to any mesh renderer. If I would make the 3d system static then I just could use them. But the 3d system is big with ...
-3
votes
1answer
72 views

Correct response for API, 404 or {response: “not found” } [on hold]

I'm not sure on the correct procedure for returning a status code for a GET request in a RESTful API request. Lets say I make a get request to get a users details from the server. However that user ...
2
votes
2answers
105 views

Using injection for services that contain only pure functions

Imagine we have a service like the this: class SomeService { // A random pure function that transforms the input // without doing any remote calls or any side effects function ...
2
votes
1answer
20 views

An approach to send the contents of a file on the server to the client in real-time

I have a relatively simple front in good ol' JQuery, that makes a POST Request to a Flask Python web server, that runs a Python script using the subprocess module. Here's the whole route for ...
0
votes
1answer
65 views

Git branching model for teams with develop, test and deploy phases

A developed piece of code goes these phases in our team: Developers write the code Then they send it to testers If tests pass, then testers send the change/new feature/bugfix to operations team for ...
1
vote
2answers
108 views

Encapsulation and input validation duplication

Consider the following example (very simplified): public class Basket { private readonly List<BasketItem> _items = new List<BasketItem>(); public IReadOnlyCollection<BasketItem&...
0
votes
1answer
37 views

Separation between regular web site requests and API requests

I have a doubt about the architecture of a web app when it comes down to differentiating between regular website requests and API requests. For the purpose of explaining, suppose I am the creator of ...
-2
votes
0answers
32 views

What Is A Redux-Glorified-Setter?

I see this phrase as an alternative name for badly designed action creators because they have a lot of dispatching. On the other hand, isn't it the purpose of action creators? to centralize ...
-2
votes
0answers
49 views

Design patterns in C++: what are std::reference_wrapper, std::bitset::reference, std::reverse_iterator and std::stack [on hold]

I am trying to understand better structural design patterns like proxy, decorator, adapter, facade ..., but I have hard time identifying them in the C++ standard library. In particular I was ...
-1
votes
1answer
49 views

Knowing what will get released in gitflow

We are a web SaaS company using gitflow and JIRA. As we are 'done' (QA approved) with a feature, we move the story/ticket forward in Jira to a 'done' status. At that point we wait until it gets ...
1
vote
0answers
13 views

UML how to model parallel activity with runtime-dependent number of participants

I want to model an activity that involves processing several items in parallel. So to speak, I want to find a Activity Diagram representation for something like the following snippet / pseudocode: ...
-3
votes
0answers
53 views

Cloud to on premise connection [on hold]

For an application hosted in the cloud, how to push requests to clients in customer lab/on-premise in real-time? Main concerns are what are the standard/acceptable solutions for: talking to clients ...
1
vote
1answer
37 views

Versioning hardware vendor SDK with git

We have n C projects which reference 4 different versions of a device SDK - 12.3, 13.1, 15.0, and 15.2. There is no public upstream repo for the SDK - it is released as a zip file. We need to patch ...
3
votes
3answers
102 views

Factory pattern or builder pattern ? which one is suited for reading Finite Element Model data from a text file?

A follow up to another question (Making a design decision about reading model data from an input file). I wish to ask another question regarding builder or factory pattern. (I read that builder is ...
1
vote
1answer
78 views

Best practice of c/C++ dependency management on build servers?

I develop largely in java which has maven or ant/ivy. Is there a recommended way to manage build dependencies for c++ projects? I'm setting up the build on our build server right now but the thing ...
0
votes
0answers
26 views

How do I choose the right Websocket API

I'm doing a project where I have to control a live DALI controller and I'm sending data from the website to the controller with Websocket. How do I know what Websocket to use? At the moment I'm ...
6
votes
2answers
296 views

Scalability: Millions of tables vs one big master table and millions of views

We have to migrate an old (million LOC) system from SAP ADS (formerly Sybase) ISAM based (so called free tables) based system to a PostgreSQL database. The system implements kind of multitenancy ...
-2
votes
1answer
46 views

Understanding property based testing

I'm reading about property based testing and I'm wondering how can I test this my code using that paradigm. class Invoice { private final String id; private final String companyName; ...
0
votes
1answer
118 views

Is this wrapper class too simple to test?

I have a following class in my PHP code: <?php declare(strict_types=1); use function Http\Response\send; use Psr\Http\Message\ResponseInterface; class ResponseSender implements ...
2
votes
1answer
75 views

Making a design decision about reading model data from an input file

I am writing a finite element software in C++ and Qt. I want to load the input data to the model. I have a Model class that holds the data and does the work. I have created a simple lexer and parser ...
2
votes
1answer
135 views

What are the pros and cons of keeping most of an application's state in a single struct?

In my application, I have a few classes. Many of these classes share common state like a reference to the logger for example. For example, both A and B require some common state to get their job done. ...
2
votes
3answers
119 views

How to replace parallel async calls between micro services with event based communication

A service A needs to access services B, C and D to process a request. Currently this is implemented as parallel async calls from A to B, C and D. Once all of them has responded, service A follows some ...
-2
votes
2answers
233 views

How can a company know that I re-used some techniques? [closed]

I'm a software engineer in a company. However, I'm planning to start a self project very soon. I wonder if I am allowed to re-use the code I have written in my company product in my project. It is ...
2
votes
0answers
38 views

java hashtable extending to support duplicates

I have to maintain an old application and have to extend some modules. There is an hashtable that is used for maintaining/holding some objects as representation of running (real) processes (don't see ...
0
votes
2answers
175 views

Why should I follow the standard REST API best practices/guidelines?

I found the standard REST API best practices to be very confusing, because you need to know all the HTTP methods such as GET/POST/PUT/DELETE/PATCH etc. Not only that, while calling an API, you might ...
0
votes
4answers
208 views

Is simplifying overloading always a good thing?

In comments on In C++ do you need to overload operator== in both directions? Story teller waxes enthusistic about the simplified oveloading provided in c++20 with the <=> operator. That's why ...
0
votes
3answers
77 views

Dependency Injection via Constructors vs Abstract Classes

For the past few days I've been researching the relationship of abstract classes and dependency-injected via the constructor classes. It appears that any time that I can have a dependency-injected ...
1
vote
1answer
59 views

Predicting Diagnosis Codes

I am very new to Machine Learning. I've read about it and I successfully did a tutorial where we looked at the dimensions of Iris petals and predicted what other Iris petal sizes may be. This all made ...
0
votes
3answers
56 views

Nesting Objects without Passing Arguments?

I have a couple of classes that I've nested together (not in the sense you may think so bare with me), to create what I call a prefab object (similar to Unity's prefab system). In this particular ...
1
vote
1answer
29 views

Why multicast IP use TTL setted as 1?

I am wondering why multicast messages like the membership query and the membership report have a TimeToLive setted to 1. I mean: messages like these shouldn't be retransmitted over the net (for ...
0
votes
1answer
22 views

Referencing entity inside aggregate by local ID

How do you properly reference an entity inside an aggregate? For example, by the index of a list (doesn't seem smart if you re-order the list); a GUID (thought it was supposed to be local?); or some ...
-2
votes
1answer
64 views

Does driver-device interaction from one operating-system environment affect the driver-device interaction on another operating-system environment? [closed]

I'm working on another tutorial: if l used a computer with an SSD-hard-drive containing an instance of Ubuntu 18.04 LTS installed with a set of Nvidia GPUs loaded with the Nvidia-CUDA toolkit but ...
0
votes
1answer
54 views

How you can deal with making invalid a list of JWTs?

I design a new Rest API for a personal project and I am trying to implement the authentication and authorization mechanism as a separate project, so I ended up with a couple of problems which I am ...
-1
votes
1answer
64 views

How to ensure separation and inward dependencies between architectural layers in Python?

Suppose a large-scale project is being developed in Python 3.7. Some layered architecture is chosen: "clean architecture", "onion" or "hexagonal". The Dependency rule in it only allows inward-...

15 30 50 per page