All Questions

-5
votes
1answer
27 views

Give a list of a from area code and to area code and a distance between them,which data structure?

What data structure i can use to lookup given a fromCode and toCode apart from hashMap which results in more number of entries in the memory. We are ok with log(n) efficiency also. Example data: ...
-1
votes
1answer
25 views

Node.js / Express.js - Route consisting almost entirely of middleware

Is it a bad design pattern / anti-pattern to create a whole bunch of specific middleware to replace functions in-route. So instead of doing this router.post('/myRoute', (req, res, next) => { ...
-2
votes
2answers
83 views

How many valid users to test the software that has been developed?

Anyone know, how many users are valid to use the prototype of the software that we have made? I have conducted research on the reference to the "Software Engineering A Practitioner's Approach book ...
1
vote
1answer
34 views

How/when to normalize during ETL?

Let's say you're loading a denormalized flat file of purchase transactions that looks like this: | location_name | location_zip | product | product_price | |---------------|--------------|---------|--...
2
votes
0answers
31 views

Restructuring PHP application classes

I'm trying to modernize a very old PHP application for a customer to keep its code base up with modern coding standards. I am permitted to restructure things a bit, but dumping the entire app and ...
-2
votes
0answers
14 views

How can I customise loss functions in scikit-learn library?

How can I use customised loss functions in scikit-learn? For example, instead of using mean squared value, I want to use mean squared value multiplied by the true value of the sample? I have used the ...
-3
votes
0answers
46 views

How to represent JavaScript programs on paper? [closed]

At work I'm developing a JavaScript library and often I have the need to represent on paper the classes that I'm building and their relationship in order to explain something to colleagues. What's ...
-2
votes
1answer
30 views

IOS/Android Push notifications

I am planning some app as a part of our product. One part of the app will be to receive push messages. Sometimes it's months between uses of the app and, by experience with other apps I've used, it ...
0
votes
0answers
12 views

Pass Data From SSIS To External Component

I currently have an SSIS package whose final task is a Script Task which works with data in a DataTable. I need to add the following functionality: Execute an external batch component that will use ...
0
votes
2answers
49 views

Managing multiple dynamic database connections

I'm working on a server, which you can pass some form of authentication as input (like connection string) and it will connect you to your database. So the DB connection is going to be dynamic. There ...
2
votes
3answers
89 views

Should I use entity framework for CRUD and let the database handle the complexity that comes with high end queries?

I am new to ef and liking it since it reduces the overhead of writing common queries by replacing it with simple add, remove functions. Agreed. Today I got into the argument with my colleague who has ...
0
votes
2answers
123 views

If “negative” conditions are mentioned in the spec, are such tests still negative?

In most definitions of negative testing, the idea is that we test outside what is specified/expected and it is highly related to robustness. So basically, if the behavior for such conditions is ...
0
votes
1answer
18 views

How do cloning drives, system recovery points and virtual machines compare for system state recovery?

I want to setup a dedicated test computer that can be restored to a specific system state. The reason for that is that the software tests to be executed on that machine include the installation ...
0
votes
1answer
62 views

Unit testing for a method in a class which uses constructor DI (prism)

I have a class that uses constructor DI for IEventAggregator public SomeViewModel(IEventAggregator eventAggregator) { this.eventAggregator = eventAggregator; ...
0
votes
0answers
44 views

jar deployment best practices for scaling

How to orchestrate deployment of a jar across machines (oddly 20 and could scale). Is there a known solution? Currently I’m copying the jar on to all the servers one by one for every release. (I know!)...
0
votes
0answers
56 views

HTTP Method and REST URL for Returning Data that May Be Saved

My application has a grid with a list of Car objects from a third party system [{id: 1, make: "Ford", model: "Focus", ...},...] The user can select a Car and use its data (after some transformation)...
-1
votes
1answer
63 views

What should idempotent script do if resource changed?

I have a script that migrates data in the database. It copies property X to property Y. If I want the script to be idempotent, what should it do on subsequent call if X changed? For example: ...
-3
votes
3answers
351 views

Why are script languages so popular? [closed]

I am currently writing a memoire on the evolution of developing tools. Among them is of course the programming languages. I made some researches, and a lot of the most popular languages are scripts ...
0
votes
0answers
16 views

Golang: Directory structure for Multiple Applications

I'm POCing a Go-app for my organization. I've read all of the intro docs on setting up a Go workspace, packages, etc. However, I am still unclear about the relationship amongst the recommended ...
2
votes
2answers
82 views

Is it normal to retest the entire sprint before pushing to UAT

I have <5 years experience in the software industry and this is my first time doing QA. Before the stories in a sprint move to UAT, I am supposed to retest every single story in ~1 day in an ...
-2
votes
0answers
21 views

React component vs HTML component implementation in terms of design and efficiency

Straight to my question, I have a submit button for multiple react pages. It is very simple and it can be done by writing a simple HTML <button> tag. Do I really need to create a react button ...
-1
votes
0answers
34 views

Starting With CI/CD With Jenkins and SubVersion

I have worked in the past with CI/CD, but just as a developer. But now I have to define a complete new environment. I started at a new company where until now there was only one developer. They want ...
1
vote
1answer
64 views

Is a JSON wrapper an adapter?

Please let me illustrate with a simple example. Suppose we have a Weather object: class Weather: def get_forecast(self, day, place): forecast = "code that calculates forecast" ...
0
votes
0answers
33 views

Advice on how to model my microservices

I need to tackle this problem : we have to model some services aimed to handle all our customer registration process : - this include registration of the personal data (name,surname,email whith a ...
-1
votes
1answer
41 views

How to ease the pain of lack of diffs when using database migrations?

The pain that I've often felt when creating database migration files, is best described in this Speakerdeck: Sane Database Change Management with Sqitch. Paste entire function to new "up" ...
0
votes
0answers
53 views

How to handle role based access in my microservice architecture

We are trying to move from a monolith application to a microservice architecture faced by a spa application. One of the reason, is that we want to expose some services of our business to partners and ...
0
votes
1answer
31 views

Service lifecycle with non blocking start and stop

So the basic scenario is I have a class that starts/stops service objects with the methods start(String serviceid)/stop(String serviceid). It is designed to then forward various execution tasks to the ...
-2
votes
1answer
37 views

Grouping types in a single project [duplicate]

I have many models in my project that are unrelated to each other. I wanted to group them but I wonder what's better: Folder/namespace per group Group1.Constants, Group2.Constants Group1.Models, ...
1
vote
1answer
100 views

Installation process for a modern complex Windows Software Installation?

We're trying to re-think the installation process of our software suite and I'm trying to find out what specific pitfalls we're facing without using my/our limited lens of the Windows software ...
-2
votes
0answers
36 views

Phenomenon related to emergent properties?

I'm looking for a certain word that I am not able to properly define apart from emergent property, and perhaps there is a better alternative. I am designing a software library, and have 2 decisions ...
1
vote
3answers
147 views

How to integrate different “microservices” into a transaction?

We're building a new web-based industrial application and one of the questions that are hammering our heads for the last few days is about the integration between different "microservices" on this ...
10
votes
5answers
645 views

If passwords are stored hashed, how would a computer know that your password is similar to the last one if you try resetting your password?

If passwords are stored hashed, how would a computer know that your password is similar to the last one if you try resetting your password? Wouldn't the two passwords be totally different since one is ...
0
votes
1answer
40 views

how to ensure consistency for concurrent requests for same mutable data?

Consider an abstract example, just to illustrate - you have a service for loans, which gets requests to borrow X USD, checks if there’s enough USD to lend that, if yes - marks that amount as reserved ...
0
votes
1answer
109 views

Architecture for a Reddit-esque website

I'm trying to create a website as a forum similar to Reddit, but on a smaller scale (no comments also). The website will allow users to post a link to a forum. Then they can view a list of New or ...
-2
votes
0answers
29 views

How to build a MacOS app with multiple parts [closed]

I'm not wondering the details of how to build a MacOS app, which is a broad topic. I would like to know basically the process that happens when you open a .app application in the applications folder, ...
1
vote
1answer
84 views

Sharing a sub-project and some users are git beginners?

We have two teams, each using git, and would like to share a small project between them. Git submodules sounded like an obvious answer until I started searching and found lots of "submodules will ...
5
votes
5answers
284 views

Design pattern for 2 methods one has 70% arguments of other one

I am trying to do a design for notification part in the system I have 2 parts inApp notification and email notification so I used strategy pattern where I have interface NotificationSender with one ...
1
vote
0answers
40 views

dealing with state data in an incremental migration from large legacy application

I have a very large monolithic legacy application that I am tasked with breaking into many context-bounded applications on a different architecture. My management is pushing for the old and new ...
-5
votes
0answers
38 views

How does token limiting work for API? [closed]

In the tool im using, they have 4 terms Token rate-limit Token rate-limit-time (in minutes) Application rate-limit Application rate-limit-time (in minutes) and one example of values is like (8000, ...
1
vote
0answers
19 views

What are best practices for deploying different configurations per environment in Kubernetes/OpenShift?

Kubernetes provides a very elegant mechanism for managing configuration for pods using ConfigMaps. What's not clear from the documentation is what the recommended practice is for using ConfigMaps to ...
-1
votes
0answers
43 views

Should I use a WebSocket or wait for the REST response? [closed]

We are developing a microservice architecture project. Once a request is sent to the backend from the frontend through a REST API call, our backend proceeds to apply various machine learning ...
0
votes
2answers
63 views

Method Inlining Considerations

Generally, I read that large methods benefit from some sort of inlining and the C# compiler does this sort of micro-optimizations automatically. I understand that if a method is called just one time ...
0
votes
1answer
57 views

Benefits of placing error logs in a database by itself

I am working on a project where logs of all kinds (e.g. errors, warnings, etc.) are stored in a database table, in the same transactional database used for the other business purposes. It is a MSSQL ...
0
votes
1answer
57 views

Is there a convention for the Optional/Maybe monad in typescript?

Let's take the classical example of a function that may return a number or not. In typescript this can be represented like this: function f(): number | undefined {} A more elaborate way would be to ...
0
votes
1answer
28 views

Updating a distributed backend and keep track of compatible releases for Electron app + Webserver (PHP + MySQL )

Currently i'm working on a small platform with a simple client-server model and will soon go in a closed beta with a launching customer. In essence it's an Electron application which is mostly used ...
0
votes
0answers
15 views

How can I manage the state of my application using a dedicated object instead of what React offers?

Most of the react application I've seen are organized with components that, in my opinion, do too much. They may follow this pattern: class MyComponent extends Component { constructor() { ...
1
vote
3answers
281 views

Is avoiding throwing an exceptions OK?

e.g I'm parsing whole Excel file with many rows, that has an column which contains Date. I'm not sure how to handle error-handling when it comes to parsing string to DateTime Here's an sample code ...
11
votes
5answers
5k views

How you debug a binary format

I would like to be able to debug building a binary builder. Right now I am basically printing out the input data to the binary parser, and then going deep into the code and printing out the mapping of ...
1
vote
3answers
148 views

Builder pattern: How to verify required fields before runtime

A language agnostic approach since I see this problem in both compiled and interpreted languages with the builder pattern. Let's say I have a Model that has 10 required fields and 5 optional fields. ...
0
votes
0answers
22 views

Why do I define my Queries, Data, and Mutation as Singleton when using GraphQL in .NET Core?

Why do I define my Queries, Data, and Mutation as Singleton when using GraphQL in .NET Core? From the doc's dependency injection page: public void ConfigureServices(IServiceCollection services) { ...

15 30 50 per page