All Questions

1
vote
2answers
198 views

Should I use ISO country code for primary key, or integer ID?

I have or am going to have a database with countries and their emissions. Countries in the API have a 3-letter ISO Code. Should I use this for identifying the countries in database, or just a plain ...
1
vote
0answers
28 views

Message Broker in Client-Server-Applications

I'm currently planning an architecture for a system that should consist of multiple microservices. We definitely want to make use of a message broker (probably RabbitMQ). A simplified diagram of my ...
-1
votes
0answers
21 views

Writing a wrapper library for appsyncclient in mobile application

I am trying to develop a mobile UI application for both android and IOS. This application interacts with AWS appsyncclient which in turn talks to AWS. This application interacts with some kind of ...
-1
votes
0answers
63 views

What to name your namespace?

Several times I've started a small scale software project (mostly in c#) and I've needed to come up with a top level namespace for the project, but I can't find a good one. My go to has been to give ...
-4
votes
1answer
67 views

C# how long did it take you to write your first Roslyn Analyzer + CodeFixer [closed]

Tl;Dr: Check out the last paragraph Yeah So I got the feeling that I'm a bit slow at getting to know new APIs. At first I was completely overwhelmed on how to get anything to start at all but I ...
0
votes
1answer
34 views

Should complete user story be implemented by one team in context of microservices archicture

I have implemented application using microservices architecture. I take a user story to implement. This involves front end/UI, and two microservices to implement the user story. So I have three ...
-2
votes
1answer
23 views

Node.js app to keep track of dynamic IP Address of dell edge box?

I have dell edge box that is stored in another location, the edge box is having 4G sim card internet access with dynamic IP address that changes frequently, I usually use ssh putty with the 4G IP ...
3
votes
4answers
297 views

Which value to use to represent “since forever”?

You've probably been in the same situation: there's a class of objects which have a specific date before* which they should not be considered "active." But how should you represent "active since ...
3
votes
2answers
75 views

How are settings structured when they can be configured in diffferent ways?

Suppose of this question the following: I'm in full control of this project I'm writing a media player Obviously, a media player will allow a user to adjust the volume, so I might have a class that ...
-1
votes
1answer
67 views

How to determine the application used on top of TCP?

I am currently implementing a TCP Proxy Server. The huge problem I have right now is that, based on the clients' TCP data, I am trying to determine whether the client is making an HTTP, FTP or SMTP ...
1
vote
1answer
43 views

Compare two arrays by the number of occurances

I have the following dictionary: { "Drama": 8, "Adventure": 8, "Action": 4, "Comedy": 3, "Thriller": 1 } This dictionary is like a representation of a user's preferences in movies. (in the past he ...
-2
votes
0answers
24 views

International specifications for Multi-agent systems (MAS) [closed]

I wonder if anyone (maybe company) uses international specifications in MAS development for architecture or communications, i.e FIPA specifications. I ask these because FIPA seems to be dead (recent ...
0
votes
0answers
4 views

How deso share-alike play with commercial use? [migrated]

I'd like to know how a licence can both allow commercial use and be share-alike. My reasoning is as follow : If we use it in a product (which is authorized by the "commercial use" part), we have to ...
0
votes
2answers
129 views

GCC or Clang to output bytecode for a VM?

Long story short, I wanted to use C as a scripting language and in a portable manner so I created a register-based, JITless VM to accomplish this. I've formalized the VM's ISA, script file format, ...
-1
votes
1answer
57 views

Patterns for loading related objects in memory (without an ORM)

I am using ADO.NET to read a bunch of data from the database into in-memory objects. This is my domain model: // Question.cs public class Question { public int ID { get; set; } public ...
0
votes
1answer
24 views

How do I architect an iOS app when multiple view models must know when the model has changed?

I'm using MVVM and I have an app with a UITabBarController, the Main tab of which is a list of publications and the other is a Search screen where they can search for publications. Searching returns a ...
2
votes
2answers
95 views

What is the term for the side on which a variable type is written in a given language?

In the case that a type is specified, it could be on the left (before) or the right (after) of the variable name. For example, C, C# and Java have the type specified before the variable: int num = 5;...
0
votes
4answers
101 views

Is there a mismatch between XSL and OOP? [closed]

context and background: I prefer OOP for the most part and find it, largely, more intuitive -- this is my bias. When I read that functional language x is better than OOP language y I think to myself:...
-3
votes
0answers
33 views

What is the difference between aggregate and domain [duplicate]

I'm studying Domain driven design (DDD), reading many articles, but reading " Domain driven" I never saw what is the Domain properly? What it is it? Please, show me at the picture: My question is ...
2
votes
3answers
72 views

Permissive vs. Strict API Message validation

We had a interesting debate today over what our REST API should default to doing when validating a request body where unexpected fields are present. I think we ended the conversation in a good place, ...
0
votes
0answers
26 views

Deploy my own service to OpenStack cloud?

I'm new to cloud computing and now want to have my own private cloud based on OpenStack (looks like it's free, isn't it?). As I understand that kind of cloud computing solution allows me to publish my ...
6
votes
1answer
148 views

What is the difference between Event Driven and Event sourcing?

I'm studying domain driven design (DDD) and came across terms: Event Driven and Event sourcing. I know it's about publishing event from producer to consumer, and store the log, so my question is: ...
-2
votes
4answers
148 views

Static Factory Methods vs Constructors

Which one of the following way is recommended and why? Date d = Date.from(curr); Date d = new Date(curr); Can you also provide some examples behind the reasoning?
-1
votes
1answer
47 views

Where are: Domain, Aggregate, Entity on the picture?

I'm studying Domain driven design (DDD), reading many articles, but never found a simple explanation. Please, help, let's say we have a design: My bunch of question is: What is domain? ( where is ...
2
votes
2answers
60 views

How to structure database for daily events?

I'm storing data which logs whether or not a user has logged their attendance for a given day. Some days are unimportant (holiday, weekend), so those are also stored. The two requirements are that: ...
1
vote
3answers
86 views

Is it really correct to talk about compiled and interpreted languages? [duplicate]

It is pretty obvious that any interpreted language CAN also be compiled. For a long time I thought that it was not necessarily the other way around. Then I discovered Ch which is an interpreter that ...
1
vote
2answers
344 views

DDD - Referencing Aggregate Root of other bouned context?

I'm building a personal project, as an introduction to DDD, I'm doing a little bit of analysis and can't get my head around it. My ERD looks as follows: To go over it, as an admin you can setup a ...
1
vote
1answer
168 views

Problem in creating a correct finite-state-machine for a given short text

I like to create a finite-state machine for the given text below. While solving this, I came accross with several problems I listed at the bottom. (This example is in terms of testing (where you later ...
-4
votes
0answers
26 views

How could I have an “infinite” scrolling list that can be fully searched with browser find but only a slice is shown? [on hold]

I'd like to display to a user a list with a great number of items such as the list of followers. To keep the memory usage, speed or whatever low, I've been thinking of displaying a slice only. In ...
-3
votes
0answers
17 views

Is there a de-facto standard way to document a project's service dependencies?

We are developing alongside a sister service project which our project depends on. We do periodic tests against our version X against their version Y and we need a way to document that X works with Y ...
-3
votes
0answers
30 views

Supporting feature branches

I'm working for a manager who doesn't want to push back on the organization the need for a discipline when it comes to software releases. In other words, he wants the flexibility of the stakeholders ...
-2
votes
0answers
13 views

Design Patterns & Strategies for a code library with many combinations of settings? [duplicate]

I'm not exactly an engineer. Just a recent graduate of a software development program. However, I am aware of software design patterns, such as the singleton, factory,dependency injection, etc. I am ...
0
votes
2answers
126 views

Force field initialize not by constructor in c++

My parent class has a vector field I want to force child classes to push in that vector as many as items they have. At least one item example: class Options { protected: vector<...
-1
votes
2answers
145 views

Null checks good practice if code will only be ran when object is never null

Using a website with Javascript as example. Let's say I have script A which only performs a specific function on page Foo. For example something like sorting elements in a list. Script A is only ...
2
votes
1answer
46 views

Where to store data for Microservices Architecture?

I currently build applications that are fairly monolithic. I have a one or many code bases that compile into one single binary/package and deployed on a cluster of docker containers. All of the data ...
1
vote
0answers
42 views

When not to use View Services in MVVM design pattern?

I'm using the MVVM design pattern in my application which is comprised of, A Xamarin.IOs project (View Layer) A Net Standard project (Common Layer) A Xamarin.Android project (in the future) (View ...
-1
votes
0answers
5 views

Is using LGPL 1.2 or EPL 1.0 licensed jar allowed in proprietary software in Docker? [migrated]

I am creating a proprietary java application which uses some open source jars licensed with LGPL 2.1 or EPL 1.0. I am deploying the application in docker container with all jars inside it. Is there ...
6
votes
3answers
289 views

Where should business logic sit in microservice architecture?

Still trying to wrap my head around microservice architecture since I'm used to a monolithic approach Suppose we try to build a extremely simplified Uber booking system. To simplify things we let's ...
-1
votes
2answers
198 views

How to get switch case values [closed]

I was wondering if there is a way to get the values of every case in a switch statement? When you provide a not implemented case, I would like to throw some exception and provide a list of available ...
1
vote
0answers
32 views

Replacing Edge with Chromium in UWP PWA design

I'm working on a UWP project which originally adopts UWP PWA. However, Microsoft Edge is planning to replace its core with the Chromium, which may halt the current progress of full PWA support (it now,...
2
votes
2answers
106 views

Design pattern for similar classes that require different implementations

Edited: Update is at the bottom There could be a common or best practice for this scenario, but I am unfamiliar with it. However, it could very easily be a matter of subjective opinion on how one ...
1
vote
1answer
142 views

How do I work on a new project and simultaneously add generic code to a base library with version control?

I work on several projects and sometimes they share a common base. How do you work with version control? Here's an example: I've got a boilerplate Wordpress plugin that I reuse. On each new ...
0
votes
1answer
64 views

Generating CSV export

I created a CSV export that works like the code below. There is a LinkedHashMap where the keys are the column title and values are functions where certain properties are read. By reording the lines ...
-3
votes
1answer
66 views

Why it is the good to use WordPress instead of creating one from scratch? [closed]

why every startup and every big company uses #wordpress ? what is the benefit of using it ? fast management , easy to use , customization instead of creating one with html , css , js and back-end (...
-3
votes
0answers
36 views

Is there a term for a catalog of fakes, mocks and stubs that are preconfigured?

Let's say I have a user object... and there are a certain subsection of tests that always for example, want an "admin user" and others want "moderation users" ... or we want users with unicode names ...
0
votes
2answers
93 views

What is Granularity?

I am reading Eric Evan's Domain Driven Design, and I encountered this concept on p108. I am having a hard time grasping the concept, in spite of the explanations mentioned on the pages 107 and 108. ...
-2
votes
0answers
17 views

Adjusting table columns width linked to a sqlite database and created using java eclipse

I want to adjust the column widths seperately. Not all having same width. here's my code: //columnModel.getColumn(0).setPreferredWidth(100); table = new JTable(); table.setAutoResizeMode(...
0
votes
2answers
47 views

How to name and organize unit tests with combinations of multiple parameters?

I am new to unit testing, but finally getting started. I have been running into a situation where my unit test names apparently grow too long to readable due to the multiple parameters and ...
-4
votes
1answer
43 views

Copyrighted Flash Games and Personal Websites

I am not sure if this is the right Stack Exchange website, but anyways: If a flash game was to have a copyright notice, would it be legal for me to post it on my website? This wouldn't be for any ...
0
votes
1answer
85 views

Is it a good idea to allow multiple account login (in the same browser)

I am implementing Authentication from scratch (php). I reached a point where I have different types of users (admin, author, editor etc.) After dealing with this, I realized I can allow multiple ...

15 30 50 per page