0
votes
0answers
20 views

What layer should contain interactions with external or remote resources which are not strictly data operations?

Assume an application with a layered architecture, i.e. presentation, business/domain/logic, data access: it makes sense to plug access to external APIs in at the data layer if what they do resembles ...
-4
votes
0answers
50 views

Best free alternative to Google Maps API [on hold]

As the title says I would like an alternative to Google MAPS API that does a similar role. It should be cross-plataform. It must allow to assign specific locations in the map, coordinates, such like ...
2
votes
2answers
168 views

When is code considered a domain specific language

Today, an interesting discussion with a colleague. We're going to create a wrapper for WCF's channels, that will handle the Close(), Abort() and Dispose() correctly. This wrapper is to be used instead....
0
votes
3answers
66 views

Choosing an epsilon when comparing floating point numbers across different systems

I am transcribing thousands of lines of computational code from MATLAB to C++. I don't fully understand the math myself, but I can run it with MATLAB, assume it's correct, and compare the results to ...
-1
votes
2answers
50 views

what is the utility to a REST API for SIP trunk's?

Why does Twilio offer: Trunking REST API docs - Provision, configure, and modify SIP Trunks and phone numbers with the REST API. What are the top usages for this API? I appreciate that the ...
2
votes
1answer
326 views

Clean OOP-Design: How to implement single responsibility and no procedural programming

I am currently trying to refactor a piece of C# code that is somewhat procedurally written. I want to make the design clean, object oriented and using classes with single responsibilities. The code ...
1
vote
0answers
48 views

What would you call this design pattern? MVC or PAC

I have been reading and researching about MVC, HMVC, MVP, MVVM and PAC design patterns when I came accross this article by larry garfield > MVC vs. PAC My Implementation: Think of a modular app ...
-2
votes
0answers
22 views

Emitting events from PHP [on hold]

I have a website with that many Offices are connected using Browser as Client. Now I am looking for some kind of idea that if we receive a news for specific office, can we send a message to Client as ...
0
votes
1answer
23 views

Request Caching for Symfony 3 application with > 1 million combination of query parameters

We have a REST Webservice build with Symfony3 and PHP7. The application is served via Nginx and PHP-FPM. The Webservice returns a list of products. Products inside the list are filtered by attributes....
4
votes
3answers
90 views

Algorithm to satisfy given constraints - assigning values from a 2D array

So me and my friend came up with a rather interesting (maybe?) algorithm question but ironically, we are having a hard time solving it. The question goes like this: There is a sale of precious stones ...
2
votes
0answers
31 views

Implementing workflow to an enterprise application

We are a few developers develoing an enterprise project includes several modules and approximately 200 UI resources for our company. Project will be written/programmed in Asp.NET MVC, WCF services for ...
-2
votes
0answers
26 views

Synchronised HTTP proxy [on hold]

This is my first time that I write here, in this forum, and I wanted to to ask for some tips about a project that I am building. Basically it is a HTTP Proxy but it should synchronises the HTML ...
0
votes
0answers
13 views

Collaborative web development with Spring and AngularJS

We're a team of 2, me a backend developer and my friend, a front-end guy working on AngularJS. We're planning to build our new site with Spring backend (which I'll be working on). So far, I've only ...
0
votes
0answers
33 views

How to manage state in MVP pattern?

I am currently using MVP pattern to develop an android application. I have to implement pagination (i.e. on scrolling to the bottom of the RecyclerView I need to fetch new data). So what is the best ...
2
votes
1answer
84 views

How to keep IDs in sync when using Factory?

abstract class Product { public abstract Product createProduct(); ... } class OneProduct extends Product { ... static { ProductFactory.instance().registerProduct("ID1", new OneProduct(...
-3
votes
1answer
103 views

How do I remove all instances of a key from a JavaScript Object? [on hold]

I've got a Java Script object like this: let obj = { selected; true, level1: { level2: { selected: true } } level1: { selected: true, ...
0
votes
1answer
11 views

what is a better approach in replicating data from table to another? triggers or a third party ETL tool?

We have multiple tables which we need to retrieve data from and dump to one centralized table. Currently what we are doing is running an ETL job made from Pentaho, retrieve the records from the source ...
-3
votes
1answer
37 views

unable to find the text file to read in java eclipse [on hold]

import java.io.*; import java.util.Scanner; public class FileQuestion { private static Scanner kb=new Scanner ("System.in"); public static void main(String[] args) throws FileNotFoundException { ...
0
votes
1answer
34 views

Is PCRE execution time primitive recursive or recursive?

In other words, is it possible to create a PCRE "regular" expression which takes Ackermann(m,m) time for an m length string?
1
vote
1answer
40 views

Specialized API endpoints or multiple calls to generic resources?

This problem came up while designing the API for a SPA web application, which communicates with the server via AJAX. On one page the user, who is creating a list of people to invite to an event, has ...
2
votes
4answers
90 views

Best practice for RESTful API calls with variations

How do I name API endpoints that serve the same entity in different ways and still adhere to the RESTful API guidelines? Let's consider I'd like to get a customer with ALL his details. I just ...
0
votes
0answers
18 views

Automating the deployment of a web application to a shared host

I was not really sure in which SO community I should ask this question, so I am asking it here. I have a basic Angular web application, and I am ready to deploy. The app has no backend to deploy (I ...
-1
votes
1answer
57 views

turn integers from row to column .txt [on hold]

I have a huge .txt file with 5 million integers in it. Iwant though to change the integers from meing in many rows to be in all 5 millions in 1 column. I don't have programming experience but have ...
0
votes
1answer
37 views

Memory allocation while calling a sequence of functions in Java

A method getReminder takes two integers and returns r = (a^5)%m. This method relies in two BigInteger numbers BigInteger.valueOf(a).pow(5) and BigInteger.valueOf(m), but BigInteger was never declared....
1
vote
2answers
107 views

Should I document overloaded operators in C#?

So I have been working on a C# Matrix library. I've been documenting it really good so far. The thing is I don't know if I should document my overloaded operators, I mean, it is kind of obvious, isn'...
2
votes
2answers
61 views

How to create an efficient implementation of a dictionary of synonyms?

How do I create a dictionary of synonyms that is efficient in terms of retrieving synonyms of a word? Basically, I want to use some sorts of data storage to store groups of words, and enable an end-...
2
votes
2answers
155 views

Why does the development team of IntelliJ IDEA‎ store its dependencies as jars (e.g. JUnit) inside their cvs?

The very popular IntelliJ IDEA‎ has currently saved a lot of dependencies as actual jar files in their git repository e.g.JUnit, which I don't understand. Build tools like Maven provide excellent ...
-3
votes
0answers
67 views

Is it proper to hard fork or rather soft fork an abandoned repo on Github? [on hold]

So I, along with a few other collaborators am attempting to fork an abandoned Github, but relatively popular repository on Github. The question being is whether or not we should "soft fork it", by ...
2
votes
6answers
279 views

Should I be doing checks on data that I'm supposed to be able to trust?

I am working on the frontend of a product, and it is now broken due to bad data from the backend. This can be caught internally before it gets anywhere close to production, but we end up fiddling ...
-3
votes
0answers
28 views

What's a good way to get introduced into TFS and MSBuild? [on hold]

I'm to the point where I need to make TFS do some custom stuff. That whole world is seeming to be pretty opaque. Between process XAMLs, .targets files everywhere, what's TFS and what's MSBuild, and ...
4
votes
1answer
85 views

Alternative for eval() in javascript for expression evaluation

I'm looking at the alternative that can substitute the use of eval() and new Function() javascript techniques. I'm developing a solution build with javascript and the platform on which it is built (...
-7
votes
1answer
134 views

In the scope of C, what is the significance of '->'? [on hold]

I'm looking at old command-line cdplayer software for linux. This software was written in 2006, but won't compile with the latest GCC. I've taken to weeding through the errors and trying to patch ...
0
votes
0answers
27 views

Design from API documentation to code

I have a full API documentation made of uris, request and response bodies ready to use. Uris are all externals, and I have to first visit an entry point that'll give me a token, and then use that ...
1
vote
1answer
94 views

Functional Programming in PHP

Modern PHP is mostly written Object Oriented. Other than the fact that there is inertia towards the Object Oriented in the PHP community, is there anything about the language itself that would make it ...
1
vote
1answer
44 views

How to generate random Boolean functions in Algebraic Normal Form in Python?

I am looking at A SAT-based Public Key Cryptography Scheme and got inspired to challenge myself to write an implementation of this Cryptography Scheme on Python. A part of the cipher encoding would ...
-1
votes
2answers
122 views

Is main() function better on top of all other functions? [on hold]

My college professor told me that main functions should be defined on top of other function definitions. We should use a forward declaration in order to accomplish this (we use C at that time). So yes,...
0
votes
2answers
80 views

Structure of RESTful Service with Java Spring for Beginner

I am relatively new in terms of Java web development skills. I have a project that I think would make a good candidate for a RESTful service from what little I understand about APIs. I'm trying to get ...
0
votes
1answer
21 views

Find whether or not current location is near other locations with given radii

tl;dr: "Am I, with any given location, inside of any number of circles with varying radii" Assume you have a database full of locations (coordinates) with arbitrary radii. Now the user enters and ...
-2
votes
0answers
39 views

Private chat window in PHP chat [on hold]

I am currently building a chat as a personal project, and I have no idea how to solve this problem. I need the possibility to make a privat chat window, for private chats between users. However, ...
0
votes
0answers
17 views

Volley with AsyncTask

I'm developing an Android library so that other apps would use, which is a kind of an API 'driver', to be used with an external services API and contains also UI components. On most of the requests ...
0
votes
2answers
112 views

Where/how to store program data?

This may be more of a software design question - but I've been working on my first "real, non-academic" Java project and have recently learned about good code practices (such as breaking down methods ...
0
votes
0answers
36 views

coming from java to nodejs whats the convention for error handling logging? e.message or e.stack?

I come from java, when I got an expected error I printed stack traces. I'm coming now to work on nodejs (never really worked on javascript). and in the nodejs project which I need to maintain (...
0
votes
0answers
16 views

How to track unread messages for a user in a multi-channel chat application

I'm building an multi room chat application similar to gitter/slack as a side-project. The database schema i have so far is: user table (userid,username) chatRoom table (roomname etc) user-chatroom (...
0
votes
1answer
123 views

Are all boolean arguments flag arguments, and thus a code smell?

Martin Fowler describes the Flag Argument code smell as a "kind of function argument that tells the function to carry out a different operation depending on its value". Answers to Is it wrong to use ...
1
vote
1answer
34 views

Seperate codebase for responsive website and mobile apps?

I made a simple responsive single page web app (about 5 views) to replace our old jsf web application using angularjs+bootstrap. Now looking into frameworks like ionic, cordova and trigger.io. what I ...
-2
votes
0answers
33 views

Is it possible to know the names of functions that were called by a particular unit test in Javascript code coverage? [on hold]

I have a javascript project. I want to know the names of functions which were run by the unit tests. Is there a coverage tool that can provide this information? If no, how can I achieve this on my own?...
2
votes
3answers
89 views

MVVM Commands - one command for everything or multiple commands?

In my last company, on handling view commands, in the ViewModelBase there were one central command implemented, like public ICommand ToolCommand { get; set; } And in the ViewModelBase, it's been ...
2
votes
2answers
92 views

Idempotency and concurrency in a REST web service

Is concurrency and idempotency mutually exclusive for a REST web service or can it be done so a service can be both concurrent and idempotent? Using a optimistic lock methodology like using Version ...
-2
votes
2answers
38 views

ArrayList Dynamic remove and add for socker client [on hold]

I have one ArrayList in Java and a save the socket and one unique id. When someone client is add in the ArrayList, the unique id i have is NOT the same with position in ArrayList. When someone ...
1
vote
2answers
53 views

Separating save logic from WinForm to make it reusable

I have a Windows Form for creating configs. It has around 50 fields of data, which represent a group of entities, that I need to capture when the user presses the save button. Currently, on the press ...

15 30 50 per page