2
votes
4answers
86 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
52 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
36 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
99 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
60 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
126 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 files in their git repository e.g.junit, which i don't understand. Build tools like maven provide excellent ...
-3
votes
0answers
64 views

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

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
269 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 ...
-2
votes
0answers
24 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
64 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
129 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
91 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
39 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
115 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
1answer
43 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
36 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
15 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
110 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
34 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
118 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
31 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
87 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
37 views

ArrayList Dynamic remove and add for socker client

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 ...
-2
votes
0answers
27 views

XSLT-like alternative(not necessary XML, JSON etc) for data transformation/mapping? [on hold]

I need a declarative language/DSL to express data structures and data transformation/mapping. So far XSLT is the only I could find but unfortunately it seems too convoluted and complex for data ...
-2
votes
1answer
40 views

What should be the best approach to implement a popular product sorting in any e-commerce system?

I'm working on an e-commerce application and need to implement a sort by panel like (Popularity, Price Low to High, Price High to Low, Discount and New Arrivals). But I'm confused with sort by ...
-3
votes
0answers
25 views

Transparent ListBox can't see items [migrated]

I created new control then inherit listbox ... as follow: Public Class TransparentListBox Inherits ListBox Public Sub New() MyBase.New() Me.SetStyle(ControlStyles.UserPaint, ...
-3
votes
0answers
36 views

What to choose when designing Dropbox-like infrastructure?

Sapiens, I seek thy help! We're about to begin building the backend infrastructure of our mobile application that is going to store (and organise) files quite a lot like Dropbox. While I did ...
1
vote
1answer
37 views

Unit testing with external packages or assemblies

I'm unit testing a class which has two dependencies, both of which are external packages (I'm using C# so these are NuGet packages, AutoMapper and CompareNETObjects). (NOTE: Both are just utilities,...
-3
votes
0answers
39 views

Help with SIMD algorithm implementation [on hold]

Hello guys i am really stack i need to implement matrix multiplication algorithm using SIMD but I don't know too much of c or c++ and i am having a bad time looking for a library with good ...
30
votes
9answers
5k views

How to cope with different development styles (top-down vs. bottom-up) in a team?

Say you've just started working in a very small team on a {currently relatively small, though hopefully bigger later} project. Note that this is an actual project intended to be used by other ...
2
votes
1answer
50 views

Diferences between Test vs Spec

I'm having a concept problem at this point & I can't find any info about the diferences between Test (UnitTest, etc) vs Spec (Rspec, etc). As far as I know, specs is into Integration tests and ...
-2
votes
1answer
127 views

Why does an expression for a Javascript function that returns void still execute?

I'm so confused about how Void operator (in javascript) works and what is it's role. as i read, Void is an operator that evaluate an expression without returning a value, but by executing that script ...
-4
votes
1answer
34 views

What would be an appropriate algorithm to solve mixed data range problems

Generally what kind of algorithm is used to solve when dealing with overlapping data sets . In the below problem set, we can see that region (point 2 to point 3) is common to both statement A and ...
-4
votes
0answers
46 views

What to look for in a GPU computing card [on hold]

I can't seem to find any non-biased resource online, but if I'm only interested in single precision GPU computing, should the only thing I look for be the number of FLOPS the GPU is capable of ...
1
vote
1answer
43 views

Open source transitive dependency licenses

Suppose you have top level Dependency A. Dependency A is licensed under MIT. Dependency A packages Dependency B as part of its distribution. Dependency B is licensed under GPL. In order to use ...
0
votes
2answers
133 views

Why is having a NotImplementedException a good thing?

C# has made a language feature of the NotImplementedException. It's added to a lot of auto-generated code, such as event handler stubs: // Auto-generated private void TextBox_MouseDown(object sender, ...
1
vote
0answers
30 views

Find longest match from a set of possibles, given a string

I’m implementing glossary/dictionary in Javascript. It is populated with a set of terms and their definitions internally, then gets handed jQuery elements and searches the HTML, replacing any of the ...
0
votes
0answers
34 views

Is it good practice to code entire business form as single component (control)?

Is it good practice to code entire business form as single component (control) and then proudly put it on window/form as the final step in development? Of course, this form can involve some other ...
0
votes
0answers
48 views

Linked list pop_back implementation ignores pointer-to-nullptr [migrated]

Let's assume I'm only allowed to use new and delete and no smart pointers in my implementation. I am not using sentinel nodes. Below is my implementation for pop_back: void sLinkedList::pop_back() { ...
76
votes
11answers
13k views

What do you do when code review is just too hard?

OK so a lot of code review is fairly routine. But occasionally there are changes that broadly impact existing complex, fragile code. In this situation, the amount of time it would take to verify the ...
0
votes
1answer
47 views

Distributing an application in 2 or more servers

This is probably a common question and I've been reading a lot about this, but I can't look into a solution. Let's say I have an enterprise application in one glassfish server located in New York. ...
0
votes
0answers
43 views

How can I disable the mouse from a hotkey within full-screen games?

In gaming, having to lift the mouse off the desk to reposition it constantly is awkward, slow, and inconvenient. I want to be able to press a button that stops my cursor from moving when I move my ...
0
votes
1answer
55 views

Distributing Fortran bindings for a project written in another language

I'm writing the Fortran bindings for a static library written in C++. This will be distributed with the library (both open source). The bindings consist of modules containing interface blocks and no ...

15 30 50 per page