All Questions
0
votes
0answers
3 views
Is it bad practice to use a Filter to modify HttpServletRequest by calling another API
I am using Java, Spring and Jersey.
I have a REST api (say API_A) which receives a query parameter called q and sends this to another service (API_B) to get the response.
Whenever a request comes ...
0
votes
0answers
13 views
is there a way to know the type of web based version control application from a git url?
Background
I'm researching the ability to add some services on top of git web hosts (ie github, gitlab, bitbucket etc, I'm not even sure what they're called, I borrowed that term from the github wiki)...
-1
votes
0answers
17 views
How to implement badge awarding like stackoverflow does
I'm not quite sure if softwareengineering.stackexchange is the right place to ask this question so feel free to flag but what's the best practice of implementing badge awarding like stackoverflow does?...
-4
votes
0answers
25 views
What is the meaning of architecture definition in software development methodology? [on hold]
i have a research about software development methodology, and im still confused about what is the meaning of architecture definition. Is it same or not with software architecture? or is it more about ...
2
votes
2answers
54 views
Sharing DAL Code - MicroService v Shared Library
What is the best option for sharing DAL code.
We have a nice c# library that wraps SQl.Data.SqlClient methods like .ExecuteNonQuery, ExecuteReader, ExecuteScalar etc. Its adds logging and helper ...
-3
votes
0answers
36 views
How to design an architecture for a web-based project [on hold]
I need to develop a web-based project: 1 v 1 online game. Imagine that this game is the chess.
I know clearly the components that I need. Here is my classes:
class Client; // socket-client: connect ...
-2
votes
1answer
24 views
How to deal with different model types [duplicate]
Background: I need to render the same information in two text formats. To do this, I have a set of model classes that store the appropriate information. I then need to render that same information ...
1
vote
1answer
50 views
Can I dual license my code under the AGPL and the CAPL? If so, how?
I'm beginning work on a web application at the moment which ideally I'd like to dual license under the terms of the AGPL and the CPAL. This would mean that anyone using the code in their own web ...
0
votes
0answers
12 views
ASP.Net Core: ViewComponent vs EditorTemplate/DisplayTemplate vs @inject
So I was searching for a good way in ASP.Net Core to create some "controls" that render into a view. So far I found there are 3 options, and I wanted to get some feedback on them.
ViewComponents: ...
5
votes
1answer
62 views
Detecting plagiarism – what algorithm?
I'm currently writing a program to read a body of text and compare it to search-engine results (from searching for substrings of the given text), with the goal of detecting plagiarism in, for example, ...
4
votes
2answers
47 views
Dealing with downtime in a microservices deployment
Company is new with microservices. Conceptually, it makes a lot of sense, and really describes SaaS applications as the true enterprise grade apps that they're meant to be. I've had applications ...
2
votes
6answers
116 views
Is it possible to keep logging code completely outside the business logic?
With the help of AOP, I can remove the logging code from my business logic. But I think it can only used to log simple things (i.e. logging method entry/exit and parameter values).
However, what if ...
0
votes
1answer
31 views
How to manage multiple views in a single page JavaScript Application without a 3rd party library
I am building a JavaScript application that makes AJAX requests to a PHP API Back-end to load JSON data for different views.
The app UI consist mainly of a left sidebar menu which has items loaded ...
1
vote
1answer
25 views
What are the best practices to ensure that Code Migrations work well in a team environment where there are multiple databases?
We're just starting off with using Entity Framework Code First approach and I'm playing with the Code Migrations system.
So we were wondering, are the migration files intended to be treated as ...
1
vote
1answer
39 views
I need to find a set of hierarchical symbols that can represent input binary data in near optimal space. What algorithms can I look into?
I have a stream of binary data. Assume no prior knowledge about the expected pattern in input data.
The symbols can represent binary data or other symbols, hence hierarchical.
The output should ...
1
vote
0answers
21 views
When should an iOS app create a new NSURLSession vs. reusing an existing one?
I'm migrating my team's app to use NSURLSession instead NSURLConnection's because of the numerous now-deprecated APIs in the NSURLConnection family of classes and protocols. As part of that, we need ...
5
votes
7answers
390 views
How do I make the case for expensive programmers?
In our company, we need to do many seemingly not complicated things, like develop Mobile UI.
Let's say the experienced programmers costs us 4x as much as the beginners.
Both are basically able to ...
-1
votes
1answer
69 views
Is it required to disclose source code for custom Qt software? [on hold]
I was hired to develop a custom Qt application for a customer, but I'm concerned about the licensing.
My software will not be publicly distributed and it is going to be used exclusively by this ...
2
votes
0answers
47 views
Jenkins - If a build fails deploy the artifacts of the last successful build [migrated]
Is it possible with Jenkins to deploy the artifacts of the last successful build if the current one fails at any point? If so how?
I'm currently using rsync to deploy my files from the workspace as ...
5
votes
2answers
130 views
How to cleanly separate different parts of a software application?
I am designing a new application that deals with a lot of business logic.
To avoid the usual entanglement between different application layers that often sneaks into such systems over time, I want to ...
2
votes
1answer
28 views
Jenkins: rsync from built workspace or pull from original repository and build again
I'm currently setting up a Jenkins pipeline for a web application and am wondering which methods of deployment are most common or recommended.
Currently Jenkins polls the SCM for new commits and ...
4
votes
4answers
133 views
What is the difference between software deployment and software release?
I am coming more from the web development angle. We build a module, test it and then deploy it. Some people call this last step (deploy) as 'release'. What's the difference? or are they the same ...
0
votes
1answer
61 views
Entity framework vs pure ado .net in calling stored procedure in an enterprise project
There is an enterprise project, which all the business implemented in databases and in the stored procedures, and web API is just like a light wrapper which get the request and deliver it to proper ...
0
votes
0answers
26 views
Firebase multi-tenancy with multiple users [on hold]
I'm looking at Firebase as a backend for an MVP multi-tenant app. The app will be fully white labelled for each tenant, with each tenant signing up it's own user base. There will definitely be ...
2
votes
1answer
67 views
Representing hierarchical data (C++)
Say we have 2 Classes: Account and Contact like this:
class Account {
string Id;
string Name;
}
class Contact {
string Id;
string FirstName;
string LastName;
}
An account can ...
0
votes
0answers
34 views
Should we expect a synchronized version of localStorage?
Right now we have the localStorage api and it works great. But I'm wondering, mainly because I have a web application that might take advantage of this, if there will be a web/cloud/synchronized ...
3
votes
2answers
128 views
Are all deterministic functions free of side-effects (and vice versa)?
I'm reading about pure-functions in functional programming and am wondering, whether a function being deterministic implies that the function is also side-effect free? (and vice versa?)
-1
votes
0answers
37 views
JSON - How should I store objects that can be randomly re-ordered with drag and drop? [on hold]
I need to create a list of cards that user can drag around to reorder, that will be saved as a JSON object. What is the right way so store the order of such objects?
-3
votes
2answers
85 views
What are the roles of a Quality Analyst in Scrum [on hold]
What are the roles of a Quality Analyst in Scrum for the following ceremonies:
Sprint Planning
Daily Standup
Sprint Review
Sprint Retrospective
I know the basics but I want to hear from ...
2
votes
0answers
28 views
Communication between Angular directives and their parent controller
I'm trying to provide a convention, or standard, for a parent controller to communicate with a directive in Angular.
Basically the directive will have a "settings" object containing callbacks and ...
1
vote
0answers
33 views
Approach to perform a calculation over a large dataset and calculate mean of scores
I have a table/collection called scores and it has 3 relevant identifiers based on which calculation need to be done.
sample
{
score : Number,
company : String,
zone : String,
unit : String,
...
-5
votes
0answers
64 views
How is modelling software built? [on hold]
I have been a console programmer for years developing countless server applications, and I want to know more about GUI programming.
I understand from this answer there are 2 types of GUI applications:...
2
votes
1answer
56 views
When do I need to create my model classes?
Let's say I have an application which eventually saves and retrieves it's data to/from DB. For the sake of explanation let's imagine the application deals with students. I have a complete API that ...
4
votes
2answers
72 views
Designing Consistent Invoice Module
I have come to a struggle to design invoice generator module in my project. I have following design;
Once an invoice is generated , it will be stored in database. In case user need to regenerate an ...
-3
votes
0answers
51 views
How to secure a Java desktop application from reverse engineering? [duplicate]
I am currently working on a desktop application written in Java. It has costed us years of research.
Beside obfuscation, is there a better way to protect it from being reverse-engineered?
4
votes
1answer
79 views
Design of asynchronous component
I'm trying to design an asynchronous component. Requirements on this component are :
Component might receive events at any point in time
Component might start a long-running operation and wait for ...
-2
votes
0answers
23 views
How to sign a certificate using an externally provided CSR in Azure Key Vault?
For our compliance requirements, it is mandated that the certificates on the devices are rotated every day/pre-defined period. Also, the certificates should be signed via a provider certificate (which ...
-1
votes
1answer
51 views
Is it a good practice to separate one function into one file ?
For example, lodash library here separate each function into each file ?
Since this is a popular library and this library organize their files into this way. there must be based on some good practice ...
5
votes
0answers
50 views
What is the intended or target organizational size for Large Scale Scrum (LeSS) and Scaled Agile Framework (SAFe)?
The Scrum Guide defines a single unit that consists of a Product Owner, a Development Team of 3-9 members, and 1 Scrum Master for somewhere between 5 and 11 members. I've seen instances where the ...
2
votes
0answers
34 views
Is it possible to method-inject an object call?
Consider this example of method injection:
static void SaveEmail(Func<string> getEmailFunction)
{
dbcontext.SaveEmail(getEmailFunction());
}
static string GetEmail()
{
var frmUser = ...
1
vote
3answers
61 views
How to handle custom metadata in XML?
Backstory
I have an XML type document (SSML, which is used forText-To-Speech), which will be used to generate audio files when ssh transferred to a remote server. As such, I will need to include ...
3
votes
1answer
72 views
Visitor pattern. Operating on the nodes of a tree
I am working with jQuery like elements from the cheerio library to manipulate SVG images.
These objects represent XML nodes and have a hierarchical internal structure.
I am writing a function (in ...
0
votes
0answers
20 views
Runtime: Bad implementation or Language/Hardware Problem [migrated]
I've implemented InsertionSort and SelectionSort in PHP and tested it with an array of 20.000 unique integers.
To calculate this it seconds needed for insert and second for selectio-sort. That's a ...
5
votes
2answers
218 views
C# Possible method name conflicts with optional parameters - why it is not forbidden? [on hold]
Let's have a simple class, and main method:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
namespace Rextester
{
public class Program
{
...
1
vote
1answer
104 views
What would it be the best OOP approach for comparing lists of objects?
I am currently working on an algorithm for comparing two list of objects. Something like this:
I have a lists of sales:
class Sale
{
protected $client;
protected $products (ArrayCollection ...
0
votes
0answers
26 views
WordPress Access Control Plugin: Which architecture?
I am developing a WordPress plugin that should block access to pages for certain visitors. It also hides such pages from menues and lists as to not tempt the visitor into requesting a page he cannot ...
3
votes
1answer
62 views
How to maintain database script for continuous delievery?
We are working on one legacy framework and it is continuously evolving.
Problem 1 : If somebody want to run the application with latest code then he/she spend lots of time in doing so (like somebody ...
3
votes
1answer
64 views
Aggregation simple code sample - is this correct?
Please excuse the poor example/analogy, I'm only interested in the code sample.
I have a Dinner_Chair class (inherited from Chair class). It is as follows.
Dinner_Chair = class(Chair)
Private
...
48
votes
8answers
7k views
What's actually wrong with an endpoint returning HTML rather than JSON data?
When I first started learning PHP (about 5 or 6 years ago) I learned about AJAX and I went through "the phases":
your server returns HTML data and you put it inside a DOM's innerHTML
you learn about ...
3
votes
1answer
78 views
How should I run multiple instances of my Docker project on one server?
I have built a blogging application, running in several containers that are managed with docker-compose.
Now I'm wondering - how does one run multiple instances of such application on one server?
I'...