0
votes
1answer
104 views

Accessing data from private API (with Basic Auth credentials) using Angular JS

I have been tasked with connecting an existing Angularjs app to a third party service via API using Basic Auth credentials I got from the third party website. I am not as experienced with Angular and ...
0
votes
1answer
9 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'...
0
votes
1answer
25 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-...
-1
votes
1answer
56 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 ...
-1
votes
0answers
5 views

Connection Refused Error while trying to open Python Console in PyCharm

I am new to PyCharm/Python. Installed successfully PyCharm (Communities edition) on MAC ensured Python is installed and available (Version 2.7.11). Issue I am facing is when I am trying to open ...
-4
votes
1answer
28 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 ...
-5
votes
0answers
24 views

Question about java arrays in eclipse

how would i go about doing this question?? Given the following array declarations String[] friends = {"Mickey", "Minnie", "Donald", "Goofy", "Pluto", "Daisy", "Roadrunner"}; String[] birthdays = ...
-2
votes
2answers
22 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
votes
2answers
46 views

How to change an specific part of an image colour? [on hold]

I'm not so sure whether this questions fits here, but I need help in this case, cause I'm searching for days to apply this. I have a website of rugs and carpets, in this website I would like ...
-3
votes
0answers
41 views

List of programming languages which compile to other [on hold]

As the title says I want list of programming languages which are compiling to other(or their target platform). Example is Haxe, which compiles to C++, Java, C#, Python, PHP, JavaScript, Lua and others....
0
votes
2answers
77 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 the backend team broke the frontend because of some bad data being returned to us. This can be caught internally before it gets anywhere close to ...
-1
votes
0answers
36 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 ...
1
vote
2answers
42 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 ...
51
votes
10answers
8k 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 ...
-2
votes
0answers
21 views

A JS linter/beautifier than enforces braces around single statement blocks?

I recently started using jshint to lint our javascript code before it is committed. However I found that I could still do this: if (condition) statement; I'm trying to find a linter that will ...
2
votes
0answers
32 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 (...
1
vote
1answer
23 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 ...
-2
votes
0answers
20 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 ...
23
votes
8answers
3k 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 ...
-7
votes
1answer
80 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 ...
1
vote
1answer
71 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
votes
1answer
94 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 ...
0
votes
1answer
19 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 ...
3
votes
1answer
37 views

Graph database keeping historical relationships

I'm starting the modeling of the following problem: I have many clients (millions) that interact in a network forming a graph. At the highest granularity of my business problem, each realationship ...
2
votes
3answers
404 views

Should conditional logic be always coded via type system where possible?

I have a choice. Option 1: public class Sample { bool IsRelevant { get; set; } } Option 2: public class Sample { } public class RelevantSample : Sample { } Is there a clear well-known rule ...
0
votes
0answers
18 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
votes
2answers
139 views

Lock threads or not lock threads?

I have an application (full-stack) that is used millions of times concurrently. Some vital application properties are managed on the client side (at the time it seemed to be the simplest approach to ...
2
votes
4answers
150 views

Euler's sum of powers conjecture. How to efficiently search counterexamples?

I tried to repeat this results: 27^5 + 84^5 + 110^5 + 133^5 = 144^5 (Lander & Parkin, 1966) and 95800^4 + 217519^4 + 414560^4 = 422481^4 (Roger Frye, 1988, 110 hours this is the only ...
-1
votes
2answers
82 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,...
6
votes
6answers
827 views

trust factor in code review

How much should a reviewer trust the coder who submits the code for review? I always have that dilemma of whether I should go test of the changes proposed or should I trust the submitter that he ...
-2
votes
1answer
116 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 ...
0
votes
0answers
13 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
94 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
27 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
0answers
29 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 (...
2
votes
1answer
47 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
0answers
26 views

Private chat window in PHP chat

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, ...
2
votes
3answers
71 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 ...
-3
votes
0answers
20 views

Either overlaying or deleting button text after it is clicked [on hold]

For a game I'm making, I want the player to have a choice of two (or more) buttons, and when a button is clicked, a new screen appears. However, the button text still remains when it is clicked. I've ...
0
votes
1answer
110 views

How can I avoid duplicating information in this scenario?

I have a Data class that can be placed inside a DataCollection class that can be placed inside a DataCollectionCollection class. Kinda like an egg can placed inside a box that can be placed inside a ...
0
votes
0answers
15 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 (...
2
votes
2answers
87 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 ...
0
votes
1answer
29 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 ...
1
vote
0answers
26 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 ...

15 30 50 per page