All Questions

-3
votes
0answers
15 views

I'm a Beginner and want to write a Machine Learning essay

so I am in IB in high school and decided to make my extended essay on machine learning, specifically on whether training a neural network (in say, chess or another simpler boardgame) is more efficient ...
0
votes
0answers
9 views

Good way to do 3D math in a web app (Operator overloading)

I would like to make a simple web application that generates a mesh and displays it. I have a working prototype in Unity and now I'm wondering what a good framework / language is for the task. The ...
-5
votes
0answers
36 views

How do you measure/monetize code quality?

If you have to give an estimation on cost of given code vs cost of the same functionality (clean code) how would you do that? I've read this and that about cost of bugs, cost of lines, but is there ...
0
votes
0answers
24 views

Should there not be methods intended to be only called from inside of the package, but from the outside of the class they're defined in?

Note: This is a follow-up to this question on StackOverflow. I have to write a wrapper in Python to an external API, accessible through HTTP. The code is supposed to be publicly available on GitHub. ...
0
votes
0answers
16 views

Should AutoMapper be used to Map from ViewModel back into Model?

Should AutoMapper be used to take data from ViewModel and save back into a database model? I know the opposite practice is good software practice: to have Automapper to extract database models, and ...
-2
votes
0answers
20 views

Dealing with hierarchical rules

I want to configure hierarchical rules such as - Rules --------------- dimension_1: * dimension_2: * value: val1 dimension_1: abc dimension_2: * value: val2 dimension_1: xyz dimension_2: * value: ...
0
votes
2answers
38 views

API and motherboard

I'm new on API and still undergoing some research to gain knowledge for my presentations for next few days. Different motherboard have different CPU socket. So I was just wondering, do API affect ...
0
votes
0answers
46 views

Does avoiding Promises and Async leads to clean code?

While applying for a job interview I found this line in requirements. Experience with clean code writing practices like avoiding callback hell like promises, async Does this line make any sense ? ...
-3
votes
1answer
52 views

What is meant by /0 in AMD64 specification?

The AMD64 specification talks about /0 with regards to instruction encoding but I don't have a clue what is meant by that. For example, in Volume 3 the ADD instruction has three forms: ADD reg/mem16,...
-8
votes
0answers
27 views

Write an algorithm and draw a flowchart for the system [on hold]

Cee Gadee owns a retail business shop that sells gents and ladies dress. As part of her business strategy to attract more customers, she frequently offers 30% discount on all her dresses. She has ...
0
votes
1answer
55 views

Applying hotfix to intermediate commit on master

Below is the Gitflow workflow followed, where master branch has the commit history(git tag) of different releases. From release mgmt aspect, we are deleting the release branch after merging with ...
0
votes
1answer
56 views

2 way multiplicity constraints in code

my goal is to convert this class diagram into Java code. How should I approach this, given that I want the constraints to hold at all times? It creates a chicken-egg problem where the first Course or ...
-5
votes
0answers
22 views

Grok X marks the trial

I am don't Grok introduction to programming 2(python) I am up to number 5 but I don't understand the first coding. the question says You're familiar with the story of Hansel and Gretel, so when you ...
0
votes
1answer
59 views

A problem with understanding aggregates and aggregate roots in Domain Driven Design (DDD)

I've stumbled upon a problem: "I can't split my domain models into aggregate roots". I'm a junior developer and novice at DDD. I really want to understand it, but sometimes it's really confusing. ...
-2
votes
1answer
55 views

Release pipeline - Which artifact goes in production?

Below is the GitFlow workflow, we are using for a project. So, in our project master branch currently has only one git commit with just a Readme file. develop branch is forked from that commit. As of ...
1
vote
1answer
29 views

Avoidance of Lost Update in DB2 for z/OS

I have a question concerning the "Uncommitted Read" Isolation Level under DB2 DBMS for z/OS. In this article https://www.ibm.com/support/knowledgecenter/en/SSEPEK_11.0.0/perf/src/tpc/...
-1
votes
4answers
128 views

How is a first assembler assembled? (without cross-compiling)

I know there are a lot of threads regarding this topic, but I can't find the answer for this precise topic: First of all, with the "first assembler" I mean the program that translates, let's say, the ...
-2
votes
0answers
24 views

Java / Python for ERP

Which would be better for making ERP system - Java or Python? ERP will be built for big companies and can have big data analysis, artificial intelligence, machine learning. Some questions have already ...
-3
votes
0answers
28 views

Recommendation for building a expert system [on hold]

I'v never get touch with expert system. but here's a need for building a expert system what tools are recommended? also, what's the difference between rule engines and expert systems? can i use rule ...
1
vote
1answer
75 views

Should usernames and passwords to external systems be documented?

This is basically an extension to my previous question. That time our internal discussions didn't end up anywhere and the whole issue was forgotten for the time being. Now we've touched upon it again,...
0
votes
1answer
20 views

should we consider a feature set as a microservice in FDD?

We are designing the software based on the FDD (feature driven development). Our architecture is microservice. I want to know that microservices are demonstrated by the feature set? In other words, is ...
-2
votes
0answers
19 views

Comparison According to Asymptotic Complexity

I wish to solve this problem to get a better understanding of asymptotic complexity. I understand that from biggest to smallest it goes O(n!), O(2^n), O(n^2), O(nlogn), O(n), O(logn), O(1) but I get ...
0
votes
1answer
48 views

Unit/Component testing using In Memory DB

I am writing Unit/Component test using In Memory DB. When I write Unit/Component test, I came across with the following question. I have the following two BL methods. ToCreate ToGet So when I ...
1
vote
0answers
29 views

Designing a big data web app

How do you design a website that allows users to query a large amount of user data, more specifically: there are ~100 million users with ~100TB of data, data is stored in HDFS (not a database) number ...
0
votes
0answers
46 views

Way to describe a coordinate system without external points of reference?

I'm writing an API for a JavaScript library to let my users offset an object from another. I have to provide my user with a way to describe a "vertical" and "horizontal" offset. My problem is that I ...
0
votes
0answers
13 views

Messaging engine architecture with front-end and ORM layer (spring)

I'm looking to push my first QuickFixJ messaging engine into production, and I would like to know the best way to do so. Bear with me. The gist of the responsibilities is as follows: Through ...
-2
votes
1answer
70 views

What's the best design pattern approach for introducing optional feature to current code base?

I had a class hierarchy with several classes that interact with each other. After introducing new feature that is optional (but it depends on external libraries) I have the following code (just ...
0
votes
0answers
17 views

Does this implementation process of front end invoking the stored procedure looks good?

I have a Download button in the UI below a text area. The user is supposed to drop something in the text area and click on the download button. As soon as the user clicks on the download button, the ...
0
votes
1answer
19 views

How a Merkle tree can work with Graph data, or a better data structure

I am looking at blockchain and trying to see how Merkle trees (or perhaps Merkle DAGs) can fit to a graph data structure with circular references. For example, say I have this data model: var ...
0
votes
3answers
142 views

Is it sometimes okay to intentionally violate the Dependency Inversion Principle?

I am doing some work to refactor a class. It currently a 'God class' and contains all different logic/operations solely in that class. One of my solutions is to extract all different parts of logic to ...
0
votes
1answer
42 views

Migration benefits from PHP web app to java?

I have recently joined the company which took the call to convert the PHP based web application to java. The call was taken around 4 years by some architects who have left the company. I read a lot on ...
0
votes
0answers
37 views

On fetching an item does the database read its whole content?

In my database (mongoDB) I have a model called exam and each instance of the modal has a somewhat large json object (500k). I'm using strapi cms to make the query, using graphql plugin. However when ...
0
votes
4answers
95 views

Is there a pattern or best practice for returning dynamically typed data?

I have a method that returns the percentage change of a data in a certain period. After calling that method, i need to know if in the current period the data increased, decreased or is the same when ...
1
vote
0answers
57 views

Designing a multithreaded TCP/UDP server for audio sharing

As briefly introduced in the question title, I am trying to design and implement a server application able to let clients share audio contents between themselves. In order to achieve that, I decided ...
-3
votes
1answer
91 views

Which is the best pattern or solution for this problem?

Given the following class: class S { ... private: void Action1(); void Action2(); . . . void ActionN(); } The Action functions are related, which are called in ...
-3
votes
1answer
54 views

method taking a class parameter

I have recently begun studying UML. All is going fine so far until I saw the following: This is a class Called Point2D It has 2 attributes which are x, type float and y, type float. It has 3 methods ...
0
votes
1answer
72 views

One-field interfaces

I have an interface with only one title field: protocol Artist { var title: String { get } } (A) Should I pass the whole object as I did here: class Album { func setArtist(_ artist: Artist) ...
-2
votes
0answers
24 views

How to control program usb loc/unlock c# code [on hold]

I have a desktop c# .net program and I want to lock and unlock this program using a USB device. When a user plug in USB device, my program will read a file from device and unlock the program. Clients ...
-1
votes
1answer
70 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) &...
2
votes
3answers
145 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
58 views

Why is wchar_t in C++ implemented as a new data type? [on hold]

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
30 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, ...
-4
votes
0answers
32 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 ...
-2
votes
1answer
68 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; ...
1
vote
0answers
49 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
2answers
48 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
votes
2answers
98 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
vote
2answers
78 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
32 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
32 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 ...

15 30 50 per page