All Questions

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

How do computers merge constant pools?

So let's say program A loads a dynamic library called B, and both A and B have constant pools (a location in memory that contains stuff like string literals) that may look like: A - (1 2 3 4) B - (3 4 ...
-1 votes
0 answers
17 views

How do I convert UML class diagram to java code? [duplicate]

I'm asking if there is a possibility to automatically convert class diagrams to code?
-1 votes
1 answer
29 views

Agile Sprint Planning for Cross-Functional Teams (UX, UI, Dev)

We have recently started using Agile methodology implemented with Jira. We are struggling to decide how best to arrange Sprints, Epics, Stories, etc when working across different departments. For ...
0 votes
1 answer
18 views

Dashboard based on 3rd party application - duplicate data to local db or should I view the third party as my database?

I am currently building a web based solution based on an application used in my organization. The application have an integration (SOAP-based API). To keep things simple, I want to build a analytics ...
1 vote
3 answers
2k views

Bidirectional sync between two databases with differing schemas

I'm embarking upon a project where the goal is to create a bidirectional sync mechanism between two database systems with differing schemas. One is a custom CRM app build on MongoDB, the other is ...
-2 votes
0 answers
19 views

Understanding the output of enumerate function in python [closed]

I am trying to understand the output of the enumerate function in the code below, a = (2, "this is a string", 4, 3.5, "another string") b = enumerate(a) print(b) for which the ...
0 votes
2 answers
97 views

Use aggregation like LSP in C++ [closed]

While reading book named Clean Architecture: A Craftsman's Guide to Software Structure and Design, I came up to a question with LSP(Liskov Substitution Principle). In page 95, there is a figure ...
1 vote
2 answers
91 views

Under the single-responsibility principle, should caching data be a separate function from returning the data?

Suppose I have a program that returns data from an API. If its cache of the data is too old, the program downloads more data from the API, caches it, and outputs the new data. Else, the program ...
1 vote
2 answers
120 views

How to document external libraries that have been adopted into an existing codebase?

I have been using an external library for a while now. Unfortunately, it stopped receiving updates, and has since been adopted into my codebase. The issue is the library was poorly documented in the ...
-2 votes
0 answers
12 views

Refresh code changes on multiple instances w/out restarting service in a Java Spring Boot Application with spring-actuator & bus refresh with Kinesis

I want to refresh/reload configuration changes without restarting the service. I have microservices built on Java 8 and Spring Boot. I have decided to achieve this with the help of **spring-boot-...
0 votes
0 answers
32 views

Blazor Application separation of concerns

I am building a cross-platform application and have planned to use Blazor. I have made similar applications in the past but using ASP.Net Core for the back-end and Angular for the front-end. I always ...
-3 votes
0 answers
38 views

How can youtube and spotify apis used together commercially? [closed]

Plan is to use spotify & youtube API and their own players to combine the two and add my own functionality to a multisource player. Plan is to read spotify tracks & playlists and read user's ...
-3 votes
0 answers
38 views

Granularity for repositories [closed]

so we are about to create some repositories and my first task is to outline granularities for repos. While creating a repository, what would you consider while defining its granularities? like file ...
0 votes
1 answer
115 views

Should Microservices share workers

If I have two APIs that I'm considering to be two separate micro-services, each with their own database, how would I handle worker processes for each of these micro-services? For example, if each API ...
4 votes
3 answers
513 views

Pattern for endpoint that routes requests?

I am building a service that will push notifications to many other services. It has a couple of different notification types that each consumer may care about, but likely will not care about all of ...
1 vote
2 answers
194 views

What is the Advantage of React JS over Pure Javascript + PHP?

What exactly is the purpose of React JS? I've heard a few things, like: It updates the page without refreshing. It is modular and can reduce redundant coding. It is faster than updating the DOM ...
32 votes
3 answers
53k views

Best practices for usage of "shall" and "must" when writing requirements

I sent out an email earlier reminding our developers that the use of the word "shall" in your derived requirements should not follow over to your functional requirements. When writing ...
3 votes
4 answers
3k views

What are the advantages of matrix multiplication over individual variables (graphics)?

I am learning OpenGL and the tutorials (1, 2) I'm reading teach me that to scale/rotate/translate an object you have to know matrix multiplication. Why? Instead of 3x3 matrix you can use 6 floats: ...
-1 votes
0 answers
27 views

MVC for interaction between two models

Maybe a repeated question, so you all could link me if you know an older answer. I'm creating a small web application, using MVC, for a volunteer project that I participate. Right now I'm doing a ...
0 votes
1 answer
44 views

Determing uniformity of (name, value) array [closed]

I have an array of objects that represent some type and its value. I'm looking for an algorithm to determine how random or uniform the array is. For example Item("name": "A", "...
0 votes
1 answer
79 views

How to handle API's validation based on a flag

I have the following case: If the user is in the UK, the server needs to validate the bank details as Account number and Sort code number If the user is in France, the server needs to validate the ...
-2 votes
0 answers
18 views

Test web app in development with playwright on BitBucket CI

I'm currently trying to use Playwright and jest-image-snapshot to do visual regression testing on my React front-end. I'm currently using Bitbucket Pipelines for my CI. I'm trying to run both my front ...
1 vote
1 answer
550 views

UML extending class associations with generalizations

I have a simple concept like in the image below. Basically there is an Item which can be 1 of 3 types and a character that can be 1 out of 2 types. All generalizations are disjoint. What I'm trying ...
34 votes
4 answers
6k views

A concrete example of Python's "only one way to do it" maxim? [closed]

I am learning Python and am intrigued by the following point in PEP 20 The Zen of Python: There should be one-- and preferably only one --obvious way to do it. Although that way may not be ...
3 votes
1 answer
257 views

Do I need to add the copyright notice of the original contributors in the SaaS service contract of a forked AGPL software?

Context I have modified a lot a software that in under Affero GPL. I have contributed back what made sense, as it has a completely different direction. I plan to build a SaaS around it and charge ...
0 votes
1 answer
117 views

What are the points of apps like Sketch and Photoshop when it comes to Web Development?

This may be an obvious question but I really don't understand this so if someone can help me that'd be great. Basically, I am in the middle of developing an e-commerce app for my database management ...
0 votes
1 answer
88 views

Serverside validation in a web application

Suppose I have a web application that processes a request as follows. A user fills in a form and submits it. (e.g., to register as a new user for my application) The request is passed to the ...
-2 votes
0 answers
42 views

How do you map domain driven design planning outcomes to Agile features and stories?

I'm still in my infancy on learning DDD so excuse the question if it doesn't make sense.. The background: My team went through an event storming and also a "Boris-esque" exercise to create ...
-1 votes
0 answers
13 views

Reordering algorithm for list in event streaming architecture

I have a specific use case where there are multiple lists which contains list items each having a line number. A user may want to rearrange the list and these changes are published through kafka. We ...
2 votes
0 answers
80 views

Better alternative for cherry picking across heavily diverged branches

I'm currently trying to update the linux kernel used in a xilinx SoC, my company has an internal repo/fork of xilinx open source linux with a bunch of kernel drivers for our custom hardware & ...
0 votes
1 answer
33 views

Designing a scheduled based system using Node.js

Just for the example: I have a system which needs to fetch social media timeline on a specific time interval based on user preferences. Let's say we have user A, B, C, and so on. Let's say again we ...
0 votes
0 answers
46 views

How to authenticate client and user

I could use some feedback on designing a solution for handling two OAuth flows in a single request. I have an API that currently supports OAuth2.0 (for users). It was requested that we should be able ...
26 votes
5 answers
8k views

Code review workflow where pull request author must merge

Several teams at my company practice a code review workflow I've never seen before. I am trying to understand the thinking behind it, with the idea that there's value in making the whole company ...
2 votes
1 answer
514 views

Ensuring reliable delivery of messages over websockets?

I am building a comet service which will push new data to the client on mobile devices. For this, I am using websockets to deliver messages to the client. The problem I am facing here is the ...
0 votes
2 answers
229 views

How to manage kubernetes configmap values in version control across environments?

I am looking for a way to automate deployment of configmaps to our dev/qa/prod environments. Right now our applications rely on kubernetes configmap/secrets that we manually apply in the cluster using ...
2 votes
1 answer
104 views

C++ Abstract classes vs selective compilation

I'm trying to find a way to achieve abstraction with the lowest possible overhead. This is for an embedded system (Cortex-M4), I use the latest gcc compiler arm-none-eabi. Let's say we have a pure ...
-2 votes
0 answers
117 views

Can SMS be used for notification purposes? [closed]

More than 10 years ago, I have tested SMS centers. Those were computer servers, to which SMS were sent in case they didn't arrive at their destination. Several attempts were made for sending the SMS ...
-2 votes
0 answers
19 views

Can I have some tips on how should I start making my game function in JavaFX? [closed]

I'm making this JavaFX project that I have as homework, it's an implementation of the 'Dots and Boxes' game I have to create using JavaFX with SceneBuilder. Since I didn't have much time learning much ...
0 votes
2 answers
459 views

Long polling and message brokers

I was reading this article, and the author uses HTTP long polling to design a chat application. I was wondering how does this compare with a dedicated Message Broker services like Apache Kafka, or ...
-1 votes
1 answer
63 views

Confusion with class diagram question

There was this question on my mock and I am just really confused about it. I tried to learn about class diagrams in more detail but there was no information that explained to the detail of the ...
32 votes
10 answers
9k views

Am I right that switching programming languages will have little impact on the scalability of a CRUD API?

An external consultant to our team advised us to rewrite our SAAS offering (essentially a CRUD API) in .NET because this is more "scalable" than using Node.JS (or Rails or Flask etc.). By ...
-3 votes
0 answers
20 views

Best approach for running Node modules in-browser [closed]

I'm building a browser-based tool for rapidly developing scripts in Javascript. As such, it would be highly desireable to use Node modules (i.e. crypt, etc.) in the browser. I'd prefer not to have to ...
-1 votes
1 answer
84 views

How to implement automatic SemVer from code changes [closed]

Goal I'm working on libraries published as nuget packages and I would like the version of those packages to update automatically based on the changes I make. In other words, I would like something ...
2 votes
2 answers
91 views

What is the alternative to checked exceptions in API/interface design?

Despite checked exceptions being generally bad practice and anti-pattern, I find one feature very useful: having list of checked exceptions part of function signature. Checked exceptions are "...
0 votes
1 answer
118 views

How to go from Simulink to embedded fixed-point DSP processor?

A library of audio algorithms is modeled, tested and verified in Simulink (graphical block diagramming tool). It needs to go from this existing Simulink models down to a multiple embedded platforms (...
6 votes
2 answers
1k views

Is there any particular reason for the use of lists over queues in functional programming languages?

Most functional programming languages such as Scheme and Haskell use lists as their main data structure. Queues are identical to lists, except for the fact appending to the end - not to the begin - ...
3 votes
1 answer
95 views

Why does CPython has both C and .python versions of modules?

The CPython implementation seems to have the same modules written both in C (e.g., datetime in .c) and also in .py for the same module (e.g., datetime in .py). My question is which version is used ...
3 votes
3 answers
363 views

Designing database job monitoring

I have several Oracle database where my in-house applications are running. Those applications use both dba_jobs and dba_scheduler_jobs. I want to write monitoring function: check_my_jobs which will ...
-1 votes
1 answer
33 views

Best practices for naming python utils / extending core modules?

So a lot of the time my utils end up with a structure that mirrors the core library. I might end up writing a multiline version of str.center, an itertools-y function that returns the first or last ...
0 votes
1 answer
78 views

Should an access token really be cryptographically signed?

In a web app I'm writing, a singed-in user is recognized by their cookie containing a session identifier. That session id has sixty-four bits of entropy, so I believe brute-force attacks are ...

15 30 50 per page
1
2 3 4 5
1222