All Questions

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

What is the usage case for UUID?

I read about a proposal for built in UUID in Javascript which got me reading more about the UUID in general and the one thing I would like to ask is the usage case for it. I understand that the value ...
-2
votes
2answers
46 views

Should you write integration tests at every level?

Suppose I have some code as such: function1() { function2() } function2() { function3() } function3() { function4() } function4() { ... } Do I have to write integration tests for ...
-3
votes
1answer
51 views

Name of classes that contain only methods, and classes that contain both fields and methods

I am studying the Java jvm programming language Kotlin, and I just came across the idea of a Data Class. I understand what a Data Class in Kotlin is, so I don't have a question on it. Instead, my ...
-1
votes
1answer
38 views

Cyclomatic complexity vs repeated code

we've a python function that can be achieved in 2 ways 1st method def complexity_1(x, y): if 2 == x and 3 == y: a=3 b=4 c = a + b elif 2 == x and not 3 == y: a =...
-1
votes
1answer
12 views

Calculating position of menu options with variable sizes

Not entirely sure if this is the most appropriate community for this but... I'm looking for solutions to calculate positions for menu options when the amount of options vary and when each options ...
0
votes
0answers
13 views

HTML LocalStorage vs Broadcast Channel: When To Use Each

What are the advantages and disadvantages between using BroadCast Channel and LocalStorage? We are looking into communicating between two browser windows or tabs. Researching for good use cases ...
0
votes
0answers
12 views

NoSQL Database Schema w/ Very Flexible Hierarchy

Recently I have been working with a NoSQL database (Firestore to be exact) to be used for my Web App where we essentially allow our users to create 'trees' of some sort. What this means is that you ...
-3
votes
0answers
26 views

How does creating and initializing a map in Java using an anonymous class potentially cause memory leak issues?

I've seen code that creates and initializes a map by extending HashMap (via an anonymous class) and initialization block as follows: final Map<String, String> headers = new HashMap<String, ...
-4
votes
0answers
36 views

What is the better way to password protect pdfs with important information? [closed]

Option 1 - Password protect pdfs through a 3rd party library(java or python) before sending to users in email. Option 2 - Load pdfs to a location where users can access after authenticated. What is a ...
0
votes
0answers
39 views

Clean Code: How much architecture code should be written if architecture is supposed to be fluid

I watched a video series from Uncle Bob on Clean Code. He makes a few points on architecture which I both agree with but I believe could have clarification. From Uncle Bob: The Interactor is ...
0
votes
1answer
22 views

SVN - Using branch for beta release of game and advise for repository layout?

I'm setting up the SVN repository for my hobby game project. I have the main version of the game and a beta version. The game is already online with a few players. The beta version is isolated from ...
0
votes
2answers
50 views

Avoiding sequential coupling while maintaining separation of concerns

Got a desktop application that interacts with some stateful third party web APIs. Its an interactive application, at some stages it has to halt execution and prompt for user input based on responses ...
0
votes
0answers
48 views

Asynchronous communication with legacy system

Background My task is to create new system (X) for realtime work tracking for internal use. You should think it like an app that you have opened on a separate monitor/ on phone all day and you are ...
-5
votes
0answers
28 views

Building a remote team quickly [closed]

I am a developer who recently started working on my own, and I've come across some projects that I can't handle by myself. Does anyone out there have any experience with building a remote team in ...
0
votes
0answers
24 views

Load single module based on configuration using dependency injection

I'm working on an application that will run on multiple systems and may use different modules to communicate with external systems, but on each system, only one module will be used at a time. As it ...
0
votes
3answers
103 views

Can two unique messages share the same name in OOP?

In this question, the asker of the question shows the following example (no Polymorphism is used): circle1.draw(); rectangle1.draw(); And the highest voted answer says the following: In your example,...
0
votes
0answers
27 views

What is the design of libraries like cairo and OpenGL called?

I'm not a software engineer, so sorry if the question is elementary. Usually, functions provided by libraries written in C receive a handle from the calling program. This handle directly (if it's a ...
-4
votes
0answers
35 views

Architect website ordering without authentication [closed]

I am trying to design a website where a visitor can order food without having to authenticate. Here is the workflow I am hoping to achieve: User visits website /food to see menu items. The webpage ...
-4
votes
0answers
23 views

Recurrence: Find minimum total stock price

Given a matrix of size N by T, the i-th row and j-th column is the price of buying i shares of a stock at time j. What's the minimum cost of buying in total N shares at the end of time T? So this ...
-3
votes
1answer
61 views

Selenium and Junit: Does it make sense?

Simply, given that Selenium is a testing tool, it seems redundant to combine Junit with Selenium tests. Does one write the Selenium test and then a separate Junit test of the Selenuium test or should ...
1
vote
4answers
251 views

Should an e-commerce application reserve products before attempting payment?

I'm designing an e-commerce application and I'm concerned about users occasionally experiencing this: A user orders a product and is redirected to the payment processor. While the user is paying, ...
0
votes
1answer
57 views

Preferred architecture for tree stuctured data (Angular/Typescript)

After reading some of "Clean Architecture" I got the idea that perhaps I should reconsider the way I have architected a chart of accounts/accounts object in an accounting program. I have ...
-2
votes
0answers
16 views

Design choice: Using kafka for application logging 1 topic vs multiple topics

I'm planning on having multiple applications switch to using kafka as the main place to push logs to asynchronously, where a downstream application will consume those logs and load them somewhere for ...
0
votes
1answer
154 views

Why is there just one HAVING in SQL?

In SQL there is WHERE and HAVING: ... WHERE ... GROUP BY ... HAVING .... Why isn't there multiple GROUP BY and multiple HAVINGs per SELECT statement like: ... WHERE ... GROUP BY ... HAVING ... GROUP ...
1
vote
2answers
88 views

How do I defragment memory blocks that are not logically adjacent?

I have an explicit free list. Each node contains the number of blocks it manages. When you allocate, the memory manager returns the first block of the managed blocks. In the beginning, there is only ...
-3
votes
0answers
26 views

Using dispatch tables in Python

I am trying to experiment with dispatch tables in Python. I created a small code as below # illustrate use of dispatch table dictionary in python 3 def fun_p(): print('processed p', end = " &...
-5
votes
0answers
12 views

How to maintain session in Restful Webservices

Angular Spring Restfull Webservices integration. I am using third party application for logging into my angular application. My Angular application will get response from Restfull webservices and ...
1
vote
1answer
71 views

When modules written in different languages interact, is exchanged data always serialized?

I have module written in Python and I would like to write function in e.g. Go but problem is that data needed for computations is often more than 100MB. My question is: is data always serialized and ...
3
votes
3answers
123 views

Decoupling and Command Pattern

I am working on some project to learn how to make bigger and better software (multiplayer game) and I found a problem about having in my code a design pattern Command Pattern and anti-pattern God ...
1
vote
5answers
213 views

Why do some software engineers and managers find the term “bug” so offensive? [closed]

Our software was originally written in another language. Some of the new English translations are poor. When I raised this as a bug, the manager got angry and said this was "not a bug, but a ...
0
votes
0answers
24 views

REST API design: communicating order of inputs is important to the user (in POST request)

Let's say I have a REST endpoint where the order of inputs for a given field is important: POST Request: api.myrestendpoint.com/evolution-timeline/ inputs: {'this_list_should_be_ordered' : [ 'reptiles'...
0
votes
1answer
40 views

Database dictionary table versus code defined enum

For the following table structure, for the metric_id column, what are the advantages of having a JOIN dictionary table versus an ENUM dictionary defined in the code? Assuming the metrics dictionary is ...
-3
votes
1answer
46 views

Export huge excel file

Sorry if it is a wrong subject. I came here from stackoverflow. I develop a web application in Angular (frontend) and Scala (backend) for a big data team. Because they use large files for export/...
1
vote
1answer
97 views

Inversion of control - no “new” in a low level constructor?

When using IoC in a code base, should one always stick strictly to the pattern without exception? That means there should be no "new" in any constructor, when the newed object has ...
-3
votes
0answers
26 views

Networking question - how are blocks to new devices implemented?

My university has implemented a strict new network policy, which we are generally told is "restricted unless permitted" whereas previously it was "permitted unless restricted". For ...
-2
votes
0answers
63 views

Replace switch case with polymorphism [closed]

I am using commandline library to parse command line arguments in C# program and this is how my code looks like. I want to get rid of this switch case statemen by using something like polymorphism. ...
-4
votes
2answers
71 views

Inspection code reviews, is it outdated today?

I'm a big proponent of peer reviews on every change, like with pull requests etc, however I'm questioning if this type of review alone is enough. For one, I have trouble with reviewers 'missing the ...
0
votes
2answers
84 views

repository pattern, using the domain object as data access object

I'm very puzzled by a specific part of the repository pattern that seems simple but turn out to be tricky. I took this great explanation of this topic by Mosh Hamedani; it's a C# implementation of ...
1
vote
1answer
79 views

Storing static data idea — is it best practice?

I have a database in which I am storing a bunch of companies that can have several different types of codes associated with them — here is a example of a group of codes I was wondering if storing them ...
-3
votes
2answers
41 views

How should I handle a scalability problem during routing my requests from server?

I have faced a problem with the initial design of my system where sensitive information was being sent to the front-end and front-end was responsible for calling 3rd party APIs. As you have probably ...
-4
votes
1answer
83 views

Where on the 64bit memory of a PC would one byte end up?

I have a simple question I think. A typical pc with ram has a 64bit databus between the cpu and ram. Let's say the ram starts at address 0, and I write i byte to address 0. Now my question is, would ...
-3
votes
0answers
40 views

How to stop creating multiple invoices when employee hits submit more then once while webpage is loading [closed]

I am a amateur coder and I have a problem on my website that when an employee is creating a new invoice sometimes it takes time to load so they click submit more then once, which creates duplicate ...
-1
votes
1answer
69 views

What is the reasoning behind Kotlin using non-nullable types for Java interop methods?

Considering Kotlin Java Interop: Null Safety and Platform Types Why is code like this legal in Kotlin? fun envString(key: EnvVars): String { return System.getenv(key.toString()) } getenv() can ...
-3
votes
2answers
62 views

Gitflow, use code from another feature branch in feature branch

me and a friend are working on a project, and we are both doing seperate things (he does UI, I do some data structure), and his code relies on my code. Right now we have a master, a develop and 2 ...
-5
votes
0answers
64 views

I want to know I am okay or not [closed]

I made my first website for about 40 hours. I used html, css, javascript and nodejs. I want to know I am okay or not. On average, how many hours do you make such a first website? https://node41--...
-4
votes
0answers
55 views

Design Interview problem - Load problem [closed]

If I have a piece of code the takes up to 20 seconds to execute(Like fetching data, or saving in remote location), And I need to execute this code 100,000 time, and I need to guarantee this code will ...
0
votes
1answer
141 views

Is the term “memory safety” an “official term”? [closed]

The term "type safety" is widely used in books and online articles and so on, so I would say that the term "type safety" is an "official term". But I have recently seen ...
-2
votes
0answers
26 views

Database design query for sending notificaion

I am trying to design a service to send bulk messages (sms/whatsapp) to customers (~50k users max). These messages will be smiliar to how uber etc sends saying, "200 credited to your account. ...
4
votes
2answers
166 views

How can I know when a paper is too hard for me to be able to implement their code and/or understand their math - within a given deadline?

I've been assigned to explore implementing (along with modifications, so understanding it is a must) this algorithm for the 'Redistricting Problem': https://dl.acm.org/doi/pdf/10.1145/3274895.3274979 ....
-5
votes
0answers
24 views

How to get corresponding x or y values from a graph plotted using matplotlib?

Suppose I plot a graph using matplotlib as plt.plot([0,1],[0,1]) Is there any way I can get the y value corresponding to x=0.25 using some library function ?

15 30 50 per page
1
2 3 4 5
1139