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 ...
-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 ...
-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 ...
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 ...
-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; ...
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 ...
0
votes
1answer
24 views

WebApp for ETL with visual mapping - read csv and map it to data model

a few years ago I wrote a python script for reading CSV, handling the headers, filtering data, renaming stuff via RegEx...bascially to do various ETL stuff. This was done using a exhaustive ...
1
vote
1answer
496 views

Client is ordering me to send spam. How to I deal with this issue/what is my options? [closed]

We have corporate dedicated server, which I'm the only one in charge of, and my client is having a fixation that sending mass emails to somehow found addresses that he knows they(owners) will be ...
1
vote
1answer
82 views

Is there a convention for the Optional/Maybe monad in typescript?

Let's take the classical example of a function that may return a number or not. In typescript this can be represented like this: function f(): number | undefined {} A more elaborate way would be to ...
5
votes
4answers
213 views

Do I really need triggers for relational database, for example, PostgreSQL?

I know that triggers can be used to validate stored data to keep database consistent. However, why not perform validation of data on the application side before storing them into the database? For ...
10
votes
5answers
3k views

Building a DSL: Scripted atop a general-purpose language or stand-alone?

I'm debating designing a domain specific language to simplify a given, obscure programming model. Part of the debate is whether to build it (as a script) atop an existing language/runtime (e.g. Java) ...
-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, ...
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 ...
-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....
1
vote
1answer
64 views

How to safely allow different end users to insert data into a table stored in an Oracle database?

This is a basic question, but I don't have any sense of what other developers do in this scenario. The Situation I am creating an interface to allow end users to insert and update data in a table ...
-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 ...
0
votes
1answer
59 views

how to ensure consistency for concurrent requests for same mutable data?

Consider an abstract example, just to illustrate - you have a service for loans, which gets requests to borrow X USD, checks if there’s enough USD to lend that, if yes - marks that amount as reserved ...
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 ...
-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 ...
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 ...
4
votes
2answers
2k views

Is there a representation for mixins or traits on UML?

Is there a representation for modern programming constructs that are becoming common in modern OOP/hybrid languages like mixins/traits/categories/partial classes ?
1
vote
5answers
1k views

Call a script over the network

I have a Python script on a box that I want to call from a Java server, over the network. I know that I can start a server on the Python side and then connect to it from the Java site, but I am trying ...
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. ...
0
votes
3answers
115 views

Can an entity include “technical” (not business related) information?

I want to to follow a clean architecture rules (with domain and architecture layers). I have a problem with properties that an entity should or should not have. Let's say that I have a User domain. ...
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 ...
0
votes
1answer
250 views

Can deployment diagrams have components in UML?

I have these two questions: Can deployment diagrams have components in UML? Can component diagrams have nodes in UML? I've seen many diagrams mixing diagrams elements and is making me confused.
-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(...
-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 ...
1
vote
2answers
549 views

Socket Connection Data Insert

I have been working through a high-performance application where I have identified a bottleneck. The bottleneck is actually when the application must insert messages from a socket, it will record them ...
-1
votes
1answer
55 views

PHP MVC - which approach is the right one

Next semester we'll learn the mvc pattern in web development but since it looks pretty interesting to me i decided to learn it now but...there is a problem. Surfing trough the pages i found two ...
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 ...
-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/...
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 ...
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 ...
1
vote
5answers
352 views

Making logging more efficient and useful by categorizing data (and virtually not writining messages anymore)

I'd like to make my logs more useful. Currently they mostly contain such common columns as: timestamp, logger-name, log-level, message, exception. They are unsearchable and unparsable and writing ...
0
votes
2answers
82 views

Is this a proxy or bridge or something else?

I have an object that acts as a "bridge" between objects and I'm not really sure if it has a name. Unity (the game engine) lets me build a concrete object and then link those objects in the inspector ...
9
votes
4answers
810 views

Programming style in Perl

I work in Java so basically I use OOP paradigm during coding. I am about to start working in Perl and I was wondering what is the paradigm that Perl developers follow. In wiki it mentions that it ...
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
1answer
59 views

Domain Use Case

In my understanding of Uncle's Bob Clean Architecture, a Use Case (Interactor) is responsible for orchestrating the Entities. At the same time, it represents Application-specific rules. The business ...
0
votes
4answers
687 views

TDD: Uncle Bob's rules versus classic cycle

Uncle Bob says in 'The Clean Coder', chapter 5 'Test Driven Development': You are not allowed to write any production code unless it is to make a failing unit test pass. You are not allowed to ...
4
votes
2answers
104 views

Inject package protected (internal) classes at runtime

I am referring to Robert C. Martins book "Clean Architecture" on the top of page 318. There he states: In the ports and adapters approach, the OrdersService and Orders interfaces have inbound ...
9
votes
1answer
610 views

What does “TILT” mean in a comment?

I'm reading Clean Code by Robert C. Martin, and the phrase TILT inexplicably appears in some code samples. Example (it's in Java, by the way): ... public String errorMessage() { switch (...
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
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 <...

15 30 50 per page