2
votes
2answers
327 views

Relational vs Graph Database for (initially) moderately-sized network

We're developing an application whose data domain (or at least 90% of it) can be modeled effectively using a relational database. We've been using PostgreSQL since the beginning and have had no ...
-2
votes
0answers
19 views

Use of cordova plugin RF ID scanner

How can i use RF-id scanner plugin to read the data? $scope.callScan = function() { try { rfidscanner.radar(winScan, failScan); } catch(err) { alert("Error: " + ...
1
vote
3answers
76 views

Updating all records in MySQL table while still available to the user

I have this 'table A'. It contains two columns; email and email_alias. A sample is below: ===================================== = email | email_alias = ========================...
-5
votes
0answers
57 views

Is there great practical collection of rules for Front End? [on hold]

I'm going to create some kind of "standards" of Front End development (from simple "PSD to HTML" tasks to entire single page applications). It should be overall and legible, now I have some basic ...
-2
votes
0answers
17 views

What to do after bundling my application [on hold]

As of right now I'm trying to deploy my web application, written in angular 2, tested in plunker, to tomcat. I've been searching arround but I've seen practically anything that seems like a reasonable/...
2
votes
2answers
121 views

Concept to differentiate between html tags and angle brackets

I have an issue with a client's requirement that wants to import a string of html text within a csv document. For example, a sanitized version of one import line: "IDNumber,TextIdentifierNumber,<...
1
vote
1answer
40 views

SQL queries in integration tests

Current situation I have a situation that I find frustrating: the integration tests in my project (a RESTful API) contain both API HTTP calls and SQL queries. Whenever an API call is made that writes ...
2
votes
3answers
302 views

Pattern to use (if any) to co-ordinate loosely coupled classes with strong interdependencies

I have a collection of cooperative classes whose behaviors are interdependent upon one another. But I wish to keep them loosely coupled, so I've created appropriate interfaces. I want to determine an ...
2
votes
3answers
76 views

Does it make sense to validate data taken from the database?

This is intended to be a general language-agnostic question. It is written around a weird example simply because I could not find a better way to ask. Also, the "pseudocodes" provided look like a ...
1
vote
0answers
20 views

How to handle unit tests with collaborators and side effects?

We're in a project that has quite a lot of code and while in general we have a good test coverage and things work out pretty well, I noticed that our tests grew more and more complex over time up to a ...
0
votes
3answers
110 views

Can I easily parallelize this script?

I have a script that compares in some way each line from file1 and file2, and outputs the lines if there is a difference. I want to make it faster - right now it's in Python. I could use threads, but ...
9
votes
6answers
1k views

Should I use title case in URLs?

We are currently deciding on a consistent naming convention across a site with multiple web applications. Historically, I've been an advocate of the 'lowercase all the letters!' when creating URLs: ...
0
votes
0answers
28 views

DDD: Where to place domain event handlers?

Could you tell me your opinion that which layer is the right one to place domain event handlers in DDD? For example, I have application service to add a new contract and I'd like to send an email ...
0
votes
1answer
71 views

Constructor Chaining vs Similar ones

I have the following constructors: public Class1() { this.Variable = new Variable(); } public Class1(Variable vari) { this.Variable = vari; } Which can be rewritten as: public Class1() ...
1
vote
0answers
60 views

Java redeclare inherited Interfaces?

While working on a small class called FractionNumber I found asking myself if I should implement an interface that I am already implementing. Sounds stupid I know but bear with me. My class ...
2
votes
2answers
77 views

How do I know if I have to care about thread safety?

I don't know much about how computers work internally, so I also don't know much about multithreading, and when it takes place. I know it is important in databases or web applications and such, where ...
2
votes
1answer
21 views

Where to store configuration URL variable in Rails?

I have an external ecommerce link that varies based based on environment (testing and production systems). Where should it go in Rails? Possibilities include: a conditional directly in the ...
-4
votes
0answers
24 views

Best Sites to learn Java [on hold]

What are the best sites to learn Java Spring
0
votes
2answers
104 views

Including a GPL-licensed library through a CDN

I'm planning to use Flickity in my MIT-licensed open-source JavaScript project. The license for open-source usage is GPL. Can I link the file via a CDN into my project, or is this considered a "...
2
votes
1answer
72 views

Unique Identifiers for classes - Java with Spring

My use case requires me to implement multiple validators which implement the interface: public interface Validator { boolean validate(Object o); } Based on the business group of the Object o, a ...
57
votes
1answer
18k views

MIT vs. BSD vs. Dual License

My understanding is that: MIT-licensed projects can be used/redistributed in BSD-licensed projects. BSD-licensed projects can be used/redistributed in MIT-licensed projects. The MIT and the BSD 2-...
-3
votes
0answers
40 views

Optimizing cartesian product using keys in spark

To avoid computing all possible combinations, I'm trying to group values according to a certain key, and then compute the cartesian product of the values for each key, i.e.: Input [(k1, v1), (k1, ...
0
votes
1answer
32 views

Read/Write third party SQL Server database

One of my customers has a licensed software for business management and uses a SQL Server as database server (The database is open and I can run queries). They have a need that the current software ...
-3
votes
2answers
129 views

What is well written code? [on hold]

Is code that runs fast but written with a bad and hard to understand syntax, good code? Is code that runs slowly but written with a good and easy to understand syntax, good code?
1
vote
1answer
18 views

ASP.net using Resource (resx) for Configuration

Let me start with the fact that I'm prepared for this question to be closed as opinion based, but I am going to attempt to phrase it in such a way to keep it less based on opinions. The Short Version ...
4
votes
0answers
57 views

In an enterprise architecture, where is Service Locator most appropriately used, and why?

I'm trying to implement the Service Locator pattern. In the below diagram is my references between projects (.net projects), each box represents a project. The arrows indicate the dependencies. I ...
1
vote
1answer
113 views

What would the best way to design a giant API wrapper class with multiple 'sections'?

Here's the problem I'm trying to solve: There's a rather large API I'm trying to write a wrapper class around. The simplest approach would be to make one class with a method representing each ...
0
votes
1answer
45 views

database architecture for ecommerce app

I’m creating an app that allows users to post, sell, and purchase items. Every item has a count integer attribute that is set by the initial user and which is reduced by n with each purchase. When ...
-3
votes
1answer
66 views

Difference Between `int static array[]` and `int array[]`? [on hold]

I was to program a code for which i have to make a array to store more than million elements . But when i did it , it cannot store more than 120 thousand element so i read somewhere that if i instead ...
-3
votes
0answers
44 views

I'm trying to write a program to compare one number to another [on hold]

I'm a student just learning Python and I'm hoping someone out there can take a look at what I've got for comparing one number to another. Here's the actual assignment: For your assignment you must ...
0
votes
2answers
81 views

When should class diagrams, data flow diagrams, and flow charts be made?

When should class diagrams, data flow diagrams, and flow charts be made? After making classes or before making classes? Should data flow diagrams and flow charts be made all the time in all the ...
106
votes
20answers
5k views

Project Manager that wants to lock in time estimate with a signed contract

At a previous employment, a project manager (PM) wasn't satisfied with the delivery time of the code on a project I was on. I was told by my project lead that that the PM was considering having me ...
-3
votes
0answers
25 views

Not getting output in alphabetical order in listview and also how to set phone call feautre at every item in the listview? [on hold]

I am trying to pull the contact numbers from phonebook to a listview in my android app. But even after making changes in the 'query()' the problem is still the same that is names in list are not in ...
-1
votes
1answer
41 views

Designing an application with safe paralleled tasking

The title may have been a little vague... I am working on a piece of software that is designed to perform one task. I would like this task to work in parallel, allowing for multiple asynchronous ...
29
votes
10answers
19k views

How to check if 4 points form a square?

Assume I have 4 points (they are 2-dimension), which are different from each other, and I want to know whether they form a square. How to do it? (let the process be as simple as possible.)
0
votes
6answers
255 views

Dealing with a variable that is a number, but has greater meaning? [on hold]

I've been working on some embedded code that handles a Bluetooth Low Energy (BLE) radio. BLE has 40 channels, numbered 0 through 39. One function for the radio driver takes in the channel and sets ...
0
votes
1answer
152 views

Given an array of number, how to calculate to a target value

Chatting with a friend about a game we used to play, and thinking how to implement it in code. Here are the rules: Given a list of number e.g. {1,2,3,4} Try to use all the numbers from the list to ...
6
votes
0answers
136 views

App opening standard browser instead of active browser

Say you have a smartphone with two browsers, DefaultBrowser and OtherBrowser. You visit the webshop by opening Otherbrowser, and proceed through the cart steps At the end, you go from OtherBrowser ...
39
votes
5answers
20k views

What is the difference between a function and a lambda?

I'm a little bit confused about 'function' and 'lambda'. I've seen some examples showing that the scheme keyword lambda works very similarly to the JavaScript keyword function, but I really don't ...
6
votes
1answer
116 views

How do you model has-a (aggregation) relationships in functional programming languages

Just to be on the same terms: Aggregation is a has-a relationship, where the owned components can exist independently of the owning component.E.g. a pond and some ducks swimming in it. A duck leaving ...
0
votes
1answer
257 views

C# Design Patterns

I have a question about what the best design pattern to use would be. I have 2 specific scenarios, the first one fits neatly into a Unit of Work(UoW) pattern. The second is a little bit more fiddly. ...
0
votes
0answers
36 views

Use MVC Identity from other Application

I want to create a logon system, using WebAPI2. I also have a MVC4 application which I want to upgrade to MVC5 without changing too much straight away. I was wondering if it was possible to point the ...
-3
votes
0answers
35 views

List Every Possible Equation to get a Certain Number [on hold]

I'm not a very experienced programmer and I've come up with a problem. I have a set of 6 numbers. 280581172 - 978 - 2406 - 121 - X (unknown) = 842 The right combination of the 5 numbers result in ...
0
votes
2answers
98 views

Agile User Stories for Deep Thought Machine

If You've seen Hitchiker's guide to the Galaxy, you know that Deep Thought (pictured below) is a machine that was built to compute the meaning of life: Let's imagine that we were tasked with ...
6
votes
1answer
607 views

Workflow Foundation to separate data from business logic on a mid-sized App?

We are currently developing a .net app in WPF, that will be a desktop app with a good bit of data-access to local (and some remote) servers. The business logic here is very complex, and currently it ...
0
votes
1answer
84 views

Can you use a state machine diagram in the development view (4+1 Architecture)

I have seen several different diagrams in several different views. Is is possible to use the state machine diagram in the development view in 4+1 Architecture?
0
votes
1answer
77 views

Abstract class vs relation between classes

Searching for simplest solution where a User can order an item. If someone purchases an item he will have one address. Which then is the invoice and shipping address. But he could add another address ...
-2
votes
0answers
71 views

Text file - editing in C++ [on hold]

I have some lines of text in a word doc. Each line has the format of an article, like: Author(s). Title. Journal, number of the Journal (Year), pages I want to put this data in Excel but in way such ...
0
votes
2answers
54 views

How to do error management in a web development team?

What are some good practices to do error management in a web application of about 30 people divided into 5 people team, where each team is responsible of a specific part of the application? I am ...
0
votes
2answers
44 views

Trouble handling constraints for the input of a method

I'm looking for advice on how to handle constraints on the input of a method. I have a method that only works if the input argument(s) fulfill certain constraints. If the method is called on input ...

15 30 50 per page