All Questions

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

Token Authentication for Rest WCF Services

I had built Electonic Medical Records (EMR) App using a 3-Tier Architectural style. Storage Tier: SQL Server Application Tier: WCF Rest Services hosted in IIS Presentation Tier: Website calling ...
-2
votes
1answer
10 views

Is it acceptable to ditch the Repository pattern in a layered architecture?

My app is using this kind of layered architecture: Controller > Service > Repository > Data Mapper > Persistence Often I notice that my service methods are just directly calling ...
-4
votes
0answers
7 views

how to choose what should be the classes in my oop project

what should i choose as classes in object oriented programming. how to find what all are supposed to be the classes in my code. is it the processes or the nouns? I have a website i am designing in php,...
0
votes
1answer
45 views

Recursive speculative display list engine - computing text length across stack boundaries

Well, I've been hammering away on this for about a week now with no practical progress because I can't find mental fluidity with the concepts I'm trying to wrangle. I'm Officially Stumped, and would ...
-1
votes
4answers
63 views

How do I prove an app is mine? [closed]

So I am in the process of finishing an app (android for now), and I have a doubt about if I should have papers that proof that I made that app. Its the first time for me to publish an app, and I am ...
-2
votes
1answer
28 views

Are there cases when using polling is preferable to Webhooks

When evaluating whether to use webhooks or polling for an architectural decision I've been reading some articles. Most highlight the obvious drawbacks with using polling such as: wasted resources (...
-2
votes
1answer
68 views

Logically, is there a reason why ++i++ can not be a valid expression?

I had to increment my integer twice in a loop, so I thought I would try and be clever: for (int i = 0; !sl.isEmpty(); ++i++) { ... } ++i++ however is not an assignable expression, at least in GCC. ...
-1
votes
0answers
20 views

IoT Device FW Encryption

I am currently working on an IoT devices update mechanism. So far what I have done Installation of signed bundles using RAUC Encryption/Decryption of the bundles using AES-CBC 256 The update bundles ...
-2
votes
0answers
17 views

Modify a binary and account for relative jumps

Most binaries have jump and control flow instructions that are relative to other locations in the binary. For example: if I modify an instruction around 0x12341232, and there is an instruction ...
0
votes
0answers
36 views

Avoid locking frameworks with dependency inversion

I am trying to understand the concept of dependency inversion and I think I finally got the concept. However now I am struggling with another issue, which is the selection of framework, when ...
0
votes
2answers
42 views

How to write UI in sequence diagram?

So i want to make a sequence diagram for login .. the first step is user access my website then the system redirect to login Form, then he insert username and password than the system validate it , if ...
0
votes
1answer
40 views

How to follow execution path of a Unit Test in real time without manually stepping through the code line-by-line?

I'm using MSTest. I have some async functions I'm unit testing that rely upon a lot of different methods where the result needs to be awaited upon. Sometimes the unit tests stall in a "running" stage ...
0
votes
0answers
11 views

Spring Security SAML and RSA session

This is probably a design/architectural question. My app uses RSA initiated SSO using SAML for authentication and from there on my app uses its own session to manage the request. There is a flaw in ...
2
votes
1answer
37 views

Machine Learning in Real Time

I've been going over some tutorials on machine learning using Python and libraries including SciKit Learn and Tensor Flow. (Basic tutorials like creating an algorithm to predict a price given input ...
-3
votes
0answers
37 views

Citrix CVE-2019-19781 What have they done wrong?

To avoid similar mistakes as Citrix, I would like to understand what people have done wrong in programming. According to my understanding, based on the link here, there was the possibility to create ...
3
votes
4answers
83 views

Would it be possible to abstract multi-threading ability for programs not originaly designed for such?

Would it be feasible to provide (or further) multi-core threading ability for programs that weren't originally designed for such? And doing so by creating a "virtual" CPU core (or for i7's with ...
3
votes
2answers
62 views

How can I consult users of my FOSS library about a design change idea?

I have a FOSS library made public through GitHub. It's not a big library, it doesn't have a community around it or anything like that - but it does get a few dozen unique clones a week. Now, I'm ...
13
votes
4answers
2k views

Any technical reason not to use my own HTTP response code TEXT if I develop both server & Client?

Over the years, I have seen quite a few questions on this site along the lines of "can I invent my own HTTP response codes"? Generally asked by those who are developing both the server and client. The ...
-5
votes
0answers
25 views

What happens when a MIT licensed project uses Apache 2.0 drivers to connect to GPLv3 databases? [migrated]

I'm working on a SaaS medical research startup project with a MIT license. The goal is for the source to be open (because then customers can help improve it and find bugs), and end-users who want to ...
0
votes
2answers
97 views

Functional programming - what to learn and who uses it

I'm a .Net developer and Angular who's been working with OO languages throughout my education and work history. Lately I've been thinking about spending some time with one of the functional ...
5
votes
6answers
174 views

Fail-fast design vs. limiting constructor logic

In any programming task, my preference is to write fail-fast code. That doesn't seem to be too controversial. However, I've also seen many developers say that constructors should do as little as ...
0
votes
1answer
27 views

Where should the code live to update an aggregate root's value based on another aggregate root of the same type

We've got an aggregate root that has a position value so it can be ordered among the other aggregate roots; relative position is something that can change over time. We'd like to have a method that's ...
3
votes
2answers
140 views

Am I using namespaces wrong?

I'm obsessed with organization - it's probably the real reason why I enjoy coding. So I namespace everything. But I'm just curious if I'm doing it wrong by being redundant. Consider this, which I ...
-2
votes
0answers
57 views

Understanding the scope resolution operator in PHP language

On the php manual they define the scope resolution operator as following: The Scope Resolution Operator (also called Paamayim Nekudotayim) or in simpler terms, the double colon, is a token that ...
0
votes
2answers
52 views

Should I create one large initial event or break down in smaller events?

I'm experimenting with event sourcing for an application we haven't build yet. No, I won't implement this without any thought, I'm just experimenting. My domain model looks somewhat like this. The ...
1
vote
1answer
17 views

Should I pull to the another job workspace or should I push from it the 2nd job dependencies?

I have a question regarding CI/CD procedure. I do have 2 Jenkins jobs, the 1st one will build a binary file who is a dependency to the 2nd job build successfully. Should I push this binary from 1st ...
1
vote
5answers
144 views

REST API Design - Reordering Collections

Imagine that I have a system to manage sports teams. Let's not make it specific to a particular sport, but consider that each team consists of a number of players. Therefore, I might have an ...
-3
votes
1answer
40 views

API, Reuse models or [closed]

We have many API services (C# Web-API, non REST) and each of them has own separate logic and separate request and response models. Some of this models (you can call them DTO or Domain Class) can be ...
-2
votes
1answer
86 views

Is this OK to call a method that subscribe to IObservable multiple times? [closed]

I have this method: private void ModerateTravel() { var vm = new ModerateTravelViewModel(); moderate.ShowModerateTravel(vm); Observable.FromEventPattern<string>(h => vm.Error += ...
-5
votes
2answers
90 views

I know about Abstract Class and Interface ,But Don't Have Clarity When T Use Abstract Class And When to User Interface [closed]

I have Knowledge About abstract Class And interface but I do not know when to use abstract class and when to use interface
35
votes
7answers
5k views

Should I use AND in function name?

I am in a predicament. I am working in a repo that makes a lot of db changes within its functions. The function I am dealing with returns responseids (but from a transformation, not from any db ...
-3
votes
1answer
56 views

Centralized REST API call management?

I was given a solution with many projects. Multiple projects call multiple REST APIs. These calls are scattered around the spaghetti code. Trying to figure out what calls are done in what sequence ...
0
votes
1answer
34 views

Double way parent child relationship in Django

I am building an app to register and update children information, this information is to be provided by their tutors. Every child can have multiple tutors, and a tutor can be a tutor for multiple ...
2
votes
0answers
87 views

Technical architecture of platform on .Net Core

I'm designing a platform that will run robots developed by others. Basically anyone could implement a IAutonomousAgent and register the implementation on the platform. At runtime, the platform will ...
-5
votes
0answers
38 views

What is the first documented instance of the use of i for iterators [duplicate]

In school/college our first encounter with loops and iterations probably looks someting like this: for (int i = 0; i<10 ; i++;){ // Do Something } And many of us stick to the idea of use the ...
-5
votes
0answers
31 views

How cloud-managed network equipment is done? [closed]

There are cloud-managed devices on the market, like switches/routers/firewalls/etc. In that kind of devices you have little configuration options on the device itself and you manage the configuration ...
1
vote
1answer
92 views

Independence axiom and ideal design explained

I am studying a book about software design called: Nonfunctional Requirements in Systems Analysis and Design which talks about the Axiomatic Design Methodology. This methodology has two axioms. One ...
-1
votes
1answer
171 views

Is it logical to use dependency injection in .net core library project? [closed]

Earlier, we serve with web service but we decide to use dll methods. Because served products are on same machine with common database. So we start to create a library with .net core. This library will ...
4
votes
2answers
262 views

Should dependency injection be used when there will only ever be one version of any class?

I'm writing a number of Selenium test classes that use Helper classes which contain processes that are often reused (ie. accessing a particular page, entering something into a specific field, etc.) ...
1
vote
1answer
23 views

Pattern for schema split across sources

I was not sure how to title this question, but bear with me. My company is building a new product and for it we will use a third-party service (let's call it ENB for short) to be responsible for many ...
0
votes
0answers
50 views

Change Requests Billing

I have a website developed for my client, and he's currently on an annual maintenance billing for the same post development pushed to production, that he'd paid me for the development charges ...
2
votes
2answers
121 views

Risk of NuGet package adding new reference DLL

Had an interesting discussion with our architect. It was related to replacing a plain DLL reference with a NuGet package. His worry was "If it is possible for single NuGet package to add multiple DLL ...
-4
votes
0answers
44 views

How to design an effective mongoDB schema..? [closed]

I want to design an effective mongodb schema for a relational database.I don't know where to start.Can anyone please help me regarding it
0
votes
3answers
104 views

Populate values in a map from a series of function calls

I have the following common pattern that I need to use in an application: Given a list of keys, call a function with a parameter to find values for the keys. The function may return null for a given ...
1
vote
1answer
37 views

How to show relationships of the component containing the interface definition when using ball/socket notation in a UML Component Diagram?

I recently found out that I have probably been using ball/socket notation in a wrong way all the time. Now I am confused by the different ways of drawing interface relationships in two regards (I ...
0
votes
1answer
104 views

Time complexity of an algorithm whose output does not scale linearly with the size of the input

Suppose I have a function CalculateOutput(n) which creates an array of size n and repeatedly modifies this array by iterating through every element from 0 to n - 1 (say this is done in linear time). ...
2
votes
3answers
138 views

Use prepositions in naming verb-phrase functions?

When writing a library, designing a class or extending some existing API, we often need to express actions or relations involving noun entities: "Place the ball in the bin" "Obtain the coat for the ...
0
votes
1answer
41 views

If you use Spring dependency injection does the unit test require some Spring stuff?

I completely understand, I think, how injecting a dependency of a class allows that dependency to be mocked and the class to be tested with the mocked version. What I am not sure about is if you use @...
0
votes
2answers
62 views

Moving single tenant application with queue to multi tenants web application

I need to move a single-tenant web application to a multi-tenant (about 100 tenants) web application. Tenants are going to share the same application but each tenant is going to have its own database (...
-2
votes
2answers
94 views

Python function name convention for “convert foo to bar”, e.g., foo_to_bar, foo2bar

I have a function that converts args given by argparse to a filename: def args2filename(args, prefix): filename = prefix kwargs = vars(args) for key, value in sorted(kwargs.items()): ...

15 30 50 per page