All Questions

2
votes
2answers
42 views

Terminology: Blue-Green deployment

Let's say your organization uses a blue-green deployment model. Simple question: After Blue has gone live, do you rename it to Green, and the server(s) formerly known as Green now becomes Blue? Or ...
1
vote
1answer
25 views

How to store data which can be a foreign key or free text

I am not sure how to explain my problem, but basically I have an input field which lets you enter member's name or select one from a dropdown list. If the user has selected the person from the list ...
0
votes
0answers
15 views

Does Akka support communication with external threads

I have been developing with Orleans actor implementation. Recently, I saw that we were scheduling a long running job on an actor, which was effectively blocking the actor since it couldn't process the ...
1
vote
1answer
45 views

Initiating a class from its static method [on hold]

What is the stand on initiating the class from its own static method? Are there any good practices about this? I feel need of initiating a class from its static method while implementing a job ...
0
votes
0answers
16 views

DDD: delete tree “Node” should check for children

I have a tree of Installations: Aggregate Installation has a property ParentInstallationId. I also have a RemoveInstallationCommand --> repo.GetInstallation(x).Remove() Now, I want to throw a ...
-2
votes
1answer
34 views

Managing the winning player in Mastermind [on hold]

I'm trying to implement a simulation of Mastermind in Java, for educational purposes. My version is slightly different from the original as more players can participate in a single match and try to ...
0
votes
0answers
8 views

Designing navigation menu from admin panel

We have an ecommerce website which has navigation menu consisting of several categories which keeps on changing over time. Presently catalog team passes requests to turn on/off categories to tech team ...
0
votes
0answers
17 views

In ASP.NET, is the concept of a Complex Type analogous to a View Model? [on hold]

Is a Complex Type to the Entity Framework, what a View Model is to a View? If I understand, the Complex Type is a type that represents columns and/or fields from real EF entities. A View Model is ...
-2
votes
0answers
103 views

Why is unreachable code a compile error in java?

In java, unreachable code is considered a compile error. For example, this code would not compile: private static int double(int x) { return x * 2; x += 5; } As x += 5 can never be reached. ...
0
votes
0answers
19 views

What sort of data limit would make sense for pulling down all data vs autocomplete/pagination via ajax?

Imagine a page with an autocomplete textbox on it, to get Customer. I am wondering what sort of limit for record size makes sense in this day and age regarding whether all the customers should be ...
0
votes
1answer
50 views

Deciding which microservice should write to the database

Let's assume the following architecture where EventCreatorApp creates an Event which is logged to DB and sent to WorkerApp for processing WorkerApp processes the event, handles failures, etc. ...
0
votes
0answers
30 views

Separating Development and Deliverables with Git/Github

I am looking for some advice on the best way to manage my development worflow. I have been using git locally to track development and have recently uploaded a couple of private projects into Github. ...
0
votes
1answer
34 views

rest service with digitally signed parameters

I'd like to build a rest service that will accept objects that has digital signature. This service has to support both xml and json data serialization formats. I'd like to use .Net core framework to ...
-2
votes
0answers
20 views

What are the best practices of designing database to serve multiple apps within one ecosystem? [on hold]

To clarify the question here is the scenario. There is a web app which implements RESTfull API with JWT authorization. It runs on PHP/mySQL at the back and Angular2 in front. Then comes another app ...
1
vote
2answers
68 views

Best practice when creating classes that are solely in charge of the creation of other objects i.e. factories?

I often find myself creating classes that I suffix with 'Factory'. These classes tend to be solely in charge of the creation of a specific class or set of related classes. However I've always felt ...
0
votes
3answers
121 views

Code design: introduce new method vs add optional parameter to existing method

In JavaScript (ES6), I can have optional function parameter with default value. So to add a new behavior to the existing code base, I could either introduce new method(s) or extend the existing method ...
-1
votes
2answers
95 views

Big Bang Integration Testing vs System Testing

In Big Bang Integration Testing, we combine all the modules we have together after unit testing immediately as one whole to see if there are errors. In System Testing, we basically test the whole ...
-2
votes
0answers
58 views

Why is Python an “interpreted language”? [duplicate]

Why aren't compilers for Python common? And why interpreters for C aren't common either? Assuming that a compiled-to-machine-code Python program runs faster, why aren't Python compilers common? After ...
-1
votes
2answers
58 views

What are some examples of changing Commands at run time? [on hold]

I've been reading on the Command pattern. One of the advantages listed is that you can change the commands at run time and avoid hard coding invokers to receivers. But when do you really need to do ...
1
vote
2answers
43 views

Acceptable to use synchronous call to another microservice for time-sensitve state change?

Say there are two microservices (example is simplified) PickupRequestService: lists pick-up requests of passengers DriverService: drivers use to accept pickup requests On a completely decoupled ...
0
votes
2answers
105 views

How to deal with roundtrips in Kanban

We use a Kanban process with the following steps: (backlog) specification implementation review (completed) The specification, implementation and review steps are divided in in progress and done ...
4
votes
3answers
281 views

How do I write unit tests for legacy code (that I don't understand)?

Forward I've read a lot of things before asking this question, including many relevant questions right here on SE: (Software Engineering SE) Writing tests for code whose purpose I don't understand (...
0
votes
1answer
74 views

Microservices Versioning

I have a few questions regarding the versioning in the microservices architecture: Let's say there are three services - S1, S2, S3 S1 calls S2 and S3 to generate a response R1. Service S2 generates ...
0
votes
0answers
11 views

spatial element count data structure eg: R-Tree, with filtering

Background: The application is a web map application with a LeafletJS front-end and NodeJS back-end with Postgres database. The application is to be used on both desktops and smartphones/ tablets in ...
2
votes
1answer
134 views

Best pattern to solve problem where objects only differ in one attribute

As I am maintaining and extend a software system in Java, I saw a colleague (who left due to retirement) implementing a table with a generic approach. This approach is unluckily bound to tables (ui-...
0
votes
2answers
179 views

Exceptions versus guard clauses

I'm trying to get my head around Python exceptions. I've read quite a bit on the topic but can't get clear answers to some questions. In particular, I'm still not sure whether to use exceptions or ...
0
votes
0answers
28 views

Synchronization data between API (server) and local database : C#

I hit an API which gives a list of chairs with their location. I save this data in my local database. Whenever I received updated data like add a new chair, update location of the chairs and delete a ...
0
votes
2answers
59 views

How is there no hit in performance with MongoDB's new FLE?

MongoDB recently announced their new field-level-encryption method for helping tackle DB breaches. (https://www.wired.com/story/field-level-encryption-databases-mongobd/) In other articles it is ...
-1
votes
1answer
48 views

Designing command and factory pattern with large conditions

I working on a project requiring quite a lot handlers to handle requests. In general, i'm comunicating with a communication card, receiving requests from any source (User Interface, Server it doesn't ...
1
vote
3answers
127 views

Dealing with API errors

I'm building a shop system which works in three parts: a mobile app (Android/iOS) which is used by customers to make orders, view products and so on, a desktop application, used by the managers to ...
0
votes
1answer
106 views

What's the point of logging in with oauth2 if it's a paid subscription site?

I understand what oauth2 is and I've programmed it in one of our projects. The point was to pull user's data from an oauth2 provider (facebook, google, etc.) to our application (for example, the user'...
0
votes
1answer
50 views

Writing a Descriptive Text Engine

I have a database of people. With the information such as their name, online presence / relevance, and social media accounts, I want to create an engine that will automatically "describe" the person. ...
0
votes
0answers
4 views

Feedback: data model and interface design for scraper

I'm writing a pet project to scrape some websites, and write out results to HTML. Currently my data model and interfaces are: class Post: def __init__(self, title, description, images) ...
1
vote
1answer
76 views

Persisting user-deleted items in a database

I'm building a web application, in which users have their own set of Topics. Since Topics are recorded for reporting purposes, it's important that Topics used previously are not deleted, so that they ...
0
votes
0answers
8 views

How do I make scale of a GameObject persist in Unity? [migrated]

I'm currently developing a Hololens application and I've used Microsoft's official spatial anchor documentation to create a voice command that can persistently anchor a GameObject in place. So if I ...
-1
votes
0answers
50 views

How to avoid circular references in JavaScript?

I have two classes. A Bot class and a Client class. Heres a relevant section of the Bot class. class Bot { constructor(client) { this.client = client; this.client.on(ChatEvent....
0
votes
2answers
39 views

Using FULL GPL v3.0 library in my SaaS [on hold]

I have found a similar question but did not quite understand the Affero section. My code depends on some GPL v3.0 lib from GitHub that has the following clause in License: 13. Use with the GNU ...
1
vote
1answer
97 views

Is a literal out of range a syntax error or a semantic error?

I am reading more about the differences between syntax and semantics, but I am still wondering about this one. Let's assume that we have a language that only allows integers to be in the range of 0-...
0
votes
1answer
32 views

portable hashable string representation of data object

I have a class of (flat) objects that are going to be passed around between three different parties, each possibly running a different software stack. my_object: item: "string_a" money: ...
0
votes
0answers
32 views

REST API Alternatives for external facing services

I am looking into REST API alternatives and am having trouble finding info on if/how people do it for exposing services to third parties. Say there is a service that requires large complex/nested ...
-1
votes
0answers
60 views

How to output exception messages in GUI applications in order to decouple application code to GUI code? [on hold]

I want to make an application with a GUI in a way that most of its code is independent from the GUI used (let's say I'll use Java 8 and Swing for example). I have some methods with try/catch blocks ...
-2
votes
0answers
30 views

Set UpdatedBy reference in IdentityDbContext.SaveChanges() [on hold]

My app should populate UpdatedBy field for all of the entities. UpdatedBy should reference Id of AuthUser which extends IdentityRole<int>. UpdatedBy is set in IdentityDbContext.SaveChanges(). ...
3
votes
2answers
231 views

I'm sometimes the only one working for an entire day or longer. How should I handle the daily Scrum Stand-up?

We have a very small team: me, my 2 coworkers who are both my senior by over a decade, a web designer who usually works on marketing material but also does some graphical mock-ups or minor graphical ...
-1
votes
3answers
60 views

How can I ensure only one instance of a micro-service queries a database and downloads files to shared storage at a time?

I have a micro-service that sends files to clients on request. It acquires these files by querying a database where other users have saved details of the file. The micro-service queries the database ...
0
votes
0answers
31 views

Same events for different aggregates in CQRS?

I'm developing an application using CQRS + ES. Now I have 2 aggregates which are technically almost exactly the same, only they are different concepts in the domain. Therefore I will separate them ...
-2
votes
0answers
39 views

What is the best hash function for Bloom filters? [on hold]

Bloom filters are used for pattern matching in Bioinformatics.Bloom filters are probabilistic data structures.So my question is what is the best hash function to use for bloom filters to get better ...
0
votes
1answer
28 views

Handling different error types from diffierent libraries with express

Most of the express error handling documentation and tutorials I've read suggest using Express middleware to throw errors up to, and to handle the errors there. eg. From the Express documentation: ...
-2
votes
1answer
42 views

Authentication Mechanism for Third Part Apps [on hold]

I have an WebAPI application which is consumed in our native apps. The implemented auth grant type is 'password'. It is working fine. Currently we are creating a native library instead of native apps ...
0
votes
1answer
25 views

Should i use a separate droplet(DO) for the API?

I have a little app(PHP) that uses data from a third party. That data is processed constantly and saved into a database. And now i want to create a RESTful API to allow access to that data. Should i ...
0
votes
0answers
5 views

WPF MVVM validate property before setting when user's change value in DataGrid [migrated]

Issue: I have a list of a class that's being displayed in a Datagrid, one of the values needs to ask the user if they really want to change it. This was implemented with a YesNo MessageBox in the ...

15 30 50 per page