All Questions

Filter by
Sorted by
Tagged with
0
votes
0answers
9 views

Is creating an entity in a database considered to be business logic?

According to my (perhaps incorrect) understanding business logic includes saving/updating entities in the database, as well as connecting with any 3rd party API's or using services and should ...
-4
votes
0answers
19 views

Discrete Mathematical Programming Language

Which of the following statement(s) is true? (∀x ∀y P(x, y)) ≣ (∀y ∀x P(x, y)) (∃x ∃y P(x, y)) ⊨ (∃y ∃x P(x,y)) (∃x ∀y P(x, y)) ⊨ (∀y ∃x P(x,y)) (∃x ∀y P(x, y)) ≣ (∀y ∃x P(x,y)) (∀x ∀y P(x, y)) ⊨ (∀y ∀...
-2
votes
0answers
10 views

How best to store gigabytes of text for NLP?

I am collecting a very large amount of text and other metadata from fanfiction websites for NLP purposes. Now that I have some, I need an efficient way to store it. My initial thoughts were that some ...
0
votes
0answers
14 views

In which layer should I load views on a Clean(ish) architecture?

I am trying to organize my architecture following the clean architecture while using some commn practices/frameworks. I'm writing in PHP, but have no problem with other languages. The flow of my app ...
0
votes
1answer
48 views

Is there a canonical list of standard verbs to use for method names?

I was trying to explain something to a junior programmer the other day, and as part of it I had to explain that: a method with 'find' as the verb in it, will either find an item and return it, or ...
-4
votes
0answers
21 views

What is the fastest way to send Camera feed from a client to a server?

I am making an image processing app and to do so, I need to stream the camera feed from a client to a server. It's essential that the app will have low latency, therefore I wanted to know if I should ...
0
votes
0answers
12 views

Thoughts on adding a DB collection with a single record for version

I'm building an application with Google Firebase and Firestore that has it's structure defined in the DB. This structure is not very big and doesn't change all that often. This structure is stored in ...
2
votes
1answer
23 views

How to architect a codebase for short-term contributors?

I recently joined a tiny nonprofit whose flagship product is based on a decades-old C codebase, and I've been brainstorming with a senior developer about things I can do to help make working with all ...
-1
votes
0answers
17 views

How to integrate my recommender system on my website?

How you can read from the title I have built a content based recommender system. It will give recommendations based on similarity of the explicit item. My next will be to integrate it into my website. ...
-2
votes
1answer
74 views

Is it bad design to pass around a dictionary of arguments to all your functions?

In my machine learning pipeline, I have all the arguments collected into a dictionary. args = {'save_model': True, 'learning_rate': 0.01, 'batch_size': 4, 'model': 'my_model', 'momentum': 0.9, '...
1
vote
1answer
30 views

How to separate public and private headers when internal data structures are private?

When developing a shared library in C, it is common to separate the "public" headers from the "private" headers. The public headers contain all the functions and types that are ...
-2
votes
1answer
53 views

What counts as disclosing source for software licenses? [closed]

MPL v2, GPL v3 and other licenses alike require giving users access to source code. For desktop applications - does access have to be provided through the user interface (GUI)? Or can it just be ...
0
votes
1answer
22 views

How do Asynchronous Webserver (FastApi, Quart etc.) handle many Requests better than synchronous Webservers

I started using Pythons async features and want to fully understand their use cases. I see webserver like FastApi or Quart which use async features. How are they working different from webservers like ...
-4
votes
0answers
10 views

Web server with dart

Are there any ways to install dart in a web host? I want to make a website fully with flutter and want to use dart as a backend. Are there any compatible methods that I can use to do so? Please ...
-3
votes
1answer
93 views

Understanding C after getting used to scripting languages

I use python and javascript in my daily workflow. I am really excited about understanding c as I am drawn towards contributing to projects that are written in the language but even after weeks of ...
1
vote
5answers
140 views

All the properties of a domain object should support NULL value?

Imagine you have an application with the domain object User: public class User { public int Id { get; set; } public string Name { get; set; } public string Surname { get; ...
-6
votes
0answers
27 views

Can I use Node.js and Angular for building a commercial website? [closed]

I plan to build a commercial website in Angular 5. Can I do so without needing to pay anyone anything? It looks like the node.js license consists of a lot of other components and each of them has ...
1
vote
1answer
61 views

The use case of materialized view

I have a use case that some external 3rd party vendor services send our service an item with price and a time range, the data schema includes : vendor_id, item_id, price, time_range it means the price ...
0
votes
0answers
16 views

Provisioning AWS with Terraform : How to split the same job for two people?

Hi my project requires using terraform to provision AWS infra and two of us are tasked to work on the same infra. We are required to work together to set up the env using terraform and currently we do ...
1
vote
0answers
18 views

Seeding Microservice data cache or materialised view

In dealing with distributed data across Microservices common solutions I've read for sharing this data are a) using a local cache where the cache is updated from domain events coming from the service ...
-6
votes
0answers
30 views

Wrapper program for 3rd Party desktop application [closed]

At work we use an old program for data entry with no sign of upgrading any time soon. There seems to be very few options for configuration so I want to create a wrapper to extend its functionality. ...
0
votes
0answers
13 views

Custom system/process failure notifications - code in the domain or as a cross-cutting concern?

We have a number of notification requirements in our new system around service or process failures, e.g. If we fail to pull data from an external partner system regularly this needs to be sent to the ...
0
votes
3answers
102 views

How to model and unit test code with multiple side effects?

How to unit test code that requires multiple side effects? For example, making an invoice. Simple action requires few thing to happen simultaneously: create invoice in db send invoice to backend ...
-2
votes
0answers
55 views

Is the content of an executable only CPU specific? [closed]

According to this question Why do executables depend on the OS but not on the CPU? we know that executable depends on OS and CPU also. That's true. If I compile a C program on intel windows we will ...
-3
votes
0answers
34 views

How to calculate lead time to deploy most efficiently?

I want to calculate the lead time to deploy of a team in Azure DevOps. Lead time is the amount of time it takes a commit to get into production. Thus the code must reach the master branch beforde ...
0
votes
0answers
47 views

What would you name the different DTOs for the methods “GetUser” and “AddUser”?

I have a web service with the methods GetUser and AddUser, and some DTOs (Data Transfer Objects) GetUser: retrieves user information, as a DTO called UserGet DTO AddUser: takes a DTO called UserAdd, ...
0
votes
0answers
33 views

Is it a good idea to have separate instances for the public API Server and API Server used by the Web App?

I've built a React Web application with an Express REST API server and Firebase Auth. Also, Nginx is set up as a reverse proxy, so API calls from React to https://mydomain.com/api are routed to ...
0
votes
0answers
38 views

What's the best way to build a Flask API to control and show the status of a program tool I have built?

I've developed a backend project using Python. It collects data from different sources, process the data, and then perform actions with it (for example, store relevant info in a database). To execute ...
8
votes
4answers
2k views

Represent individual object as a class?

What is the best way to model the objects in my OOP program? I understand that the classes represent not particular objects but "groups"/"generalizations" of objects. But, I need ...
1
vote
1answer
109 views

Orthogonalization vs Dependency Inversion Principle

Is the dependency inversion principle an instance of orthogonalization? Given the class dependency X -> Y a common solution is to introduce interface Z so that the dependencies become X -> Z <...
2
votes
4answers
236 views

Is using getter method violating the law of Demeter?

Suppose I have a Attendance class public class Attendance { private PersonInfo personInfo; public PersonInfo getPersonInfo() { return personInfo; } } And I want to check if person is ...
1
vote
1answer
79 views

C# - Menu Implementation - Help writing it in a testable way

The Question: I'm developing an app in C# and am currently designing a menu which contains submenus and needs to be different depending on the category of the user. I've written the code but am ...
0
votes
0answers
55 views

What design pattern is Python's PEP 451 implementing?

PEP 451 provides a mechanism to change what is actually loaded when someone uses import in Python. After reading PEP 451 and using it in one of my projects I thought that this was an implementation of ...
-3
votes
0answers
31 views

Alternatives to venv for creating isolated python environment [closed]

Does anyone have any suggestions on ways to make an isolated python environment without using a venv? I need an isolated environment for an app made with py2app but do not want to use a venv.
2
votes
2answers
83 views

White-Box vs Black-Box

I need some clarification on White-Box vs Black-Box testing. Is it correct that: White-box testing is testing your code that you are familiar with? Black-box testing is testing someone else's code you ...
1
vote
1answer
42 views

Proxy / Decorator Design pattern scalability to a lot of methods

I'm trying to solve a common problem of logging each method that calls 3rd party operation and I don't understand how to scale it up. Current implementation: public class ElasticsearchClient { ...
-3
votes
0answers
45 views

How to create a webpage for a video streaming C++ application? [closed]

We have a C++ program to process a live video stream on the server. We want to have a webpage on the client-side that shows the processed video stream and has some control buttons (like play/pause). ...
3
votes
5answers
283 views

How do developers show progress when it's a “slow week”?

I'm working as the web developer with some friends who aren't coders themselves, but understand what goes on in the process. So, if it's been a week where I'm tackling a certain issue that I'm really ...
-3
votes
0answers
17 views

Using variables with operations to facilitate operating in SAGE

I am a math student, so programming is not my strong point, I am uing SAGE worksheet for some help on number theory excercises. Is there a way to present variables in SAGE in a way that the program ...
3
votes
3answers
116 views

How to deal with different level of abstractions (blurred line between data and models)

My question is about the way to represent data models created at runtime. To illustrate, let's say we would like to create a CMS-like app in which end-users may create custom forms. Those forms are ...
0
votes
1answer
43 views

Best way to migrate to new versions of librairies with breaking changes

(I orignally posted my question on StackOverflow and figured maybe this would be a better place to ask) I provide details on the librairies I'm working with because it helps understand my issue but it ...
-5
votes
0answers
60 views

Fortnite get all stats from replay file [closed]

I would like to know if someone would know an api or something else in order to create a ranking (know the kills and the top of each team) from a .replay file or simply from the game id. I found a ...
0
votes
1answer
24 views

Sending multiple calls from angular application

I am working in Angular project which is connected to REST API. Here we have an endpoint to create and update room types. POST endpoint for create and PUT endpoint for update exiting room types. Both ...
0
votes
2answers
46 views

Design of DTO-Objects for an API with dynamic table design

We have a table design in our database to dynamically store settings: You wouldn't need to understand every column in the table but basically tbl_Setting defines all possible settings and ...
1
vote
3answers
203 views

When to increment build number?

I'm reading a book which says: The third number, 719, indicates the build of the assembly. If your company builds its assembly every day, you should increment the build number each day as well. so ...
2
votes
1answer
51 views

Is it too much detail for a use case to specify which exact data the system should present to the user?

I have a subfunction, which is referenced in a number of my use cases. It looks something like this: User has the system fetch a list of all requests. User can filter and sort the list (filtering/...
0
votes
0answers
20 views

What is the proper way to handle Oauth Token caching in .Net Web API

When using service to api calls is it better to cache a token on the client side or server side? So for example the client gets the token with their ID and Secret. I want to cache this token so it ...
1
vote
1answer
58 views

Designing an API without knowing most of the requirements

Say we have a company that provides services and they would like to build a new API to sell to clients who will use it for their websites. Some things to consider: The company has an old API that the ...
0
votes
0answers
22 views

Terminology for cumulative vs non cumulative functions on timeseries data

Say you had some (contrived) timeseries data like: time | 1 | 2 | 3 | 4 | 5 | temp 1 | 3 | 3 | 4 | 4 | 5 | temp 2 | 2 | 2 | 2 | 2 | 2 | ...etc Is there a particular ...
0
votes
0answers
40 views

Is it a bad practice to have a class with a namespace that goes “out” of it's project name?

I have a solution with multiple projects, lets suppose there's one project with the name Company.Name.Foo.Bar. If I declare a class inside the project Company.Name.Foo.Bar but with a namespace Company....

15 30 50 per page
1
2 3 4 5
1169