All Questions

Filter by
Sorted by
Tagged with
2
votes
2answers
80 views

Do I use Repository or Service Object to Perform Logging?

I'm working in Java Spring, and I have typical service and repository layers. The repository grabs a JSON; passes it along to the service; service maps the repository response to a DTO. I also need ...
-1
votes
1answer
63 views

How to modify and compile ONLY few java files among many thousands and deploy? [closed]

This is basically a code development question that deals with frequent changes to one or more java files among many thousands. A few years ago, as a software intern, I was given a large java / jsp ...
1
vote
1answer
72 views

Domain Driven Design to consolidate multiple projects

How I can consolidate multiple projects by keeping the same namespace and move them into Domain Driven Design project? We are not a software shop and our code is not an API with no intention of being ...
2
votes
0answers
49 views

Run a job every hour with Lambda or something else?

I am working on a SaaS project that will have a trial when the trial is ending I get a webhook notification when 3 days are remaining. I do some stuff with this and one of the things is I update user....
1
vote
1answer
52 views

Kotlin delegation, what should I test?

In Kotlin the powerful construct of delegation can be used to extend functionality of existing interfaces by reusing existing implementations. class Demo : Map by HashMap {} Questions: What should ...
7
votes
5answers
410 views

How to communicate a SWAG estimate

I support a large enterprise software project which frequently receives enhancement requests from our customer. The customer will only pay for the work up front in fixed-price contracts. We provide a ...
1
vote
0answers
34 views

Web Service returning serialized helper objects

I had the idea to have a route in my REST API that returns serialized (PHP) helper objects. The client code then can use those objects to format some complex JSON structures for the next request. When ...
0
votes
1answer
97 views

Who is responsible for GUI timeouts: the GUI or the app?

I have an application written in C#. This app uses a GUI for message display and user input, and the GUI is connected to the app via an interface class: public interface IEndUserInterface { void ...
2
votes
1answer
137 views

How to convert a powershell script to opensource `.exe`?

To make an installation of opensource software for the Windows platform single click, I am trying to convert the setup.ps1 into a setup.exe file. (To make a powershell script executable in a single (...
-2
votes
1answer
150 views

What is the meaning of 'code vetting' in Software Engineering? [closed]

I saw the term code vetting for the first time in a gerrit review page. What does it mean? The line I came across: "No XYZ check was done. However, if this project is intended to be shipped in ...
0
votes
0answers
29 views

Use of InstrRev

I am a novice Visual Basic user. I am an engineer, but I don't have much programming experience. I recently purchased the source code for a data recovery tool. I have decided to work through it, line ...
1
vote
2answers
231 views

Memory Allocation in C++

Does the memory allocated by class pointers get freed by the class destructor once the class method/function goes out of scope? Or do I need to manually free the memory allocated by the pointer (C++). ...
2
votes
7answers
274 views

Dealing with large code base quickly in agile

At my current company, the project I work on is coded in Java, at least for the systems / backend part. Whenever I get assigned a task dealing with the Java code, it take me hours or even days to ...
5
votes
3answers
335 views

Write a method with same logic but deals with different objects

Assume I have the following method that does the same logic but deals with different objects (It's more a pseudocode): private <E> List<E> updateOrInsert(List<E> list) { if ...
0
votes
1answer
46 views

Should we keep time related audit fields as integers or as timestamps?

We have a PostgreSQL database which we use as an intermediate staging area for our ETL pipelines. In the tables of this database, we have kept the time-related audit fields like creation time and ...
2
votes
4answers
138 views

Is asynchrony always necessary with microservices?

I’m reading about microservices and a consistent message I’m getting is that microservices should communicate via asynchronous means only. But I don’t see how this can work while also providing ...
1
vote
2answers
37 views

Same Actor with multiple roles

What is the best way to represent two actors, of which sometimes it could be the same person? I have a case where we have approver 1 and approver 2. In most instances, #1 approves and it flows to #2....
0
votes
1answer
47 views

Data replication with microservices using a messaging broker

I have a microservice based application like so: User.Microservice - stores , user information. Product.Microservice - stores products that user created. Order.Microservices - stores product orders ...
2
votes
4answers
196 views

Should one-line functions be avoided in jQuery/JavaScript?

So, I had a coworker complain about how I made the following code: ... var foo = getKendoDropdown(window.foo); var bar = getKendoDropdown(window.foo); var sna = getKendoDropdown(window.sna); var fu = ...
1
vote
0answers
14 views

Deployment pipeline as a component of an application

I am writing a serverless application using AWS SAM. I am wondering, would it be a good idea to include in my template a definition of a CodePipeline (and CodeBuild for that matter) for deploying that ...
2
votes
1answer
43 views

How can repetitive variable checking be streamlined?

I often have to execute some function, save the output, and depending on what the output was, do different things. And then later on use the output as input to more functions. It results in a very ...
1
vote
1answer
40 views

How should AWS Lambda functions subscribe to domain events?

I'm doing my first Domain Driven Design (DDD) implementation. My architecture is comprised of .Net Core for defining my domain model, services, and building AWS Lambda functions. I am using Lambda ...
0
votes
2answers
71 views

Common header file for C++ and JavaScipt, redux

I've got a question closely related to this one. I'm cleaning up a colleague's mess, and I'm afraid that that means trying to work with a language -- JavaScript -- that I'm almost completely ignorant ...
3
votes
3answers
93 views

Delete user data or replace it with empty resource?

Say, we have a public facing REST API which lets user manipulate data using POST, GET and DELETE. The API is exposed via Service A which at the backend calls Service B where most of the business logic ...
1
vote
1answer
53 views

Model - View - Controller: Are input fields views or controllers?

I am having a hard time trying to understand the MVC pattern, in particular the role of input fields in this pattern. 1. Conceptual question. Let's say I have a document as model and a text area ...
1
vote
0answers
33 views

What is the most efficient way to find filesystem changes in percentage?

I am planning to write a program that will produce digest logs for file changes in a particular directory. The idea is that whenever a file is deleted in a particular directory, it will show up in the ...
1
vote
1answer
33 views

Handling Currency getInstance throwing IllegalArgumentException

I have a class with a (simplified) method which returns a string like this : private String doStuff(String currencyCode, BigDecimal amount){ StringBuilder sb= new StringBuilder(); ...
-1
votes
0answers
12 views

User Provisioning, how to find a good strategy to use

I am trying to build an application that have upon user registration it will provision a space and Create a database structure reserved only for that user. So technically I will be allocating ...
2
votes
2answers
67 views

Is the .lib file generated for use with a .dll still a static library?

We've been having some debate in the office as to the names used to describe C++ .lib and .dlls When creating a statically linked library, you end up with a .lib file. When creating a dynamically ...
1
vote
2answers
90 views

Microservice Decomposition and Inter-service communication

I read theory but I need practical architectural advice on the actual implementation in java language for microservices. In the context of the attached screenshot. Here is my setup. Order Project ...
0
votes
1answer
70 views

Repository structure for microservices

As part of a larger project, my team is building a microservices API layer. We do not have experience with building microservices so we have been trying to figure out how to go about the project. The ...
9
votes
2answers
570 views

How does functional programming handle the situation where the same object is referenced from multiple places?

I am reading and hearing that people (also on this site) routinely praise the functional programming paradigm, emphasising how good it is to have everything immutable. Notably, people propose this ...
0
votes
0answers
20 views

Sequence Diagram Assistance with external database

I have 5 Java/android classes which are in sequential order. The user inputs data into the text box and clicks next. Two things happen, 1 the data the user inputs is passed to the next activity and it ...
60
votes
8answers
10k views

How can a class have multiple methods without breaking the single responsibility principle

The Single responsibility principle is defined on wikipedia as The single responsibility principle is a computer programming principle that states that every module, class, or function should have ...
0
votes
0answers
35 views

Classification of methods that are only accessible by a child class and its parent

I'm trying to document some of my JavaScript according to this JavaScript Documentation guide and came across member access (private, public, protected). I was wondering what the classification would ...
0
votes
1answer
30 views

Event emission Producer and Consumer responsibilities

Let's say we have MQ based Event Consumer and Producer. The Producer applications has to emit events in async mode whenever a call comes in for a type of request and respective responses (when a ...
2
votes
6answers
110 views

How can I change my code to display information about failure of creation of a value object, when I want to process an array of such objects?

Consider class Crate that is a value object. Crate represents a valid 3-dimensional box. In constructor I validate the given parameters, and I throw an exception, if supplied dimension parameters ...
1
vote
2answers
115 views

What's the most common way to handle API integration?

I work with some not-monolithic applications, meaning that at some level, it depends on other applications to do the work. At the moment, each application on our stack, when there is an API change, ...
-1
votes
1answer
97 views

How to separate fields from methods in logical manner?

In my application I have entities like employee, client etc. Each of these have methods AddEmployee, RemoveEmployee, AddClient, RemoveClient. I don't want to keep fields like EmployeeName, ...
0
votes
1answer
73 views

Web application and persistence choices

Right now we have a highly analytical system which collects tons of various metrics. We need to display this data in a web ui for users to consume. Since we are in early stages of development we are ...
1
vote
3answers
294 views

How do non-blocking HTTP servers work?

My question is based on a few assumptions so please correct me on any of them below I know that TCP has always been socket based In order for a server to maintain that socket, a thread has to block ...
2
votes
2answers
249 views

Does my class violate the Single Responsibility Principle in SOLID?

I want to ask: Whether the Role class violates Single Responsibility Principle in SOLID ? I think deleteAccount() is not belong to Role class but Role class is way to extend code in the future ...
1
vote
2answers
46 views

Laravel Controller Testing

This is the first time I tried TDD. At the first time, my controller tests looks like this use RefreshDatabase; class ControllerCustomerIndustryTest extends TestCase { use RefreshDatabase; ...
1
vote
1answer
62 views

Distributing library which internally using COM library

I would like to create a dll library that will be loading in runtime. The library'll be using internally COM objects with MTA flag. The library will be created in main thread. So I have question: ...
1
vote
2answers
142 views

Wrapper Class Should be made static?

I am planning on creating a wrapper class in c# which will call cryptographic functions provided by .Net Framework, just to make sure I am clear, I am not writing any cryptographic algorithm, just ...
0
votes
0answers
3 views

Deploying web app to Windows Cluster using Azure DevOps [migrated]

We are migrating our deployment process from Octopus Deploy to Azure DevOps. We have been able to configure DevOps self-hosted Windows agent to deploy our application to single target machines without ...
0
votes
1answer
34 views

Event planning application database schema

I am planning to develop an Event Planning Application. Currently I'm in the stage of planning the app structure, for example database schemas. Basically there will be two kinds of users: The event ...
1
vote
0answers
49 views

Should perform query at the point of time for the event or the actual time when working with CQRS for queue system?

I'm trying to implement CQRS for a queue system where user can join a queue by clicking a button. The system will tell the user if queue is full. When the user click the button, it raised the ...
-2
votes
2answers
36 views

How to handle mapping of generated classes with identical fields? [closed]

We have a large number of classes that is generated by JAXB. There are a couple that have identical fields and I want to see if there is a clean way to map class A to class B. Example: public ...
2
votes
2answers
206 views

Language design : How to type higher order functions parameters?

I'm trying to design a theoretical programming language and I'm facing a problem with high order functions. The language is strong-typed, so the way to define a standard function is like so : ...

15 30 50 per page