-2
votes
0answers
10 views

Accuracy proportional to size

I have lists of data I'm trying to organize where the list with the least variation/most precision/closest to the average and most amount of data is most highly rated. Some of the lists are like 2000 ...
0
votes
1answer
16 views

Is it not direct usage of primitive pointer types form of Primitive Obsession?

Using primitive data types to represent domain ideas is code smell called Primitive Obsession. For example using string data type to represent human name - it is recomended to avoid this by defining ...
0
votes
1answer
14 views

How do you start a development project with limited knowledge of the domain and programming language?

I am being offered to be a technical lead on a new upcoming project in my company. I have limited knowledge related to this project's domain as well as limited training in the programming language ...
1
vote
3answers
30 views

When, if ever, are basic concurrency optimizations generally made?

Lets say I need to preform the following computationally intensive task For i in range(100000000): doComplexCalculationWithNoSideEffects(i) Most people I talk to tell me that basically any ...
1
vote
1answer
33 views

Functions returning strings, good style?

In my C programs I often need a way to make a string representation of my ADTs. Even if I don't need to print the string to screen in any way, it is neat to have such method for debugging. So this ...
-2
votes
0answers
10 views

Can't select OK in Intellij

For some reason, I can't select OK when creating an Android XML file in Intellij. Illustrated below: I've tried restarting Intellij multiple times to no avail. Version number is 14.0.3. What gives?
-4
votes
1answer
21 views

estimate the bus arrival time if I know where the bus is? [on hold]

I purpose to devlop an android app(bus tracking system) base on crowdsourcing. Crowdsourcing is the process of obtaining needed services, ideas, or content by soliciting contributions from a large ...
-5
votes
0answers
12 views

Ad Banner works on iOS simulator but never on device [on hold]

I implemented iAd/AdMob mediation for iOS app. Mediation works well in simulator that iAd test banner shows up first and when it fails, AdMob test banner shows up. However, on actual device the iAd ...
-2
votes
1answer
29 views

How to enforce copyright in source code for use by others

I have coded a project for private use. I currently have no intention for commercializing it but the plan might change in the future. A friend of mine now wants to use it for his project, and asks if ...
2
votes
7answers
189 views

Why instance creation is the way it is

I've learned C# over the course of the past 6 months or so and am now delving into Java. My question is about instance creation (in either language, really) and it's more of a I wonder why they did ...
-2
votes
0answers
17 views

How to edit Windows application's elements, for example a textbox [on hold]

Can you please point me into the right direction? I want to edit other application textbox or click, programmatically. For example, in a web browser, can I edit elements and invoke button clicks? I ...
-2
votes
0answers
12 views

Bakend API for Android apps [on hold]

What is the most common language/platform for developing bakend REST API to be consumed by an Android app? I want to develop a few Free Android apps that would consume REST (JSON) services from my ...
-2
votes
0answers
25 views

How to approach designing a snake game? [on hold]

I have a basic understanding of C++ and pascal being able to make simple programs. I want to improve my knowledge of the language, game design and to challenge myself by making a snake game. I ...
-2
votes
0answers
23 views

Differences between config formats? [on hold]

I'm trying to figure out what's the most appropriate configuration format for my web application, which is written in PHP. The ones that I'm aware of: json very portable, but I can't add comments ...
2
votes
1answer
33 views

Is unifiing ADTs with typeclasses possible?

When i was thinking about language design i got an idea that ADTs (Aglebraic Data Types) and typeclasses could be the same thing. They can both represent a group of types, but in haskell they are not ...
2
votes
0answers
11 views

Separating Django models for SOA

First of all, the goal of this exercise is to create a SOA with Django. I am trying to understand what the implications would be if I decided to separate and insulate models into apps, provide a REST ...
-2
votes
0answers
8 views

Automator command line help! [on hold]

I have a question is there any way to do this in automator: [ask a question block] [get the answer to the question and put it in a variable block] then my question is how to this: run command line ...
4
votes
1answer
131 views

Going TDD in the middle of the project

They want us to develop new features of a product with TDD. I know that they don't usually write tests for legacy code of already developed modules. But yet, what if new features have to be added to ...
0
votes
0answers
31 views

Finding palindromic numbers most efficiently

A while back I posted this to codereview.stackexchange.com but it did not elicit the type of answers I was after. Not the right forum I guess. I have since revised the code and added some debugging ...
-1
votes
0answers
28 views

is it better to focus on an expertise or branch out? [on hold]

I just got accepted as an assistant for programming lab class in my university. basically, I got training on wide area of basic stuff so I can teach student who learns different things(php, ...
-1
votes
0answers
41 views

How to find out which bus the right one is?

I want to devlop an app based on crowdsourcing for bus tracking. I ask my self how can I send the user the right Bus number and not the closet one because the closet one is driving in the other ...
-3
votes
0answers
10 views

Extracting value from a matrix [on hold]

So I'm trying to extract a specific value from a matrix. For example I have a 2x2 matrix as following: [ [1, 2], [3, 4] ] How to index the element with value 2 from this matrix?
0
votes
1answer
62 views

Standard to take source of software [on hold]

In my office we worked with a software developer who created some software for us and now he wants to quit. We need to take the source of this software and deliver that to another developer. Is there ...
-5
votes
0answers
27 views

How are centralized, silo'd, lone-wolf type of career opportunities distinguished from egoless, collaborative, decentralized career opportunities? [on hold]

I am keenly interested in understanding how certain programming opportunities are distinguished from others in terms of the following dimensions: Ego investment (strong vs none) Code ownership model ...
-4
votes
2answers
25 views

Ruby Regular Expression: All letters except at beginning of string [on hold]

Let's say I have the following string, string = 'H195AB' How do I create a regex which looks for all letters except at the beginning of the string? So in the previous string, I want the 'AB' ...
0
votes
0answers
23 views

Designing an Action abstract class with GUI

I have an Action class, where an Action can do a range of things, including: Performing a sequential list of other actions Performing an action if a condition is true Allowing the user to pick ...
-4
votes
0answers
31 views

What Kind of programmes Need to be practised to develope a good programming logic in c [on hold]

I have completed learning C. All the basic concepts are probably been cleared. So I wanted to move forward and search for upper level of programmers. So is there any book or website which may help.
-4
votes
0answers
28 views

Language for Web development on Embedded Systems [on hold]

I am planning to host a webserver on an embedded board like raspberry pi, radxa rock. It should also contain a database like MySql. My concern is that performance wise as well as development ...
-2
votes
0answers
23 views

How can the Scanner read input from a file and ignore comment lines? [on hold]

The purpose of the program I've written is that it's supposed to load the input file "opcode.txt". My program works correctly when deleting the comment lines of the input file, but the professor ...
1
vote
1answer
65 views

operator“” in modern C++

I took an example I found on-line whereby a constexpr of the form _binary could be evaluated at compile time as an unsigned long long and then I tried to generalize it for any base from 2 to 36. For ...
-2
votes
0answers
26 views

Build .dll from folders of scripts in Visual Studio? [on hold]

I have several folders of scripts that are all from the same project. Unfortunately, I don't have the solution file. In Visual Studio, how do I compile C# code into a DLL given only the code and not ...
-4
votes
0answers
24 views

PHP Internal DSL Examples [on hold]

In PHP, I want to see examples of useful/powerful internal DSL like code, tricks, or hacks. I will subsequently refer to these as DSLs. A good answer will start with an inspiring code example of how ...
-1
votes
0answers
28 views

What is the name for framework-style development? [on hold]

When developing targeting frameworks, I tend to follow principles to support backward-compatibly (within reason), to avoid breaking existing application code: Don't change class names or namespaces. ...
1
vote
1answer
42 views

IoC invalidation

I have a bunch of services that get registered as singletons by my IoC container on startup, all of these services have a constructor which takes in a connection string which is used by the underlying ...
-3
votes
0answers
18 views

What's the relationship between flask-login and flask-security?

I've gone through the documentation for flask-login and flask-security. Both modules appear to be related. Flask-security makes reference to flask-login, so it would appear that they can work ...
0
votes
0answers
33 views

How can I configure git on a server with a development and production branch? [migrated]

I am absolutely new to git. I'm the sole developer on a fairly large project and want to start keeping a history of code changes moving forward. I current have a LAMP stack with many virtual hosts in ...
1
vote
1answer
65 views

How to design a RESTful API with good performance

When designing RESTful APIs, one of the rules is: "URI designates exactly one resource" , but in the real world we also like good performance and one thing to kill performance is the N+1 problem. So ...
1
vote
0answers
39 views

Is this pattern of optional dependency injection sound?

A lot of the time when working on legacy code bases, I find it hard to move manually created dependencies to the constructor parameters, because of a variety of reasons. Sometimes it's because the ...
-3
votes
0answers
16 views

What techniques does Narrative Science use to generate articles/prose out of raw data? [on hold]

I want to know which techniques such as Text Analytics, Machine Learning, NLP etc are used in creating such programs which take raw or numerical data as input and create prose or articles with proper ...
0
votes
0answers
20 views

Deleting all cached page of the site

Scenario Mobile and desktop version. I'm developing a website with a desktop and a mobile version: users can choose to switch version if they want to: javascript will save a cookie telling the ...
0
votes
0answers
16 views

How does one query the binary blobs in an event store?

One of the much touted benefits of event-sourcing is that it makes debugging an application's execution easy because one has the complete log of every event. But if the events are generally stored as ...
0
votes
0answers
23 views

Dispatch Algorithm for logistics - Batch assignments

basically, I'm trying to implement an algorithm that dispatches drivers to deliver batches (a batch is a collection of orders). The algorithm takes all the batches and all the drivers available, then ...
-5
votes
4answers
89 views

What is the “opposite” of a scripting language? [on hold]

In my mind, a scripting language is one you use to crate a piece of code that runs from beginning to end synchronously, and then quits (i.e. a script). When coded "correctly", they only require and ...
1
vote
5answers
407 views

When, if ever, should I daisy chain functions?

I'll try to be as brief as possible in respect to your time. In a program divided up into many functions by which it is intended that they execute themselves one after another, when (if ever) is it ...
-1
votes
0answers
26 views

Benefits of C# Com Interop vs VB6+IDL

Strictly from a COM Interop point of view (ignoring other benefits C# might bring), are there any benefits of: using C# .NET (via System.Runtime.InteropServices), vs using an IDL to maintain a Type ...
-2
votes
0answers
15 views

Simple path queries on large graphs [on hold]

I have a question about large graph data. Suppose that we have a large graph with nearly 100 million edges and around 5 million nodes, in this case what is the best graph mining platform that you know ...
0
votes
3answers
129 views

Benefits of using .NET style delegates compared to custom ones

I know about C# events and delegates. I find them incredibly useful for event-driven sub-systems. One thing I don't understand, however, is why all the .NET documentation for events uses a very ...
0
votes
1answer
56 views

How can I condense a case class with ~20 constructor arguments into 5 or 6 arguments in Scala?

Let's say I have a case class with ~20 constructor arguments? This is obviously very clunky to type. What would be the best way to condense these arguments into maybe 5 or 6 arguments? There are some ...
-2
votes
0answers
23 views

Simple multi-player game to illustrate a reactive real-time framework? [on hold]

I'm putting together a one-hour introductory workshop to Meteor.js, a full-stack JavaScript framework with automatic data sync between clients and the server, and reactive templates on the front-end. ...
-1
votes
2answers
54 views

What are the benefits of using a unique_ptr when declaring a class? [on hold]

I have a class TestABC, I want to declare it using a unique_ptr. But, I am not sure what the benefits of doing that would be. So I want to do something like this: std::unique_ptr<TestABC> ...

15 30 50 per page