All Questions

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

Use old legacy application code from new application

If you have a big legacy application (big ball of mud), lets call it MudApp. If you then create a new application to make us of new technology and to make a new good looking frontend because that was ...
-3
votes
0answers
16 views

Which license to choose if I am selling a website and its datasets? [closed]

I have a website currently served from a private GitHub repo. This website contains interactive data visualizations. A university has reached out to me and is interested in buying the entire website, ...
-3
votes
1answer
37 views

Which Code Lines Are More Readable?

Although I am having doubts to asking this question, I decided to ask. I have two different code blocks and two different preferences for each. Please decide one of it and share your reasons. QUESTION ...
0
votes
1answer
11 views

Is background long running thread a good choice for disk IO?

I am building a storage engine software that allows concurrent data writing, now I have two different choices here: Method 1. Background Long-Running Thread Multiple user threads write to their own ...
-2
votes
0answers
6 views

How to connect a dockerized multi-container web application to an enterprise AWS ECS test environment?

I have a Go application that is divided into three containers, these containers are called via a docker-compose file and they have environment variables that I believe are held in the cloud including ...
1
vote
1answer
7 views

Why is Laravel not enforcing foreign key constraints in polymorphic relationships?

Right now polymorphic relationships in Laravel do not have any referential integrity since they are implemented with two fields that may hold arbitrary values, a string pointing to the destination ...
0
votes
2answers
70 views

Small confusion about time complexity

Suppose we have a code: for(int i=0;i<n;i++) sum+=i; We say the time function here is: f(n) = n+1+n = 2n+1. The order of the time function is 1. So, our time complexity becomes O(n). But, for the ...
0
votes
2answers
130 views

Where is the boundary between things which can be statically typechecked, and those which must be typechecked dynamically?

I am brain storming on how to create a type system for a programming language, and what the compiler will do with the typing information. Here is what I have found, followed by the main question, ...
0
votes
3answers
56 views

Where is network data stored while awaiting to be written to disk?

I think download rates may depend on these 3 factors: the Network Infrastructure (router, VPN, network card, towers), the RAM or cache, the Final Storage (HDD or SDD or whatnot). So we take this as an ...
3
votes
1answer
63 views

GoF Builder Pattern Applicability

The book Design Patterns: Elements of Reusable Object-Oriented Software says to use the builder pattern when The algorithm for creating a complex object should be independent of the parts that make ...
1
vote
4answers
72 views

Using Enum to represent VehicleType in cab Booking system

I am working on low level design of cab booking type of system and feeling stuck at modelling Vehicle in Booking class.I came up with following design. Class Vehicle { } ...
0
votes
0answers
28 views

Service architecture for social media with global users

We are building a social media application,akin to twitter or facebook, on AWS where a user can say make a post which would then be surfaced to his followers/friends who can then like or comment. I ...
0
votes
0answers
30 views

Python: signals-based high performance communication system

I am working on a python framework for building a special kind of editors (so they have GUI) and I just split it into backend and a frontend (distinct libraries), s.t. another frontend could be ...
2
votes
2answers
62 views

Naming convention for functions that mutate arguments vs creating a new object

Take the following signature BigInt* addBigInt(BigInt* arg1, BigInt* arg2); Traditionally, the safest way to implement this function would be for it not mutate the arguments, and would necessarily ...
3
votes
1answer
69 views

How to test UI frameworks

I am currently working on a library that provides functionality for interactive terminal applications. For now, I implemented functionality for reading an arbitrary keypress from the User to the ...
3
votes
3answers
216 views

Error handling. Is it always necessary?

So, today I was reading a piece of code I found this function: Public Function FolderExists(sPath As String) As Boolean Dim FSO As New FileSystemObject On Error GoTo errHandler sPath = Trim$(sPath) ...
-3
votes
0answers
27 views

Python access properties via public or private interface?

I work with Python classes that define properties that return some privately managed data member. When accessing this data in the body of other methods, is it better practice to use the public or ...
-2
votes
0answers
34 views

Strategies for migrating node-locked, offline license data?

I have a piece of software which I would like to grant node-locked licenses for. The acquired license files will sit locally on licensed computers and should not require an internet connection to ...
3
votes
3answers
121 views

Is it possible to store N bits of unique combinations, in N-1 bits? If not; why does MD5 get reprimanded for collissions?

Regarding cryptography and the issue of collisions, I posed a question as to whether it was ever possible to store every single possible combination of a bit array of a particular size, in a bit array ...
2
votes
5answers
441 views

What is the viability of engineering an integral type with values ranging from -1 to 254? Do types like this even exist?

In software engineering, often developers will utilize three different states of a signed integer, as a trilean: This tends to be quite typical: -1 - Represents something akin to a null pointer, as in ...
1
vote
2answers
58 views

How can I keep track of which existing lines of code/text have passed some new review?

Firstly, this is a really tough topic to do searches for because you get a wealth of information on “code review”, which is different from what I’m referring to here. That normally refers to ...
0
votes
1answer
46 views

Designing Integration event application

We have a microservice that integrates with a third party system via REST API to handle appointment booking for our customer. It takes advantage of the event-driven model. Our microservice emits out ...
0
votes
0answers
30 views

Unit testing a chain of network requests - how many tests?

I have some fairly complex code, that is a chain of API calls. The result of one call is the input of the next. class PaymentService { func pay(userId: String) async { let paymentSource = ...
1
vote
1answer
49 views

Distributing responsibilities in a micro service in an Object Oriented manner for a 3rd party integration?

I'm trying to figure out how to structure a 3rd party integration microservice, and how to name the classes accordingly. If you had a classic shopping cart application which processed payments for ...
-3
votes
0answers
24 views

CI testing networking software that must traverse restrictive firewalls

I'm working on some networking code (WebRTC) that must work through restrictive network firewalls. That is, I hope some big-company customers will use it. I hope to unit-test or CI-test some of these ...
1
vote
3answers
84 views

How to create uniform interface of C++ classes without virtual methods?

I have been developing control software in C++. My hardware consists of a microcontroller with an integrated a/d converter and an external on board a/d converter. Both of these a/d converters have ...
-4
votes
2answers
51 views

Software license for paid open-source app on Microsoft Store [closed]

What is the right software license to use in order to be able to sell my application, have it be open-source, and still be able to accept pull requests? I am developing a productivity/utility ...
1
vote
1answer
62 views

When creating a RESTful API in AWS, why would you use EC2 over a Lambda integration?

In AWS you can easily create a RESTful API using API Gateway. With a serverless approach, you would have API Gateway integrate with Lambda to handle your endpoint logic. This seems like the most ...
2
votes
2answers
105 views

Is there a reliable way to get get the fingerprint of a file hosted online, without fully downloading it?

Background Tertiary to this question, I have been building my own imageboard that prevents [for example] duplicate images from being downloaded again and again on behalf of the client. How I do this, ...
2
votes
2answers
55 views

Read-only view to reference other Aggregate Roots

In his book Implementing Domain-Driven Design Vaughn Vernon suggests to reference other aggregate roots only by identity and not by reference, like this: // Aggregate Root class Order( val ...
1
vote
1answer
60 views

Implementing SSO on a REST API

I have a REST API server with its own authentication methods. I need to provide to some third party apps an authentication solution which should be processed on my server, I don't want them to handle ...
0
votes
1answer
60 views

Chain of responsibility look alike but choose handler at runtime

currently I have an structure of PopUps and I've been thinking to use Chain of Responsibility pattern, but the difference is a popup can back to previous one PopUp and also can go to any other PopUp. ...
0
votes
1answer
123 views

Should all structures be ADTs?

Is there any specific category an ADT must be in? I'm struggling to find out how best to represent objects in the program for example: As a record: struct Person { int age }; Or as an ADT: struct ...
2
votes
3answers
123 views

Define “constants” at the global or function scope?

I often define variables that will never change, i.e. constants, at the top of a script/module. But recently I've been wondering if it makes sense to define them at the function scope level if they ...
0
votes
1answer
68 views

How to address a common problem with automated testing on remote machine

CI/CD options such as bitbucket pipelines and github actions make use of virtual machines called runners. Changes in source code trigger the runners, which in turn trigger a set of commands. The ...
0
votes
1answer
46 views

Improvement of the config file management

I am working on a personal project for more than 6 months now, this project is composed of three distinct parts, simulation (wrapping a software), database related stuff (store the simulated data in a ...
-2
votes
0answers
35 views

Policy for Information: “information relevance duration” [closed]

We want to create a small policy in our company about where to store information. It depends on something which I would call "information relevance duration". I don't know if this term ...
0
votes
1answer
31 views

What is the better way to save swagger code gen plugin generated model classes in spring boot maven application?

I am working on a spring boot maven project in Eclipse IDE. And here is my pom.xml. <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/...
8
votes
6answers
642 views

Do any programming languages use types as values? Would there be any point?

The standard way that types are handled in programming languages that have such a concept, is that they are: removed entirely at compile time and are just used to determine memory layout, function ...
0
votes
1answer
85 views

Variable WHERE clause while avoiding sql injection

I want the user to be able to provide a custom WHERE statement against a mysql-backed platform... do I need to worry about any possible SQL injection attacks notwithstanding invalid sql? See the ...
0
votes
1answer
42 views

Designing around potentially multiple RESTful API calls to a downstream service

To set up the problem, let's imagine we have a downstream service that we need to call for some information. We set up an API endpoint and call another method which will hold our business logic and ...
0
votes
1answer
58 views

Python: Function pipeline with multiple return/input values, or use OOP? Best Practices?

I have a 'processing' function and a 'serializing' function. Currently the processor returns 4 different types of data structures to be serialized in different ways. Looking for the best practise on ...
-2
votes
1answer
31 views

Securing the REST APIs - Security Framework (Technology) V/S Custom

There are many ways to secure the REST APIs, from authentication and authorization view point. Below are the two which I know so far: Using existing token based IAM solutions like Okta, KeyCloak, ...
-3
votes
0answers
34 views

How to test private PyPI dependencies?

At work we have a private python package that we use across multiple repositories. A common problem we have is that we have to specify a feature branch of that dependency to be able to test the ...
-4
votes
0answers
20 views

How program and output would look like? [closed]

Write a Python script that calculates the top prize amount in a lottery. Ask the user to enter the largest possible lottery prize as an integer. Use the randint function to randomly generate the ...
-1
votes
3answers
75 views

How can I coordinate updating multiple Aggregates as a result of one command, without introducing exploitative possibilities?

I'm trying to figure out how to integrate one command that updates multiple Aggregates in different contexts in a video game. The components/considerations for my particular design are DDD, CQRS, ...
5
votes
1answer
85 views

Handling same exception thrown by different methods

Is there an idiomatic way to catch an exception when multiple methods may throw?: try: someMethod() # raises OSError someOtherMethod() # raises OSError except OSError: handle() The ...
-3
votes
0answers
52 views

Engineering Defect vs Software Bug [duplicate]

In core engineering, a defect is a deviation from the spec. So if my widget is supposed to be ±0.1mm tolerance but the engineered one is +0.3mm off that is a defect. In software engineering a bug ...
-4
votes
0answers
23 views

What approach is best for a excel pivot table automation tool - desktop app or web app [closed]

I have to design and develop a tool to automate a process that is currently being done using pivot tables in MS excel. Some features of the expected tool are: You provide an excel file that contains ...
2
votes
1answer
77 views

What is the role of ISO in the ECMAScript standardization process?

I've been told on StackOverflow this questions was off-topic so I'm asking here: From this webpage (ISO/IEC 22275:2018): This International Standard defines the ECMAScript Specification Suite ...

15 30 50 per page
1
2 3 4 5
1175