All Questions

Filter by
Sorted by
Tagged with
1
vote
1answer
85 views

Why does java use an @functionalInterface annotation, instead of a modifier?

What were the motivations for java to use the @FunctionalInterface annotation, instead of creating a new FunctionalInterface modifier? @FunctionalInterface public interface MyFunction { TypeB ...
-4
votes
0answers
44 views

In what industries are formal methods used? [closed]

What industries commonly use formal methods to verify the correctness of their programs? I'm told that UK air traffic control is one; can anyone confirm or deny?
3
votes
1answer
52 views

How can I provide a class diagram for a system that contains creation of an object that contains a combination of property?

I am designing a system that contains organizational hierarchy management. There are four roles in the system which are the user, admin, manager and head of procurement: I am trying to let the ...
1
vote
0answers
62 views

Why does the PHP community always rely on file-based logging instead of a combination with in-memory logging?

This is an initial thought I'm having on logging. Clearly, am missing something about the whole picture because I don't think someone didn't think of this before. PHP runs on one request. That means ...
0
votes
0answers
58 views

Can a C# AnonymousPipeServerStream create a non .NET client?

For example, if I want to write a daemon program in C# that uses anonymous pipes to communicate with programs written in another language, is this both possible and feasible? I ask because I intend ...
-3
votes
0answers
37 views

How to publish a local website to a specific server?

I have a local website currently working perfectly that uses Plotly-Dash and a flask server. It may be terrible practice, but I have only 1 .py file (1000 lines of code) that contains all of my HTML ...
0
votes
0answers
39 views

Different ways of executing a custom DSL program [closed]

Having a small DSL (domain specific language), I want to go from editing over parsing to executing. Editing is clearly not a problem, and parsing is pretty much a solved problem. But I'm not sure how ...
-4
votes
3answers
122 views

Why local database should be the only source of truth for mobile application?

Being mobile developer for quite some time (ios/android) I've learnt that local database is very rarely needed. Mobile application are mobile by definition, they usually serve only as clients to ...
-1
votes
0answers
61 views

Is there a well-known design pattern being followed by GalleryHasMedia?

Here is a class called GalleryHasMedia, which is used within a popular content management framework called Sonata: https://github.com/sonata-project/SonataMediaBundle/blob/3.x/src/Model/...
-3
votes
0answers
28 views

Webserver and Data Scraping Architecture

Disclaimer: I'm largely new at system architecture, but I'm working on a personal project that has required me to jump in. I don't know what I don't know, so I apologize in advance if parts of this ...
2
votes
1answer
74 views

Critical view of a particular application design

For a system, I have certain requirements should be soft realtime. should be able to handle lots of operations in parallel should have ability to add, remove, alter features should be able to ...
3
votes
1answer
88 views

Difference Between AsyncResult and Task in c#

So, in C#, I understand the historical difference between the two vaguely; a Task is a newer concept and the highest level concurrency native C# offers. AsyncResult is a bit more ambiguous. For ...
-1
votes
0answers
24 views

Hadoop stores the data on disk?

After reading the mapreduce and other resources looks like once map operation is done, then map output is saved on on local disk of map node. My question is what is the need to save output to file ...
-1
votes
0answers
39 views

What should the parser do with the output of the lexer?

Currently I am working on my own compiled language. I have finished the lexer and its output is a token list, the parser should go through this list and build the trees. Example file for the language:...
2
votes
1answer
41 views

Microservices for app with custom made API without imposing traffic load

Let's say you have an app like Facebook, where each Post can be tagged with a Place. Now, the whole social app backend api (basically the whole client api) is built using nodejs + postgres. But the ...
1
vote
2answers
154 views
+50

Microservice architecture pattern for Batch based system

I have been exploring the microservice architecture for the batch-based system. Here is our current setup: Code: We have 5 systems that are internally connected and they pass data from one system ...
2
votes
1answer
65 views

Convert modelId to model & validation of modelId — in Controller or Service layer?

Let's say a sample case where we want to create an article with some tags. Following are my pseudocode, and the questions are at the bottom. Sample Case Request: @Data public class ...
1
vote
1answer
28 views

Deploying a Customer Facing Enterprise App

I have a customer-facing enterprise app. (like AWS). Customers specify config on the app and relevant infrastructure is spun up along with my software on it. My CloudOps team, like the AWSCloudOps ...
2
votes
4answers
140 views

Splitting class responsibilities without exposing private data

I'm struggling to find good ways to split up classes without exposing private data. Most articles I read about SRP seem to ignore how the new classes that take on the separated responsibilities access ...
3
votes
3answers
252 views

Why is it better to use parameters instead of temporary global variables?

If you're a very old programmer like me you may have written stuff like this early on: DIM A, B, C LET A = 2 LET B = 2 GOSUB ADD PRINT C END ADD: LET C = A + B RETURN (Actually, if you're an ...
2
votes
2answers
54 views

Entity-Relationship language, not diagram

I have to design a database, but I don't yet know which underlying technology it will use (not just my decision). Could be SQL, could be NoSQL, could be something else. I do have quite a few ...
-3
votes
0answers
29 views

Is there a Fortify annotation for returning a wrapped stream/connection? [migrated]

We have a Java method that accesses a stream, wraps it, and returns it to the caller. (We have a similar situation with a database connection.) Fortify (the static code analyzer) reports this as an "...
-4
votes
0answers
38 views

What are the suggested architectures and design patterns to be followed for constantly evolving Product Application? [closed]

Nowadays I am designing a new Application which is a school management system, which will have both web and android interfaces. I want to give this software application as a service. Though, we have ...
1
vote
0answers
20 views

Do Multi-Primary replicated distributed systems guarantee sequential consistency?

I know that Primary-backup replicated distributed systems guarantee sequential consistency. My question is whether multi-primary systems also achieve that. I mean if they use consensus (i.e: Paxos ...
-2
votes
2answers
272 views

Why is “map with reverse lookup” not supported as a data structure?

I asked this question on StackOverflow recently: Is there a Map in Java that supports looking up Keys by (non-Unique) Value? As I suspected, the answer was "no", but I'm wondering why there is no ...
-1
votes
1answer
41 views

Naming my classes and class folders in PHP project

I am working on an (PHP) application where users have so called workspaces. A workspace is a folder with a specific structure and bunch of specific files - user information and some workspace metadata ...
-2
votes
0answers
61 views

Seeking advice on technologies for NoSQL application

I have a basic level of C++, beginner familiarity with DB concepts, and dabbled with MySQL. My goal is to create a program that will provide me with a deeper understanding of programming and use of ...
0
votes
2answers
79 views

Northbound interface and Sounthbound interface, which understanding is correct?

Regarding the understanding of Northbound interface and Sounthbound interface of a system, which one will be correct? A In understanding A, the traffic from/to higher level system is northbound ...
3
votes
2answers
110 views

Abstract Factory: Can Client Class have an aggregation with the Factory?

After searching for some Abstract Factory examples using modern programming languages, I have some dillemas about the sensu lato of conceptual UML schema of Abstract, more specificly about the Client (...
5
votes
1answer
107 views

Are legacy C# DataTable/SqlDataAdapters exponentially faster than SqlConnection/SqlCommand and/or LINQ to SQL DataContext.ExecuteCommand calls? [closed]

I can't believe DataTable/SqlDataAdapter massively beat out System.Data.Linq.DataContext.ExecuteCommand and ExecuteNonQuery (tried with both Stored Procedures and command text) and just straight ...
0
votes
1answer
93 views

Is it ever a good idea to enumerate a python range so you get the index twice?

Sorry for the weird title but I couldn't think of a better way to explain it. I saw someone do this once and didn't think it was a good idea but I wanted to check. Basically, he wanted to return the ...
6
votes
4answers
286 views

Exposing implementation details to tests

I have created a class that implements behavior which is difficult to test without some intimate knowledge of internal state. I'd like not to clutter the class's public API with accessors for this ...
0
votes
2answers
107 views

How to write the following snippet in more cleaner way?

When the caller gives me a call, I need to evaluate n number of criteria which currently I'm doing like if (a & b & c & d & e) Day by day the conditions are growing and it'...
1
vote
1answer
74 views

How should I approach the comparison of two BMP images?

I am currently writing a Python program that retrieves the pixels from two BMP files and finds the percent difference between them (without using the Pillow library for the purpose of learning). I can ...
0
votes
1answer
29 views

What's a good liveness probe for a Hangfire background job server?

We're in the process of moving everything to K8s and one of our applications is a small .NET Core 2.2 console app that runs a Hangfire background job server. At the moment the app runs as a Windows ...
1
vote
1answer
177 views

What is the origin of TDD?

I have seen people point me to many different "origins" of TDD. Some will point me to Kent Beck's rediscovery in the late 1990s with XP. Others will mention the 1960s best practice of annotating the ...
9
votes
1answer
737 views

What causes the “git rainbow”?

Sometimes when working with other developers with git version control I run into a problem where the git graph suddenly spawns countless parallels lines like in this image. Image from here. I have ...
1
vote
2answers
112 views

Executable VS. Software image

Need your help to clarify primitive concepts: In an embedded system, when a program runs on the processor (ARM as an example), in my understanding that it is because the "code to be executed" is ...
0
votes
2answers
151 views

How to privately track issues? [closed]

I'm working on a certain group repository. This repo has an issue tracker, but - it's not intended for all issues, and certainly ot for our day-to-day development work. The point is - I need to track ...
-2
votes
1answer
42 views

React class or function for stateful components?

Which is better to use? react class based stateful component or react hooks functional stateful component? I've searched a bit but couldn't find what is preferred to use.
-4
votes
1answer
137 views

Where to put the server in my Messaging System UML diagram?

I try to design a client application for a messaging application. The client can send and receive messages, the client can connect/disconnect. My problem is that I don't know how to incorporate the ...
1
vote
0answers
36 views

Does putting a serverless application in a VPC make it more secure?

I have an application which uses lambda and fargate (task) containers for compute, EventBridge for communication, S3 and DynamoDB for storage and exposes data out via an API Gateway. From my ...
-1
votes
1answer
40 views

Combining development and support departments

I'm the manager of a reasonably small sized development department with 13 developers, 5 testers/QA, and 2 UX-designers. The support is split into two parts "Customer service" (CS) and "technical ...
0
votes
2answers
145 views

Alternative to mass Try Catch blocks for my logic

Currently I'm working on creating something with the following general structure. I want to call 4 different APIs in sequential order (the results of one are needed for the next one). If one throws an ...
1
vote
1answer
116 views

Using the primary key as a foreign key

I have data spread across two tables shipments and shipment_data. Currently I have the standard auto increment primary key id for shipments and a manually assigned unique primary key id for ...
0
votes
1answer
23 views

Where to include a pfx certificate in a http request?

I would like to understand what happens in a request which includes a .pfx certificate to authenticate to client to the server. I know how to implement this in python or use it in postman, but I don't ...
-1
votes
0answers
26 views

Naming conventions for callback setters for something that receives and gets from both sides [closed]

I'm writing an OpenVPN client that can be plugged into a TCP/IP stack. So I can use the OpenVPN client to send packets to the world and to receive packets from the world. But the TCP/IP stack also ...
3
votes
4answers
294 views

Do “avoid primitive obsession” and “use most abstract type as possible” contradict each other?

According to Is "avoid the yo-yo problem" a valid reason to allow the "primitive obsession"?, I should define "price" like this: public class Main{ private Price price; } ...
3
votes
1answer
96 views

How to maintain Depedency Inversion Principle with enums & custom types?

From what I understand two components A and B should only communicate with one another via an interface. Ideally this interface should be in its own separate assembly so that the client need not be ...
1
vote
1answer
39 views

Is it a common pattern to put create/update/archive as one process?

Traditionally it's assumed that we should treat create read update delete as separate concepts. However, I have noticed that the following pattern seems more usable for certain contexts [create, ...

15 30 50 per page