All Questions

0
votes
0answers
12 views

Should I have business layer between mobile app and remote database? Is MySQL fast enough for large amount of requests? [on hold]

I need some help with designing a mobile app which customers could use to order food, so the app should have a workflow like this: Login Search for restaurants Choose food (e.g. BigMac) Pay Pick up ...
-2
votes
0answers
19 views

Does macro in Scheme interpreter capture environment?

I'm trying to figure differences between macro and closure in Scheme. When "lambda" special form is processed, a closure is created and the current environment is captured with that closure. What ...
94
votes
5answers
6k views

What's the difference between using dependency injection with a container and using a service locator?

I understand that directly instantiating dependencies inside a class is considered bad practise. This makes sense as doing so tightly couples everything which in turn makes testing very hard. Almost ...
5
votes
1answer
137 views

Why are the instance variables are declared as private in immutable pattern?

As the title says , Why are the instance variables are declared as private in immutable pattern ? I think that the keyword final is enough to avoid any changes that can be done to the value of the ...
1
vote
1answer
82 views

Web API Bad Request design

My organization is developing a Web API server. We will also develop the only clients authorized to access the API. We will follow the usual technique of returning Bad Request (400) errors for data ...
-1
votes
0answers
24 views

Only allow those with write permissions to be a pull request reviewer

I am setting up a new bitbucket repository and cannot find a way to set a specific permission. My current setup requires that all merges into master or tier 2 branches require a set number of ...
-1
votes
0answers
14 views

Is there a way to run an Ant build in Bamboo without adding build.xml file directly to the project? [on hold]

I am trying to run an Ant/Ivy project in Bamboo with an external build file. I do not want the build file to be directly incorporated in the project. Is there any way to do that in Bamboo?
-3
votes
0answers
43 views

Are DDD Repositories and Factories pure fabrications (in a GRASP sense)? [on hold]

Repositories and Factories have no "real" matching Entities in the domain, whilst Entities and VOs do. Are they considered pure fabrications (pure fabrications in a GRASP sense)?
-1
votes
0answers
32 views

Does replacing Heap Memory access with Distributed In-Memory Cache(Memcache or Redis) scale in Micro-services? [on hold]

One of the reasons why Micro-services are popular is because they are stateless.However an application needs to maintain state obviously . The question comes down to What is the most efficient way ...
0
votes
1answer
60 views

Database schema for products and their packages

The product is water purifier, and we are selling packages included support for changing filters. Serial is a unique number identifying a single produced item and it's only for water purifiers not ...
0
votes
0answers
9 views

Where do JavaFX FXML controllers belong in an ECB architictural design pattern?

I am wondering where does the fxml controller belong in the Entity-Control-Boundary model? When designing a JavaFX application with the help of Scene Builder, Scene Builder generates an fxml file ...
0
votes
1answer
35 views

How to ensure persistence in an event-driven microservice architecture?

Right now we have a set of micro services with a client-facing gateway responsible for authentication and routing. MySQL database and RabbitMQ for the message queue. Internal services may queue up ...
1
vote
1answer
85 views

Domain Driven Design - updating part of aggregate

I'm playing around with DDD in a node.js project and struggling with updates to child entities from the aggregate root. For the sake of example, let's say I have two domain objects where Event is my ...
1
vote
4answers
232 views

What's the purpose of explicit encapsulation?

Assume you have a library in which every function is public. Sooner or later developers who use your library will come up with a stable pattern of usage. In that terms external information of how ...
1
vote
2answers
63 views

What are the benefits of aggregating structure and functions associated with it in one object?

What are the benefits of aggregating a structure and functions associated with it in one object? What are the benefits of explicitly decalring a class. If i write procedural code i already know that ...
-1
votes
1answer
31 views

How to name base classes so that it's most convenient for those extending a framework? [on hold]

I'm designing a game engine that is supposed to be overridden. I have, for example, a class called Character. Should I prefix this with BaseCharacter or should I expect that whoever uses the framework ...
0
votes
1answer
113 views

DDD & composition

I have a project to build, which has the following requirements: topup a wallet by paying money in exchange for credit; this has also the constraint of needing an approval from the finance team, if ...
0
votes
0answers
16 views

Authentication, bussiness logic and several entities in asp.net core

I'm working on an asp.net core application, using Identity as authentication/authorization management. Depending on the role the user can do "some thing", this is the normal way of authorization. But ...
5
votes
1answer
211 views

What is the right way to create a build system?

I'm a student, and I don't have much expirience with the building process. In the last few days i've read something about CMake and others build system generators, but other than that I don't know ...
0
votes
0answers
22 views

How to be more productive with CloudFormation?

When using Terraform instead of Cloudformation on AWS, I usually get immediate feedback on the terminal, which makes the work very productive. With CloudFormation, however, I tend to edit the file in ...
0
votes
0answers
8 views

What layer should resolve pre-existing Hibernate entities?

Imagine an application that consumes an external data stream and creates objects of this type: @Entity public class Event { @OneToOne(cascade = CascadeType.ALL) private EventInfo info; @...
3
votes
5answers
305 views

Why are there so many frameworks for web development? [on hold]

I am currently a Junior back-end developer, I write Java and Scala and I love it. I really want to get into web development, but it seems like every time I look up some guide, it is really just a ...
1
vote
2answers
79 views

Object Oriented Approach to Calculations

I need to determine the average miles per hour for a trip and an object containing a list of trips. I'm thinking of two approaches. First approach, have a MphCalculator class that I would inject into ...
0
votes
1answer
21 views

What are the differences and connections between UML Profile diagram & UML Class diagrams

I am doing research for developing a software platform and I have created some class diagrams for the platform. My supervisor adviced me to use UML profiles as well to describe the platform in a more ...
6
votes
1answer
176 views
+50

Implementing A “Draft” Mode For Posts

My team is debating how to transition a portion of our Rails application to allow "drafts". For simplicities sake, we can think imagine a Post object, and now want to allow a kind of draft mode. Our ...
0
votes
1answer
111 views

What is the best practice for sending a large array of strings to an API

I'm building a simple app that is a client web application and an API behind it. I'm combining two third-party APIs, one needs to be called from my client application (for ease of authentication) and ...
2
votes
1answer
187 views

How to handle database connection password?

I have a question about using databases in my application. I have the User table which stores password for my users. I know how to handle user authentication, but how to handle the password for the ...
0
votes
0answers
22 views

DynamoDB - Event Store on AWS

I'm designing an Event Store on AWS and I chose DynamoDB because it seemed the best option. My design seems to be quite good, but I'm facing some issues that I can't solve. The Design Events Events ...
2
votes
2answers
60 views

How to manage updates after a release?

I wonder how should we manage the commits we make AFTER a version is released, according to SEMVER. For example, I just released 1.0.1, now I have 2 choices: Immediately change version to 1.0.2 and ...
3
votes
1answer
74 views

Design Review Of SOLID Principles For An Autonomous Mobile Robot

I am self-learning robotics, C++ and good object oriented design. I have asked various questions over the past couple of weeks: 1 and 2 that have lead to the following design. The design goal is for ...
1
vote
3answers
145 views

Is it possible to throw compiler error when attempting to use an unimplemented method?

The backstory is long but the general idea is that I'm beginning an iterative refactoring process to replace a poorly designed data access layer with a new one under constraints from above. We can't ...
2
votes
1answer
36 views

Tracking revision history by recording events

I've got a requirement to create a data structure that allows for users to view revision history. Not just the history of a table, but the history of the entire structure at a given point in time. A ...
0
votes
2answers
177 views
+50

Application/Database design where two tables have both 1-to-many and 1-to-1 relationships

I have an application where the requirements are to show a list of (just for example) car manufacturers. When you click on one of the manufacturers, a list of car models show up. You can then click on ...
0
votes
0answers
5 views

Problem to structure code permissions (ACL) [migrated]

I have a problem here to structure the code to validate the permissions. Let's suppose I have three actions: read:own_users, read:my_users, read:all_users. And I have a route get/users. I want this ...
0
votes
2answers
119 views

How do companies store private keys offline but still sign code with them?

I've heard that companies store their private keys offline "in a safe that will never be opened" and stuff like that (the context for this is a console developer like Microsoft keeping the Xbox ...
0
votes
2answers
56 views

Unit tests: tree of dependent tests

I frequently encounter situation where I have very basic tests, and if those fail, it doesn't make sense to run many other tests. Therefore I want to declare a tree of dependencies between my tests, ...
1
vote
1answer
149 views

If we are allowing anonymous users to register inside our web site, how we can prevent hackers from occupying others' email address

I am planning to start a new asp.net core MVC web application. One of the features we are having is that anonymous users can register inside our web application by entering their email addresses. then ...
0
votes
0answers
30 views

Retrieve latest files from a directory using UUID or incrementing integer approach [closed]

I have a download button in the UI, user clicks on it and download 3 files in a zip format. It's not necessary that the files are already there(on the server) when download button is clicked because ...
0
votes
1answer
39 views

Designing a WPF / MVVM architecture where view behavior changes in different states

As part of my bachelors thesis, I'm trying to develop something akin to a painting program. That means, I have a toolset, be it selection, drawing, highlighting, etc. I'll have a canvas that displays ...
1
vote
3answers
123 views

Is it okay to have a class where some attributes won't always be used?

I'm designing an app which use a Knowledge Base filled with rules. Depending on the context some rules will be applicable and others will not. I need to get first the list of the applicable rules and ...
2
votes
0answers
41 views

Clean Architecture - What is the difference between Use Cases and Core Services?

I'm trying to apply Clean Architecture to a simple ASP.NET MVC Core app by following Microsoft's ASP.NET architecture guidelines and their eShopOnWeb sample project. In the standard Clean ...
0
votes
0answers
24 views

How to store message content in a webservice

I am building a service responsible for sending email/sms communications. The service receives a request that contains information necessary to build an email/sms template and the recipient ...
0
votes
1answer
39 views

How to have SQL Server with Git, TeamCity and Octopus auto-deployment work with schema-level restrictions?

We are starting to integrate our SQL Server workflow with Git, by which I mean generating scripts for all objects and storing them in a Git repository so you can pull, edit, commit, push and apply, ...
3
votes
1answer
174 views

Synchronization of data across microservices

We have 2 to 3 dozen microservices that serve our customers. These services are deployed in a Kubernetes cluster, and they're only accessible to the outside world through 3 or 4 API gateways. We ...
1
vote
1answer
82 views

Architectural principles for creating a large-scale email server that doesn't get blacklisted

I am considering what it takes to implement an email server. Google Cloud basically doesn't allow you to send emails at scale (they block the email ports pretty much), though it sounds like you could ...
1
vote
2answers
43 views

Balancing function call overhead and testability in a code that is a part of the deep learning model training loop

I am currently implementing the transformer architecture for sequence to sequence problems. Key part of the model is the attention mechanism, which is basically a matrix multiplication, followed by a ...
-1
votes
2answers
46 views

How to handle list arguments with invalid and valid elements

When you have an endpoint that can take a set of valid parameters, how do you do validation on a non-empty set of elements? Say you have a request /api/endpoint?my_list=1,2,3 where 1, 2, 3 are the ...
1
vote
1answer
55 views

What is a good way of satisfying open/closed principle in this case

I have a class that looks like this: class MyClass # takes an array of actions def initialize(actions) @actions = actions end def act @actions.each {|a| a.do} end end class ...
3
votes
2answers
104 views

How to get a useful measure for latency

I'm writing some web socket (wamp) connectivity tests. basically one end pings, and the other end records it. let's say I have the latency for each ping. So I'm tracking the min and the max latency ...
0
votes
1answer
78 views

Git Flow, pull requests, multi-destination branches and conflicts: how is it supposed to work?

I get it for feature branches: A feature branch is created from develop. One single PR is then created, going to develop. If there are conflicts, fix them in the feature branch. Quite ...

15 30 50 per page