All Questions

1
vote
1answer
64 views

Database Authentication - Are 2 database trips better than 1?

Scenario I have an application where some operations require the authentication of an admin. Example Steps: I need to validate the admin's username & password insert a row into a MySQL table (...
1
vote
5answers
214 views

Which layer should have responsibility for rounding numbers?

I am developing a financial system and want to have a defined policy for rounding monetary values. Given the following layers: View API Entity Model Persistence If I am passing a monetary value ...
-2
votes
0answers
27 views

Python static type checking and related libraries such as mypy. Do you or your team uses it? [closed]

Seeing function annotations and static type syntax introduced into Python3. I was curious to know how many developers using Python has found a need to use static typing style in their project. If ...
2
votes
1answer
103 views

Should I use complex expressions as function arguments?

I recently started working as a programmer and I am currently going through some codes (in C#) written by my colleagues. I have noticed that they tend to include logic within function calls within ...
0
votes
1answer
42 views

storage of text history and algorithm to return text at particular time

An application I'm considering writing needs to show a text that a user has edited at a particular time. So consider if we have a text the user is editing from Time A to Time X, and I want to show ...
-2
votes
1answer
49 views

Passing Callback Method to IEqualityComparer implemented class [closed]

After a struggling process I've understood how to implement IEqualityComparer and override correctly GetHasCode and Equals(T x, T y) methods. I'd like to pass an Action or Event to log exact ...
1
vote
3answers
95 views

how to name two methods returning collection/single item

I want to have two methods, one which returns all items and another, which returns specific Item by name (assume Item has name field): Item getItem(String itemName) List<Item> getItems() How ...
-1
votes
0answers
15 views

Implement Multi-Tenant application with Umbraco

I am using Umbraco 7.8.1. I need to develop an application with multi-tenancy where there are multiple communities/sites. Here I have explained my whole scenario and we have decided to go with ...
0
votes
2answers
187 views

Which option is good in terms of software design?

I have one request interface IRequest and two classes ClientAddress and ClientOrder are implementing it. The same design is followed for Response with inteface IResponse and classes ...
0
votes
5answers
192 views

Design Pattern for object that asks questions of another object

I'm looking for a design pattern that might work for this class I am working with. This main class is an entity using Domain Driven Design. public class TimeCard() : ITimeCardHeader { ...
0
votes
2answers
64 views

Is this a proxy or bridge or something else?

I have an object that acts as a "bridge" between objects and I'm not really sure if it has a name. Unity (the game engine) lets me build a concrete object and then link those objects in the inspector ...
0
votes
0answers
15 views

HTTP Request/Response for OAUTH 2

I am currently trying to follow the request response for the OAUTH2 authorisation code flow. I cant seem to figure out at what point the code is being passed back to the client. I get the redirect ...
0
votes
1answer
49 views

Effective GIT Branching Strategy

I am trying to figure out the optimal branching strategy for my organization. And I have few doubts. We have 3 main environments, Live(Production), UAT (pre-release) and Staging. Similary in GIT we ...
0
votes
0answers
10 views

what's the proper way to interpret SREM results from REDIS

Background I am writing a REST API that exposes a method that allows the caller to delete a resource from the REDIS database. Because I'm using a SET, when you try to do an SREM, it will just return ...
0
votes
1answer
77 views

Is It good practice on API design to use different object model for getting object and creating

While mostly every company got it's standard on APIs, the question just came out after that one of my colleagues stated we must use different object models for creating and getting objects from API. ...
-3
votes
0answers
86 views

Why is MAIN sometimes called driver in JAVA?

Driver is utilized to interface with computer hardware. So why do programmers call their MAIN as "driver" in MAIN?
0
votes
0answers
15 views

Xamarin.Forms and Prism NavigationParameters implementation

I am developing a Xamarin Forms project and use Prism Library as tool to implement the MvvM pattern. I have two views: PersonViewModel: Summary and has Edit button PersonEditViewModel: Details, and ...
-1
votes
0answers
59 views

What are the drawbacks of using imperative programming in Scheme?

I'm trying to create a game in Scheme, but it looks like a fairly bad fit for functional programming. I stick to functional where ever possible, but it's becoming apparent, that using an imperative ...
-1
votes
0answers
36 views

Web Api hosting with database using .Net [closed]

I have scenario: Using .Net Framework or .Net Core and develop web api It has database too for storing data , ie: SQL Server It needs to install on client side Problem: How to protect my code or ...
1
vote
2answers
61 views

Detecting UML usecase correctly

UML Diagrams says: A use case is a kind of behaviored classifier that specifies a [complete] unit of [useful] functionality performed by [one or more] subjects to which the use case applies in ...
2
votes
2answers
240 views

Notify Millions of subscribers at the same time(or with min. delay) in C++?

I'm working on a problem, in which i have some real time weather information of different cities through out the world. I'm exposing subscribe function to interested people/clients, with input:- ...
3
votes
1answer
139 views

Performing complex searchs using C# collections

I have a collection with millions of items of Generic type T. Assume this list never changes. I want to perform many types of searches with subsets of fields of type T. Some with only 1 field and ...
0
votes
2answers
69 views

Domain Driven Design Modelling Organization -> User

Relatively new to Domain Driven Design i decided to try it out in an saas app currently under development/refactoring. I've refactored the identity part out to it's own context (class library in .net) ...
1
vote
1answer
142 views

Why read and write API are good or why not?

While designing a complex system some of my colleges came back with the idea of having two separates APIs, one that will perform the writes into de databases and another one that will only do the ...
-1
votes
0answers
51 views

Todo-List using react-redux too complicated/overengineered

I wanted to dive into react-redux and jumped right away into the code of this tutorial. Looking straight-away at the final code solution of this simple Todo-List I recognized that it takes 14 ...
1
vote
0answers
62 views

How and why did so many different systems of Regex develop differently? [closed]

In Notepad++ * stands for an arbitrary string and . for one arbitrary character (optionally including newlines). In the Linux console * stands for an arbitrary string and ? for one arbitrary character....
-4
votes
3answers
67 views

Does the implementation of GDPR compliance per site make sense in terms of good practises?

Although I understand privacy concerns, the measure has been imposed by politcians and I want to know what the proper way to put this into place would have been. Right now, each site has to implement ...
1
vote
1answer
112 views

C# .Net Core API design - interfaces vs DTOs

I'm designing a relatively simple web application using .net core. I've mostly done desktop development in my career so far, so I'm a bit new to the nuances between desktop and web development. In ...
-1
votes
2answers
144 views

What is the minimum length for a UUID?

From general observation I've come across the standard to be 36. I was looking to incorporate a uuid in my urls but didn't want it that long. Is there a minimum where I can still keep the uuid unique?
2
votes
1answer
43 views

How is caching used within messaging apps?

I'm actually studying about web development. I was just asking why a lot of web apps and chats(Whatsapp, Telegram, Discord, and a lot, a lot more!) are using cache. I mean, after learning cache ...
1
vote
3answers
150 views

Does saving a file to temp and deleting whenever a checkbox is toggled considered a wise choice?

My team and I have this Desktop client developed in JavaFX. It basically has a "Remember my password" checkbox. If the user ticks this checkbox, reboots, and reopens the app, the user should be ...
1
vote
2answers
233 views

Solving issues in using post and pre increment operators as part of expressions

I recently had a discussion with a friend about code maintainability with regards to modifying an iterator inside of the body of a loop (C# syntax): List<int> test = new List<int>(); for (...
0
votes
0answers
50 views

How do I Make a Quiz Generator [closed]

I am new to HTML/CSS/JS/PHP/all that so please bear with me. I have been trying to figure out how all this stuff connects but never had an end goal so I didn't know what to ask. Now I can try to ask ...
0
votes
1answer
57 views

What to do with the unused identity after deleting a row?

Straight to the point, I have a user table that has 4 rows with id = 1, 2, 3, 4. I delete the row with id = 2 and insert another user and the user will get id = 5. What will happen to the id = 2? Will ...
0
votes
1answer
36 views

Architecture patterns or SaaS solutions for throttling outgoing messages?

I'm implementing my service on AWS as a set of stateless EC2 nodes controlled by an ASG, backed by an RDS instance. I need to throttle the overall number of outgoing messages my service sends but can'...
-4
votes
0answers
39 views

C How to make queue function take packets/items out of queue [closed]

I'm trying to make this queue program for school to take the next packet out of my queue (therefore delete it) in the queue function : struct packet_t *queue_retrieve(struct queue_t *queue) in line 73....
0
votes
2answers
152 views

What to name a class that acts as a container for a collection but isn't a collection itself?

I have an object that acts as nothing more complicated than a data store for a collection of items. I do this because it lets me bind the data to a single object, which I can store in the Unity (game ...
0
votes
1answer
50 views

Uploading file to the server for download

I've my front end written using HTML/CSS/Javascript. Front end is communicating with the backend(Oracle database) using Java Webservices (Spring boot app). Situation #1: User clicks on the Download ...
0
votes
0answers
9 views

Different Guice Module Class for each client

Say, I have a package, where I have multiple Proxy classes to connect it to different services? Which is a better design: Having one guice module class for each client implementation instantiation. ...
50
votes
9answers
10k views

Should you guard against unexpected values from external APIs?

Lets say you are coding a function that takes input from an external API MyAPI. That external API MyAPI has a contract that states it will return a string or a number. Is it recommended to guard ...
0
votes
1answer
50 views

equivalent of a JAR file for webassembly?

Are there any published standards of archive files to hold webassembly (multiple files) with a metadata file that defines the entry point? I'm thinking of something similar to JAR or APK.
4
votes
3answers
153 views

Versioning depending on Third parties

I have a question about versioning when I depend on a third party (TP) project's versioning. Our current process is to release a new version every time TP creates a release with security fixes. The ...
-1
votes
0answers
60 views

C++ Question on Smart pointers and new and delete usage [on hold]

Which are cases where the usage of smart pointers for automatic ressource management are problematic? Which are cases where you still would have to implement new and delete "by hand".
2
votes
3answers
108 views

filesystem::path vs. optional<filesystem::path> as argument to function

Sometime ago in a code-review (C++) I suggested to change the input argument from Path type to Optional<Path>, where the function has specific logic for unset path. It looks for me intuitively ...
-1
votes
0answers
16 views

White label widget's default size

Currently, I'm working on a white label widget to show user's information on external web pages. I have no idea about the widget's size. How much small it should be (minimum width and hight)? Is it ...
6
votes
7answers
439 views

Is an interface exposing async functions a leaky abstraction?

I'm reading the book Dependency Injection Principles, Practices, and Patterns and I read about the concept of leaky abstraction which is well described in the book. These days I'm refactoring a C# ...
1
vote
1answer
140 views

Should “Impl” naming always be avoided?

When implementing interfaces, as a general rule, Impl is evil. Ok, but is it evil in the following case? I've a service that has (and probably will have) only one implementation. In such case, ...
0
votes
1answer
16 views

WebApp for ETL with visual mapping - read csv and map it to data model

a few years ago I wrote a python script for reading CSV, handling the headers, filtering data, renaming stuff via RegEx...bascially to do various ETL stuff. This was done using a exhaustive ...
2
votes
1answer
29 views

Indexes on a SQL Server fact table

If I have a SQL Server fact table with four dimensions (OrderDate, Customer, Product, Region), my understanding is that it's best to create a non-clustered index per foreign key (dim key column in the ...
2
votes
2answers
115 views

Clean Architecture: Dependency Rule and Libraries/Frameworks

In Clean Architecture by Robert C. Martin the dependency rule points strictly from the outermost layer/ring to the innermost. As an example a Dependency Injection Framework should lie on the ...

15 30 50 per page