3
votes
1answer
367 views

Separation of concerns between repository and service in DDD with complex entities

This probably seems as an example of opinion-based question, but I'm actually looking for rationale on how to decide correctly, I believe there is a correct solution that can be backed by solid ...
2
votes
0answers
26 views

How do I Balance Multiple Service Contracts with Duplicate Structures

My current task requires me to use a set of web service calls to a 3rd party vendor in order to retrieve and update information. The objects used in these calls - namely the response from a get and ...
1
vote
3answers
174 views

How to authenticate against an API?

In a enterprise distributed system, a user of a web portal can sign into one site, be redirected to a federation provider. Once they log in with, for example, a facebook account, that user is ...
1
vote
2answers
130 views

How do I prevent people from abusing my endpoint that accepts files? [duplicate]

So I have a Django app hosted on Heroku that has an endpoint which accepts image uploads. The images are saved to my AWS bucket, which is charged to me. Right now, I am able to upload images by making ...
3
votes
2answers
895 views

How is intermediate data organized in MapReduce?

From what I understand, each mapper outputs an intermediate file. The intermediate data (data contained in each intermediate file) is then sorted by key. Then, a reducer is assigned a key by the ...
-3
votes
0answers
43 views

Longer version of sort array [on hold]

I have an array of structs. struct Item { let textLabel : NSDate let detailTextLabel : NSDate } I sorted them with the following code: myArray.sort{$0.textLabel.compare($1.textLabel) == ...
1
vote
1answer
45 views

Name pattern for quickly find descendents with SQL (PATH column with [TopId]…[DirectAncestorId].[OwnId]) NO nested sets

I read a long time ago about a pattern/technique for easily querying for all "descendants" of a record (no need to use CONNECT TO, which is not standard and not available with JPA). I remembered the ...
1
vote
0answers
36 views

Decoupled architecture in Android

I am building an app for Android that will have multiple data sources depending on who is using it. N-tier architecture with a repository pattern seems like the right way to go about this but I am ...
-8
votes
0answers
40 views

can i write a software (windows application) and make it work on another windows application [on hold]

can i write a software (windows application) and make it work on another windows application. i mean i have a system (windows application) it has a shell command line. and i want to write ...
1
vote
1answer
71 views

Haskell: Is it possible to convert a Num to a Float?

I need to be able to convert generic numbers (instances of Num) to a Float. I searched Hoogle for a function with the signature Num n => n -> Float, but I couldn't find any such functions ...
1
vote
1answer
107 views

How does Java's Scanner (System.in) input's buffering actually work?

Over the last days, I've being reading questions as the one that follows: "Why is my input code not working?" I myself had a couple times problems getting the input working right... as far as good, i ...
2
votes
3answers
85 views

How to simplify structure of a monitoring software that uses the Observer pattern?

I am working on a project where I have to monitor the status of an elevator. So far, my design looks like this: We are using a third party library to read and monitor real-time values from the ...
0
votes
3answers
217 views

Why does databases use text? [on hold]

This might be a little dumb question but why do we save text in the db instead of something smaller? Couldn't there be some other way to store data in the db like in a serialized form, and then have ...
0
votes
1answer
132 views

Best way to structure many-to-one allocation of users to projects in NoSQL

I apologise if this is a bit of a stupid or broad question, but I'd like some general feedback please! Say I have this DB structure for users (in Mongo/JS, but really it's all pseudocode- and the IDs ...
1
vote
0answers
12 views

Azure ServiceBus Queue: Consumer Application

I am running a .net MVC4 web application. I want to be able to hit an action on a controller, create an email and send it to my service bus queue to be processed (sent). What are my options as far ...
1
vote
0answers
67 views

How Should I Design Models With Deep Relationship Structures?

I am designing a web application in ASP.NET MVC, which uses ADO.NET for the database access. In the past, I generally have put together a series of classes each of which, maps to one table in a ...
-3
votes
0answers
80 views

How to Calculate result of two Pictures [on hold]

Here is the one picture I want to fill out character of this picture After correctly fill out character of this picture the result is shown Now problem is the here how can I compare of this two ...
2
votes
2answers
512 views

Programmatically syncing with remote servers

My application generates text files that need to be synced with remote servers, which may be windows or linux. Sync has to happen without user's intervention. I tried with rsync but windows doesn't ...
2
votes
3answers
2k views

Verfication vs validation again, does testing belong to verification? If so, which?

I have asked before and created a lot of controversy so I tried to collect some data and ask similar question again. E.g. V&V where all testing is only validation: ...
6
votes
2answers
2k views

Why do we need an instance of the Scanner Class to get an Input on Java?

Java is object oriented, but, why do we need to create an object from the Scanner Class to get input? Couldn't next() methods, for example, just be Static? C looks to me pretty simpler as you just ...
3
votes
2answers
182 views

How does I/O work for large graph databases?

I should preface this by saying that I'm mostly a front end web developer, trained as a musician, but over the past few years I've been getting more and more into computer science. So one idea I have ...
12
votes
3answers
3k views

Git Project Dependencies on GitHub

I've written a PHP framework and a CMS on top of the framework. The CMS is dependent on the framework, but the framework exists as a self-contained folder within the CMS files. I'd like to maintain ...
-2
votes
0answers
37 views

Best approach to subscription billing [on hold]

I am creating a subscription based site from scratch. And i want to know what would be the best approach or best way to be able to accomplish subscription billing every month. So lets say a user ...
0
votes
0answers
46 views

ASP.NET synchronous commands handlers

A question about DDD, for validating a Proof Of Concept. Let's say we have a webpage that triggers a Domain Event. For instance, updating the status of a client after an interaction occurred on that ...
8
votes
5answers
9k views

Patterns and practices for Web Scraping in .Net (C#) [on hold]

I will be putting together an application to automate an external web site/application. In some instances I will need to navigate the site as a user would (some links I need to follow cannot be ...
0
votes
2answers
54 views

Guideline/best practices on what traits/categories to give to tests

Is there any standard on what traits/categories to give to tests? Here is an example: I guess that this is mostly used to reduce the time of executing when some are long but is there any standard? ...
0
votes
1answer
150 views

Why are Strings in StringPool considered insecure?

Passwords are recommended to be stored in char[] instead of String, as Strings are stored in StringPool. Read more here As per this question Strings in StringPool are not available directly. To ...
3
votes
2answers
116 views

Is it a good idea to modify the array keys in foreach

First let me say that i am talking about PHP, but the question is a general one. Some times i need to modify an array key for example something like: $temp = array(); foreach($arrayIWantToModify as ...
35
votes
7answers
16k views

Why is there no 'finally' construct in C++?

Exception handling in C++ is limited to try/throw/catch. Unlike Object Pascal, Java, C# and Python, even in C++ 11, the finally construct has not been implemented. I have seen an awful lot of C++ ...
1
vote
1answer
73 views

Is it safe to directly access superglobals with isset()?

I understand that one should always try to avoid direct access to superglobals to put values from superglobals into variables, eg.: $name = filter_input(INPUT_POST, 'name'); //instead of $name = ...
0
votes
0answers
98 views

Ways to present a project to programmers [on hold]

Am about to start a certain project with 3 or 4 developers. What is a suitable way to communicate the course of the project to them? I expect the solution to be a software maybe? or a way of ...
2
votes
2answers
36 views

How can I keep data integrity across multiple services in a transaction-like fashion with PHP? [duplicate]

I find the concept of transactions really useful when working with databases because obviously it allows you to rollback changes if one step of a modification goes awry. Is there some way I can ...
4
votes
1answer
77 views

What's the Content-Security-Policy-friendly way to hand data from the server to the browser on page load?

When developing for the web, I often find myself wanting to pass a few variables from the server scripts to my javascript - data pulled from a database, and set differently on different pages running ...
4
votes
1answer
487 views

Multi-platform design with Delphi, Java, MySQL and CouchDB [on hold]

What are the most obvious drawbacks to this idea for an enterprise(ish) model using the following technologies. Browser based and native developed GUI using Delphi to connect to Datasnap server ...
-1
votes
0answers
29 views

how to organize android activities to be related? [on hold]

I'm working alone on android Project , and this is my first complete android project , and there are many activities and more parts are related for each activity , I write each part (which is related ...
1
vote
1answer
157 views

Why do I need to use recursion on the classic employee manager database relationship?

Take the data from the Oracle scott database. I have modified it to have multiple levels of management from the original, select * from scott.emp order by mgr desc; empno ename job ...
4
votes
1answer
90 views

How to prevent accidental deployment of branch under a legacy deployment process?

We have a feature branch right now in development that must not be deployed to production. At the moment there is nothing that would prevent such a mistake from happening. Deployment happens manually ...
1
vote
1answer
107 views

Why do Haskell and Scheme use singly-linked lists?

A doubly linked list has minimal overhead (just another pointer per cell), and allows you to append to both ends and go back and forth and generally have a lot of fun.
-2
votes
0answers
20 views

Stripping one set of arrays and replacing quotes [on hold]

How could I take: s = [[0,0,0,0],[0,0,0,1]] and change it to: s = ["0,0,0,0","0,0,0,1"] Don't really mind how elegant it is.
0
votes
1answer
79 views

What is the problem will happen if I create auto generate ID without using mysql auto increase of mysql table by my self?

I would like to ask you a question about MySQL AUTO_INCREMENT. I already created my own function to generate AUTO_INCREMENT when the user inserts any data input a table in MySQL. This function works ...
-1
votes
0answers
27 views

Error codes system [on hold]

What would be a nice approach on capturing and show errors/warnings/information/etc at runtime? First I was thinking of something like: 1XX for user input related errors 2XX for database related ...
0
votes
0answers
17 views

How do webpack and gulp complement each other?

I've started with TypeScript 2.5 years ago with Visual Studio and ASP.Net MVC. VS Web Essentials would compile ts files on save and the WebOptimizer library would bundle them together at runtime in a ...
-2
votes
0answers
47 views

How to Progressive Jackpot? [on hold]

This question is about the presentation of information within a distributed system accessed by multiple users. The example is based on a hypothetical jackpot, an incremental value, incremented by ...
0
votes
1answer
43 views

OAuth/OAuth2 RFC question

This question is about a line from the OAuth2 rfc - https://tools.ietf.org/html/rfc6749 In Section 2.3, there is this line The client MUST NOT use more than one authentication method in each ...
2
votes
1answer
115 views

Migrating a Grails application to Scala Play/Spray

We have a moderately sized Grails web application using GORM/Hibernate over PostgreSQL and GSPs serving HTML, and also a few REST APIs. We are standardising on Scala, and would like to migrate this ...
22
votes
8answers
854 views

Explaining floating point precision to customers [on hold]

What is the best way to explain floating point rounding issue to customers? I know http://download.oracle.com/docs/cd/E19957-01/806-3568/ncg_goldberg.html as well as the entries in the C++ FAQ and ...
0
votes
1answer
281 views

What is the convention regarding class names that may already exist in the ORM? [on hold]

This is a generic question about class names and ORMs, but for context; I'm working on a Flask web app in Python using SQLalchemy. I'm struggling with naming a new class that will contain the ...
0
votes
1answer
46 views

Is it possible to use on focus event on form..?

I tried to find when and on what onfocus works.. Can some one tell me is it possible to trigger event when some one is viewing current form ?? I know it works on input,dropdown and textarea.. but ...
-2
votes
0answers
28 views

Why JavaScript regex implementation doesn't have lookbehind [on hold]

Most regex implementations allow a lookbehind condition, so that such an expression: (?<=hello )world will match world only if it is preceded by hello. This functionality can prove useful at ...
0
votes
1answer
28 views

Snippets (based on MIT licence) from snippets services

I have question about MIT licence code sources Can I publish code snippets [MIT licence] from site like bootsnipp to my blog? Do I have to include source link to site where I have found that snippet ...

15 30 50 per page