All Questions

0
votes
0answers
7 views

How to do coding in any language without setting up?

I have faced a big problem in coding and that is setting up of ide. I have seen a lot of YouTube video telling how to set up atom or sublime text for working with java or Python and they tell to ...
-1
votes
0answers
16 views

Best practice - Single or Multiple source code repository

As mentioned here: The main aim of CI is to prevent integration problems, referred to as "integration hell" Our project is a 3-tier web application, with frontend(Angular 6), backend(Springboot) &...
0
votes
1answer
45 views

How does a compiler work when it's not directly compiling to machine code

I know the compilation process goes with this flow: source -> parse -> AST -> intermediate code -> assembly -> machine code ,and in the case of Java you will have bytecode which is ...
-4
votes
1answer
29 views

Why is wchar_t in C++ implemeneted as a new data type?

I am learning C/C++ and have come across the type wchar_t, which appears to be 2 byte long char. So my question is why did C++ add a new type, when it could have just added the ability to apply the ...
-3
votes
0answers
21 views

How to add copyright and licence when using others libraries

I develop simple software that uses some other open source libraries like HyperSQL. I am going to licence my project under the MIT licence. When I see the licence of the HyperSQL It said, ...
-3
votes
0answers
19 views

extract function calls and arguments [on hold]

I have a text written in c++ . I need to extract from it functions calls and their arguments. I used Antlr v 4 to write a small program but I just could get function definitions. my attempt my ...
-1
votes
1answer
45 views

Algorithm - Simulation of a soccer match

I'm implementing an App for fun. It consists of a soccer round-robin tournament simulator in which all teams play each other. A Team consists in a simple object: class Team{ String _teamName; ...
-2
votes
0answers
28 views

Reducing dependencies between stories & which branch (GIT) should QA's test on?

Background We have a team of 8 devs and 1 QA (tester) and we're struggling with dependencies between tickets and causing a lot of merge headaches and/or people waiting around for the next bit of work ...
0
votes
1answer
27 views

Most efficient way to get unique customer count

I'm working on a system that stores details of customer purchases for several stores. One statistic that they would like is to know how many unique customers they have had over a specified day range, ...
-2
votes
1answer
59 views

Are executable requirements the most advanced form of declarative code?

The more declarative code is, the less explicit technical details it contains and the closer it gets to requirements expressed in domain language. In the extreme case, there is no more difference ...
0
votes
2answers
59 views

Should you “rebrand” the exception of the library you're using?

Say your making a library Foo that depends on a 3rd-party library Bar. Bar throws a custom exception \OtherVendor\Bar\CustomException. Is it recommended to just throw that exact exception to your ...
-1
votes
1answer
30 views

How should I update back-end data (e.g. follows, likes, etc.) which changes at an inconsistent rate?

(This is a conceptual question but as reference, I'm using Android Studio (Java) and Firebase Firestore...) My app currently has a structure where the user can follow authors and favorite their works....
-3
votes
0answers
28 views

Domain Model examples and best practices [on hold]

Even though Domain Driven Design was introduced a long time ago and many companies strive to DDD, I still see some things that are not formalized in the DDD community yet. One of the most important ...
1
vote
0answers
21 views

Write integration tests with React using Jest

Let's imagine that we have this Page component: const Page = () => <> <Topbar /> <Drawer /> <Content /> </> I'd like to test some interaction within ...
1
vote
1answer
39 views

Unit testing abstract classes with Google mock (gmock/gtest) (C++)

I want to test an abstract class with: Pure virtual methods that should be overridden in sub-classes Non-pure virtual methods that use the pure virtual methods (as opposed to this question) class Fu ...
-4
votes
2answers
41 views

Should I use async for networking application/library

I decided to make an application, networking application, don't know what it has to do yet but mainly it should be a cross-client kind of like framework networking application/library. Since ...
-5
votes
0answers
15 views

XGBoost for predicting minutely data

A model is already in place using XGBoost , which predicts the value for every min of tomorrow. The problem is when I add new features, the added features came out to be important from the get_fscore(...
0
votes
0answers
26 views

entity framework code first and common table in linked server

We are working on a system with several applications and we have several link servers. Every application has its DB on a server. Sometimes it's necessary for applications to use table of other DBs. ...
-2
votes
0answers
48 views

C# enum using switch statement - how to use user input [migrated]

While trying to learn C# Im trying to play with Enum and switch statement. how can I pass the user input into a variable in order to let him select one of the options in an enum? what is the right ...
0
votes
0answers
21 views

Code base architecture for one app that has multiple versions with small changes [duplicate]

I'm building a hybrid mobile app that has slightly different versions but share 99.9% of the code. There is a paid and free version, which differ in one function only. Also there is a slight ...
2
votes
2answers
156 views

How to use single responsibility with functions when I need to reuse procedures?

I've just read the book called Clean Code. The author (Robert C. Martin) talks about a single responsibility that a function should have in a program. It should only do one thing. Now, I would like ...
0
votes
1answer
19 views

Event sourcing access by reference

In an event sourcing architecture, what is the typical pattern for passing information about related objects (aggregates)? For example, in a order processing system, should OrderCreated event (...
1
vote
1answer
20 views

Best practice to confirm unique username for user creation in JSP and JDBC?

First let me state the asynchronous approaches:- The user enters a character into the username form field. I create a connection to the database, use a prepared statement to confirm whether the ...
1
vote
0answers
26 views

In a flow chart, is there a convention on directionality of true/false conditions from a decision?

When writing a flow chart, I can understand that it is a best practice to generally read left-to-right or right-to-left per locale, and/or top-to-bottom and generally for the directional flow of the ...
2
votes
3answers
89 views

Design: Where should methods specific to a model, but not an instance go?

Let's say I have a User model defined. It makes sense that methods for retrieving certain fields of this model lives in the model file. My question is where something that generates a unique UUID, or ...
-2
votes
1answer
40 views

Using static member methods to check for object being NULL

Is it a good practice to use the static member methods to check if an object of a class is NULL or not. The object would be sent through the parameters offcourse. Something like, #include <...
5
votes
1answer
170 views

How common are destructors in modern c++ code?

In the standard c++ library, all containers and all input/output streams have their own constructors and destructors, that handle all the relevant resource acquisition and release. So for most tasks ...
-2
votes
0answers
18 views

How to phrase problem with thread work balancing

I have a question where I assume I do not know the right terms for a search. Hence I ask here and hope to learn how the problem has to be labeled and how to address it. Assume you have a e.g a C# ...
0
votes
1answer
35 views

Identification of Nonfunctional Requirements

For the most part, I am able to distinguish between functional and non-functional requirements, but at times it is not clear for me. For example, the following are non-functional but they seem ...
-3
votes
0answers
55 views

Project manager asking a front-end dev to write documentation on how to set up and manage servers [on hold]

I am a front-end developer and have recently been asked by my project manager to write documentation on how to set up and manage a XMPP server for a customer. I do not know anything about managing/...
0
votes
1answer
32 views

How to build a custom intermediate operation pipeline in Java for a series of API calls?

I am working on a project which provides a list of operations to be done on an entity, and each operation is an API call to the backend. Let's say the entity is a file, and operations are convert, ...
0
votes
1answer
47 views

Use same API for both website and other clients or not?

Lets say I am building some large application ( multi-page app ) using Laravel. And laravel will allow me to make an API and a website on the same application. Since the website and the API ...
1
vote
1answer
29 views

DDD Aggregate with Catalog Product

I'm new to DDD and I'm trying to figure out the aggregate root. I'm sure this question has been asked a million times. So I have : Products (thousands) Catalogs (hundreds) CatalogEntries that ...
-1
votes
0answers
25 views

What happens to a raw pointer member of a class foo smart pointer when the smart pointer is destroyed? [on hold]

Say we have a smart pointer (std::unique_ptr) of class foo. This class has a raw pointer as a member. The program is executed and smart pointer foo carries out its intended functionality. If there'...
-2
votes
0answers
47 views

C++ code generation [on hold]

I need to generate C++ code (headers and implementations). I would like to do it in C++ or C#. I can think of: Simply appending to string or writing to file directly Template-based approach (using ...
-4
votes
0answers
42 views

Multiplying elements in an array [on hold]

The problem I'm facing is the ability to multiply and print the multiplicative property of the number along with the number in front and behind it. My array is {13, 2, 20, -32, 3} The array I'm ...
-4
votes
0answers
15 views

How to give Users B, C, D access to user A's page? [on hold]

What would be the best way to give access to user A's logged in webapp page to his/her team members? A link to the page will be send via a html sms tag. The team members will not be in the webapp's ...
2
votes
3answers
156 views

Is something like “answers/{id}/downvote” considered RESTful?

Looking at Stack Exchange API docs, I see methods like answers/{id}/downvote answers/{id}/downvote/undo comments/{id}/delete. Should this be considered a RESTful API? (The docs does not mention the ...
-2
votes
0answers
40 views

How to programmatically modify code in a Visual Studio C++ project [on hold]

Let's say there's a set of actions I want to repeat every time I make a specific change to a codebase, for example I want to globally forward declare a newly created entity type for a video game, or I ...
-1
votes
1answer
43 views

Clean Architecture and Microservices

Our team is in the planning stages of creating an enterprise solution for our back office. Our goal is to have one singular entry point for common tasks, such as changing an address or reprojecting a ...
-1
votes
1answer
36 views

Is a localized Mobile App considered bad and prone to removal from Apple/Google's perspective?

For the occasions that I've been offering SaaS, I've been asked to develop Apps that are pretty much a clone of regular e-commerce webpages, but with a few features like notifications and, well, being ...
0
votes
0answers
30 views

AMQP integration

I’m trying to make a AMQP integration layer for my app. This layer would only consume messages from my customer’s queues and the result would be a specific action in my application. My application is ...
1
vote
2answers
100 views

Python - Should a function write to a file or return text to be written?

Currently I have something like the following def writeThis(fileHandle, name): fileHandle.write('Hello ' + name) writeThis(fh, 'Alice') Something about this doesn't feel right however, it ...
0
votes
0answers
27 views

Frontend JSON payload that defines which classes to use in the backend

Payload: { "selection": { "ids": [1,2,3,4,5] }, "image": { "backgroundColor": "#FFFFFF", "headlineColor": "#000000", "format": "PNG" }, "processors"...
1
vote
1answer
29 views

Best practice with SignalR communication

I'm working on a project that involves online purchases. I have my web api in C# and my client in REACT (javascript). Server and client are connected with SignalR. I want that when an ORDER is ...
-3
votes
0answers
51 views

C++ and Java 64 bit migration challenges from 32 bit [on hold]

Any set of guidelines or pointers to compile and run existing applications that use Java 32 bit version for linking native code in C++ and Java, as from Java9(JDK9) only 64 bit versions of java will ...
0
votes
0answers
92 views

Decorator Pattern Java

This is an object-oriented design question that is specific to Spring Boot. I'm extending a Spring Boot application that has an interface that is being extended and used inside another service. The ...
-1
votes
1answer
59 views

Formula Parsing

I have created an application to import CSV files, each CSV file that the application imports can contain different data, with new formats of the CSV files being added in the future. Rather than hard ...
-2
votes
0answers
40 views

Packages with only __init__.py - Possible issues?

Considering a Python Project structure such as the following, where there are "empty" packages with __init__ files simply pulling code from the lib folder: . ├── foo │   ├── fred │   │   └── __init__....
1
vote
0answers
39 views

How to solve circular dependency scenario while executing http calls which require authentication?

I am working on a project which requires me to execute standard HTTP calls with session tokens. I am building a custom HTTP client, with a custom authenticator, something like this: Client client = ...

15 30 50 per page