0
votes
1answer
39 views

How to delete active sessions and enable different users to log out from the system without any clashes [on hold]

Currently been working on some few small scale web applications but still did not understand the logic behind on how to clear off a target session? For example, imagine a small web application that ...
0
votes
0answers
25 views

Harmony (and general language) Feature Adoption [duplicate]

Looking at the browser support for the let operator on developer.mozilla has led me to wonder if there is any data which might provide insight into programming language feature adoption rates and/or ...
-1
votes
0answers
31 views

Different variations of C [closed]

I've heard from a few sources that C is not too portable, because it is so close to the machine compared to higher level languages like Perl, Python, Java, etc. But, I was wondering how many ...
-1
votes
0answers
25 views

Passing data from a parent object to one of it's nested child objects when using a compose function [closed]

I've been applying functional programming to my JS code with a heavy emphasis on using underscore's compose along with a simple map function which looks like this: // map allows me to compose better ...
0
votes
0answers
66 views

How to achieve time localization in c++? [migrated]

I'm using the time_t and ctime header to get the time in my app, and it's all OK. The problem is that, the week days and months are displayed in English and i want them to be displayed in my language ...
1
vote
1answer
73 views

When to use absolute path? [closed]

I had given an answer on SO, the question was concerning a problem with a relative path. My answer was to use an absolute path, which I thought seemed simpler. The asker claimed to need a relative ...
11
votes
1answer
329 views

In what programming language did the use of the percent sign (%) to mean modulo/remainder originate?

In what programming language did the use of the percent sign (%) to mean modulo/remainder originate? This previous post1 explains that the symbol % was likely chosen because it includes a slash, ...
2
votes
2answers
101 views

Where to put the Country Table?

It might sounds like a silly question but here is my problem. We have 100s of databases and in each of those databases, there is a country table. It was ok this way but we ran into minor problems at ...
8
votes
1answer
241 views

C++ serialization design review

I am writing a C++ application. Most applications read and write data citation needed and this one is no exception. I created a high level design for the data model and serialization logic. This ...
0
votes
0answers
24 views

Figure out how to create & write correct Hashes for Chrome Preferences & SecurePreferences files?

Especially, in context with Chrome 44 By the research I've done on SE sites it seems 'some' Extensions & Cookies related information gets mapped into these files: Preferences Secure ...
-4
votes
0answers
74 views

Is it a good practice to mention the type of variable when naming it? [closed]

For example in C++, I could use std::map<int, int> dataMap; to indicate that dataMap is a map. Or is it better to just name it data? Also for example, one can do the same in Python about ...
1
vote
0answers
42 views

Metrics for when to use a hash value?

I am working on a project that requires a series of flat files. I will be doing some data checking against simple date like: ID;StatusCode So a typical file might be like: 13993;R 38293;A 19349;I ...
2
votes
1answer
38 views

Can I use the Simple and Fast Multimedia Library (SFML) in a proprietary piece of software?

I have been asked to develop a small game for a conference. The game isn't anything big and since I have had previous experience with SFML, I figured it would be the easiest to use. The SFML ...
1
vote
1answer
46 views

Webapp : Rest Client API design and implementation (with RestEasy)

I am working on a design to create a generic rest client for our application for current and future integration's with multiple services (different external systems). Following is a high level diagram ...
1
vote
2answers
95 views

How to calculate min/max values of floating point numbers?

I'm trying to calculate the min/max, or the lowest to highest value range of a 48 bit floating point type MIL-STD-1750A (PDF) (WIKI). Ex: How a double range is 1.7E +/- 308 I've looked around for ...
2
votes
1answer
44 views

Android Pass Data between fragments

I have a question about passing data using bundle between fragments. I need to pass the URL from a Product object to the next fragment, so I don't know which is the best approach: to pass only the URL ...
4
votes
1answer
57 views

Should a web service return an error message if it receives unknown parameters?

I have a web service which allows to retrieve users: http://example.com/users. It returns a list of users. That service accepts a number of parameters (age, gender) to select which users to retrieve. ...
7
votes
2answers
188 views

Should well-known business ID of an entity be represented with a dedicated type in DDD/OOP?

In practical terms it means using an custom (immutable) class over a string or some other primitive type. Examples: Publishing: International Standard Book Number. Finance: International Securities ...
0
votes
1answer
75 views

Collections.sort question

My question maybe related to this question - Encapsulating Internal Data Structure I have a class LCTile.java which contains a Coordinate.java class. Coordinate.java that contains latitude and ...
0
votes
0answers
14 views

Reusing models and classes with blueprints with flask

Designing a content management system using Python/Flask. I have a blueprint module called pages [app/pages/..]. Pages contains the title, description and content. It can be queried using ...
4
votes
1answer
52 views

Should domain model be intelligent or there must be services, which operate it?

I'm building a web-app for a licensing service. My domain models are Licenses, and they can be of two types at the moment: server and client license. They are almost same, except server license has ...
0
votes
0answers
15 views

Meteor allow users to extend application

I'm trying to make a meteor app which every user can extend. Meteor uses hot code swapping which I would like to use, so I'd probably need to save scripts on file system of the server. Have You got ...
0
votes
0answers
13 views

How much additional specialised functionality should I bundle with my main flask application?

I am building a custom content management system (i.e. html, some js) for a project using Flask/Python. As things have progressed, I have seen that I need to add: Some AJAX for interactivity. ...
1
vote
1answer
82 views

When's a resource a resource?

So I have a rendering engine, and I have a resource manager that adds classes that derive from type 'Resource'. It's a very flexible and generic resource manager, of which only one can exist (it is a ...
3
votes
4answers
128 views

Semantic versioning in Agile

Let's say I have 14 days sprint iterations where I have several stories for new features, few improvements and some bugs to fix. I also deploy those changes when they are ready, I'm not waiting for ...
21
votes
7answers
2k views

Automatically reverting commits that fail the build

A colleague of mine told me that he is thinking in making our CI server to revert commits that failed the build, so the HEAD in master is always stable (as in passing the build at least). Is this a ...
2
votes
1answer
56 views

How to calculate number of indirect dependencies of a class?

Most of the static code analysis tools which analyse class dependencies generate dependency pairs of classes where each pair represents a direct dependency between two classes. Given those dependency ...
0
votes
1answer
70 views

Deciding on a software license for a C++ API [closed]

I have designed and developed a C++ API. Its dependencies are: BLAS - custom license - http://www.netlib.org/blas/#_licensing LAPACK - modified BSD - http://www.netlib.org/lapack/LICENSE.txt GLPK - ...
-2
votes
0answers
14 views

Help with Shell [migrated]

I was trying to create my own shell. So I have this code: <head> <title>Command Shell</title> <link rel="stylesheet" href="console.css"> </head> <body> ...
-4
votes
0answers
34 views

node js class diagram generator [closed]

I have a node js project with main.js calling 5 js file including the implementation of the database in sqlite3 the project works fine and the structure is main.js file controller folder: ...
-3
votes
0answers
40 views

Trying to run RSelenium (Windows 7/ Mac OS X) [closed]

I am trying to run RSelenium in both Windows 7 and Mac OS X. I have read through some simple how-to guides for RSelenium and when I repeat their code, RStudio throws the following warning/error ...
0
votes
0answers
40 views

Securing HTML/JavaScript only web app / JAX-RS Backend [closed]

I am prototyping a small web app where the frontend will be a pure HTML+JavaScript+JQuery which consumes services from a JAX-RS backend. The application has started to have a shape now but I find ...
3
votes
1answer
52 views

How to deal with relative paths in out of source build?

An out of source build is a build which can be in any directory other than the source directory I have a project which contains relative paths to some resource files, needed at runtime, which are ...
1
vote
2answers
97 views

Is it considered good practice to use mutables this way? [closed]

Lately I came across a way of using mutables which I had not thought of before. Let's say you have a list comprehension which calls a method, and you put the result in a list like the following ...
0
votes
1answer
43 views

IBM Jazz: what are Streams?

I'm trying to make sense of IBM Jazz. I'm trying to figure out what it is, and what it isn't. "Streams" have been giving me trouble. From IBM's online library: The stream is similar in concept ...
2
votes
3answers
284 views

Why Session has implemented this way in Asp.net

I'm not a Asp.net/C# developer myself but recently had to slightly refactor a Asp.net/C# project and I had to use Session at some point. When working with the session, regardless of the data type that ...
-3
votes
0answers
35 views

I am misunderstanding a jQuery array [migrated]

This code doesn't work var next = $("#orders").find(".next"); if (next.length == 1) { var address = $(next[0]).find(".directionsAddress"); var destination ...
0
votes
1answer
78 views

How to design resilient web service clients?

I am writing an app that is supposed to talk to a web service. Let's say it's a chat app. It would need to receive a stream of new messages (so that they are pushed to the interface as quickly as ...
7
votes
2answers
161 views

Cross-language Test-Driven Development

The short question: How do you follow Test-Driven Development on a project that spans multiple languages? Specifically, I'm writing a web application that uses JavaScript and PHP, and I want to ...
0
votes
1answer
58 views

Where should I put my key? [duplicate]

I have a Private Key that is regularly used to decode incoming files during off-business hours as part of an automated process. Currently, it is stored in the application code itself, and only ever ...
-3
votes
0answers
41 views

Algorithm for base conversion of arbitrary length number [closed]

Is there an efficient algorithm to convert arbitrary length number (stored as an array of digits) from one base to another? For example, base-10 number {3, 1, 9} to base-9 number {3, 8, 4}? I can ...
2
votes
2answers
135 views

Refactoring wordy conditional tests [duplicate]

My first attempt at this question was too theoretical, so I've rewritten it with actual code. See the edit history if you care. Supposing this logic, "suffering" from the arrow anti-pattern: /** ...
0
votes
1answer
25 views

Configuration file for a generic log file parser

Our company uses multiple log file formats. We would like to develop a series of tools to parse them, often the same core functionality for multiple log file formats. A classical example is ...
3
votes
2answers
174 views

Converting static utility class into singleton

In company where I work we have lots of "utility" classes, each has lots of code inside (thousands of lines), and they are all static. And one static methods call anothers. The problem here is that ...
-2
votes
1answer
43 views

How to unit test access to a external service's client? [closed]

Say I am writing client for an external web service (like openweathermap). How should I unit test that? Say I have a class like : class WeatherClient { ... public Weather getCurrWeather(String ...
0
votes
1answer
39 views

Thread synchronization for multiple threads accessing a message stream

My project has a single message stream (communicating with an external device) which is accessed via multiple client threads. The workflow is: There is a thread (the "messaging thread") which reads ...
1
vote
0answers
30 views

Promise in Web MVVM

In MVVM (or Presentation Model), my (web) view listens to a CLICK event and calls a function of the Presentation Model to ask for the result. To clarify, the presentation model lives browser-side. ...
2
votes
1answer
53 views

Does HTTPS prevents man in the middle sending the same message several times [duplicate]

If a User is exchanging messages with a Server over HTTPS, could a man in the middle intercept messages and send them several time. For instance, George orders a laptop on a https e-commerce, could ...
1
vote
1answer
70 views

“Is a” relationship or, in other words Inheritance

Say I define an interface IAnimal which has a pure virtual (abstract) method called eat like this: class IAnimal { virtual void eat(Food*) = 0; }; In the future I inherit form IAnimal and create ...
1
vote
4answers
178 views

Strategy pattern and “Is a” relationship

Imagine, I have class IAlgo which is an interface. I have derived from him and implemented his single method called matchCount in different implementations - AlgoA1, AlgoA2, AlgoA3, AlgoB1, AlgoB2. ...

15 30 50 per page