All Questions

Filter by
Sorted by
Tagged with
0
votes
0answers
4 views

All components dependent only on a core component

I'm kind of obsessed about hiding all implementations in .net behind interfaces. I came up with idea of storing all interfaces in a core component (with dtos and so on) and their implementations in ...
0
votes
0answers
2 views

Incorporating Functions Into APIs

How are functions generally incorporated into APIs. I would imagine you could just cut and paste your function in as a method of a class, but is this actually how it would be done? I'm asking this ...
0
votes
1answer
42 views

C++ pattern for compile-time configurable class functionality

Due to resource limitations (embedded), I want to make some functionality that a class provides optional. The decision to include this optional functionality should be made at compile time. For ...
0
votes
2answers
81 views

Planning a sprint when you don't know the next tasks

How should sprint tasks be planned when you won't know the next task to be done until the current task is complete? For instance, consider the case of optimizing a program's performance. Until you fix ...
0
votes
1answer
27 views

Check SMTP connection in health check

I have created a web service which can also send emails (using Gmail SMTP). This is deployed using Kubernetes and a health check is run every 30 seconds. Since a team member changed the login ...
-1
votes
0answers
34 views

Does JavaScript stop executing script when a Web Assembly function is called?

I am fairly inexperienced with web development and want to put a lot of time into learning JavaScript and Web Assembly because they both seem like extremely powerful tools when used together. When ...
0
votes
1answer
31 views

How to keep user logged in when using OpenID Connect & Cookies in dotnet core?

I'm working on an OpenID Connect Hybrid flow, basically the response type in my case is: code id_token Problem: I can't seem to persist the session of the user when logged in using the id_token. I ...
-1
votes
1answer
55 views

Should one create code review for an incomplete unfinished change? [duplicate]

Had this happened: A developer make a new feature, but not working, since last year, total code change is 100+files and 10k lines. Until recently, with help of another developer, get it to work. ...
0
votes
4answers
94 views

What if there is specific logic for one particular value of an enumeration class?

Background: I have seem some argument for using enumeration classes instead of enum in C#, in particular, this section from a book available at MSDN. On the references there is this "Enums are Evil" ...
-2
votes
0answers
20 views

git submodules of submodules [migrated]

I have the following repos in a project /main/somecode.py /main/sub1/ /main/sub1/somemorecode.py /main/sub1/sub2 /main/sub1/sub2/evenmorecode.py sub1 and sub2 are submodules. Git has automatically ...
0
votes
1answer
50 views

Is it accurate to call Webpack and/or Babel a compiler?

I'm curious about the terminology for compilers with JavaScript. When you're writing about or describing technologies like Webpack (bundles multiple files into one, and performs optimization) and ...
0
votes
1answer
64 views

How do I test a method which interacts with a database?

So I have a database class which has methods dedicated to specific actions. For example I have below method which accesses and writes to a table in the database: def trackUserPerformance(self, ...
0
votes
0answers
38 views

Is it dangerous to link together -mno-red-zone and regular code?

I know that in x86_64, there exists a 128 byte red zone above (or below, address-wise) the stack pointer that functions can use without subtracting from rsp. This sounds to me like the only things ...
0
votes
1answer
37 views

How do I create an HTTP PUT request that modifies the resource in many ways

I have a NodeJs backend that interacts with MySQL database. Let us assume that I have a schema similar to this: Book id name Author id book_id name So, I have two tables named Book and ...
0
votes
0answers
14 views

SQLAlchemy with Plain Old Python Objects (POPO)

In SQLAlchemy class models are of data type Column which contain metadata about the table in the database. Such as: id = Column(Integer, primary_key=True, autoincrement=True, nullable=False) When I ...
0
votes
1answer
23 views

DDD and Infrastructure micro-Services - how should the interface be designed?

We've extracted our email sending into an EmailService - this is a microservice that provides resiliency and abstracts the email logic into an Infrastructure service. The question is how the ...
1
vote
0answers
42 views

Is using a non-compile-time-constant value as a default parameter a code smell? [duplicate]

I'm trying to use App.config and Configuration Manager for the first time. I wanted to use some values in App.config as default parameters for some methods, but this results in an error (not a compile ...
2
votes
2answers
50 views

Summing cyclomatic complexity of function or files

Is the sum of the cyclomatic complexity of all section in a file the total cyclomatic complexity for this file? If it is, is the sum of a set of related files the total cyclomatic complexity for this ...
1
vote
2answers
116 views

C# extension methods design patterns and usage guidelines?

C# extension methods have seen a rise in usage over recent years. The offical microsoft guidelines on usage state: "In general, we recommend that you implement extension methods sparingly and only ...
-4
votes
0answers
26 views

What are the challenges with browser user interfaces? [on hold]

Browser user interface (BUI)typically are targeted for remote devices like routers , printers (cups) etc. It is also used in desktop applications like Jupyter notebook. Using BUI for desktop ...
0
votes
1answer
98 views

What is a good Object-Oriented design for geometry objects when building libraries dealing with geometry operations?

I am trying to design an object-oriented library to handle geometric calculations. However, I am trying to exaggerate on being "tightly" object-oriented and applying relevant "best practices". I know ...
1
vote
1answer
33 views

Ideal architecture for ML training -> API service workflow, with multiple models/services? [on hold]

I'm planning to construct a workflow/environment for training and serving NLP classifiers, that follows something like: The model training system takes in annotated documents from a subset of a ...
-1
votes
1answer
43 views

What is the best design for this use case regarding bidirectional relationship? [on hold]

For this question let's consider a system in which the users can match with each other (let's say for simplicity exactly like the dating apps). User1 matches User2 (and the other way around) only in ...
0
votes
1answer
42 views

How to check if the command is execuable when it delivers through asynchronous message queue?

The aggregate root's state is the product of the commands it receives. So different order of receiving the commands produce different aggregate root states. How can I check domain rules based on the ...
1
vote
1answer
65 views

Architecture/algorithm for unusual recommendation system

There are thousands (or tens of thousands) of possible movie titles. New user enters my website and selects hundreds of titles that he likes. The only single goal of my website is to output the list ...
0
votes
1answer
45 views

What can I do to prevent or reduce message loss in a microservices system?

Quite often I have methods that do the following: Process some data (frequent, but optional) Save some state to database Publish a message to a queue / topic What options do I have to protect myself ...
0
votes
2answers
24 views

Swift, creating views with table view controller

Im not sure if this is the right place to post this kind of question, but, I heard from a colleage that he creates all his views in a table view and for each item creates a separate cell. e.g. A ...
0
votes
1answer
37 views

What's the use of event sourcing and asynchronous message queues for sending commands

In short: Out of order commands end up with out of order events, so does the ordering of the events matter in such situations? Since we are uncertain about the order of commands when an asynchronous ...
6
votes
3answers
689 views

Merging teams with different front end framework preferences

My company just went through a merger and as a result my small team has been expanded. From our side we have been using React for several years, and I firmly believe for us it is the superior choice ...
2
votes
3answers
80 views

Serialization of messages on a servicebus and microservice architecture

In a microservice-based system, it exist some principles. Sam Newman often refers to them as these: You should always model your application around the domain A culture of automation. Automate whats ...
0
votes
0answers
24 views

Modelling device-oriented domain

My application is connected to several hardware devices, where as for each device, there is a dedicated device client containing it's own representation of the device protocol, response/request or ...
0
votes
4answers
242 views

Are there limits for programming languages calling others?

So earlier today I found about IronPython: IronPython is an open-source implementation of the Python programming language which is tightly integrated with the .NET Framework. This was my first ...
0
votes
3answers
56 views

Ensuring Thread Execution Order when Writes Must Occur Before Reads

I'm currently designing a server with the following structure: A TCP thread pool that receives data from the network A queue that holds these requests A worker thread pool of a fixed size that takes ...
0
votes
3answers
109 views

Should the attributes of a class be part of the public interface even when they could break its methods?

As a minimal example, consider the following (in Python): class Foo: def __init__(self, bar): # Assume bar is a valid at this point self.bar = bar def divide_by_bar(self, num)...
0
votes
0answers
43 views

Need some design advice on my ORM for Immutable objects & ref passing

I'm adding Immutable objects support to my Micro ORM called "Symbiotic" In the case of a create, I need to pass back a newly created version of the value passed in because the object is immutable and ...
0
votes
1answer
74 views

An atomic method updates dozens of properties. Am I “testing too much”?

This question is about designing unit tests, something I started learning short ago. I know the principle that if you are testing too much in a single unitary test it is a smell, either of code or ...
5
votes
3answers
235 views

Should tests perform a single assertion, or are multiple related assertions acceptable

Assume a client is making a request to an API endpoint that returns a JSON response where the structure and data change depending on whether the request was successful or not. Possible responses may ...
8
votes
5answers
2k views

Is lack of functional requirements agile?

Nowadays everybody wants to be agile. In every team I worked with, the shape of agile was different. Some things are common - like daily stand-ups or planning, but other parts vary significantly. In ...
0
votes
1answer
34 views

Passing and using properties through annotations in Java

I have a Java EE Application in which I have an Interceptor class like this @Interceptor @Logged public class LogInterceptor { @AroundInvoke public Object logMethod(InvocationContext context) ...
-2
votes
0answers
45 views

Counter example to Zooko's triangle? [on hold]

So Zokoo's triangle is a conjecture that is often explained by this trilemma: Names: -secure -distributed -human-meaningful pick two But what if we hash the public key of an ...
0
votes
1answer
29 views

Update items based on a read operations on same items is a bad practice?

DynamoDB is the database solution, I'm using to store my items. It's a NoSQL/Document database and I got a real problem on real-time updates of items. First, the saved format is like { expiredTime:...
1
vote
1answer
26 views

How do the (presumably sync) loop runners launch the async event loop?

Where is the implementation interface in Python documented that allows the async loop runners (from trio, asyncio, curio) to start the whole shebang? We know that sync functions cannot call async ...
-2
votes
1answer
45 views

How to create a league scheduling algorithm?

Our requirement was to create an auto fixture generation tool that creates fixtures for a league with any number of teams, and where they have a fair distribution of home and away games so that: ...
0
votes
2answers
92 views

What are the “scalar fields” and “composite fields” in JAVA?

Need to understand the below definition, from the protobuf tutorial: mergeFrom(Message other): (builder only) merges the contents of other into this message, overwriting singular scalar fields, ...
-1
votes
0answers
14 views

One folder per project with files types mixed or one folder per file type with different projects mixed inside? [on hold]

I'm doing a data visualization project where I make different graphs. For each graph I put files of many types: the graph in PNG the original data in CSV the cleaned data in CSV the jupyter notebook ...
0
votes
1answer
53 views

Granularity of the Single Responsibility Principle [duplicate]

This is a related question and the OP appeared to go with extreme levels of granularity. The answers gave a good overview but I gather it's still somewhat down to personal interpretations/situations ...
1
vote
2answers
203 views

Two scrum teams sharing the same codebase

We have one scrum team (distributed Agile) working on one code base. Due to parts of the team being in different time zones we wanted to divide the one team into two scrum teams. Our model with one ...
2
votes
3answers
186 views

Which is a better method name? GetById(int id) or Get(int id) [on hold]

Has there ever been a consensus on which convention is "better": User.GetById(int id); or User.Get(int id); i.e., is User.Get(int id); not descriptive enough? Or does is the parameter implication ...
0
votes
0answers
52 views

Gerrit: Working around the “single-change:single-commit” principle. Need Feedback

I have been using Gerrit in my work environment and I find it really amazing and powerful because of its elegant use of git's branching features to create virtual branches for code reviews (the "refs/...
-1
votes
0answers
15 views

Scalable Design to combine large S3 files and provide a public download link through Email [closed]

I have multiple files on AWS S3 Bucket. According to Access of a person I need to create a ZIP file of multiple selected files & provide a public link to download it. I want to use a queue to put ...

15 30 50 per page