-1
votes
0answers
13 views

What programming technique is this?

I have two Java classes. The first one is called "Index", and the second one, temporarily, I called it "IndexCache": public class IndexCache { private static Map<String, Index> map = null; ...
-2
votes
0answers
11 views

Chess program with NO ai

Just looking for a resource with people more familiar with programming than I am. I am working on developing a HUMAN chess ANALYSIS program (not a game). When I look online for resources, everything ...
-2
votes
0answers
5 views

macro to parce email address into body

I am using Outlook 2007 and Outlook 2010. I have created a rule to move unsubscribe requests into a unique folder. This rule also replies to the sender via template and let's them know their ...
-1
votes
0answers
4 views

embedded dylibs/frameworks only run on iOS 8 or later

I am developing framework which min-target is iOS 5 and above. It is throwing this warning: embedded dylibs/frameworks only run on iOS 8 or later Does this means I should not use cocoa touch ...
-5
votes
0answers
12 views

C++ I'm a bit stuck on what I did wrong [on hold]

//Write a program that calculates and prints the final value of a ten year, $10,000 //investment whose annual return gradually declines from 2% to 1% over that term. #include <iostream> using ...
-2
votes
0answers
12 views

Handling race conditions in C using the most efficient method

I created my own linux apache module in C but after installing it on the server, I found out that in a day, the server receives at least 1,000 requests of which 4 return a segmentation fault message ...
0
votes
1answer
23 views

Best practice A.I. - check all possible moves or pick an objective?

I'm looking for some general guidance on how to produce best practice A.I. The way I understand it, the way A.I. works for games like Go, Chess etc is by considering all possible moves (combinations ...
0
votes
0answers
12 views

Make an android app “Re-configurable”

Story: I am the sole developer of an android app, which is the flagship product at my workplace. The app renders business workflow forms written in XML. These forms have simple structure and provide ...
-1
votes
1answer
35 views

Is visual c++ cross plat

Is VC++ cross platform? If, not how can i make it. Should I just use code blocks for cross platform and include any needed dlls in the project? I'm using OpenGL and need to make my game supported for ...
0
votes
0answers
12 views

Injectable, Poppable Stack

Background A project involves converting a relational expression map (rxm) to an XML/SQL statement. The map resembles: root > people, # "root" keyword starts the document ...
-2
votes
0answers
11 views

Developing a web app interfacing with Gmail

readers. I'm a guy relatively new to programming (I mainly code really basic HTML and fool around with Linux environments) and have something I'd really like to do. Say, for example, that I have an ...
0
votes
0answers
5 views

MSSQL_How to show number's range by a loop? [migrated]

I am using MSSQL to run a query, however I want to simply my current steps by using a loop. Now my script works, it returns me correct result as I wanted: BUT, can I make it simple? Can I ...
0
votes
2answers
27 views

Making effective use of SIMD instructions without moving whole app to c++

I want to use SSE2 or similar instruction sets for simd to improve performance in my application. My situation is this: I've written some code for the app in c# but I don't mind porting if it's ...
0
votes
0answers
10 views

How to structure Actors and Messaging Queue into an application

What I want to do : Create a pool of actors to asynchronously analyses some user submitted content as it comes in my application of a work queue . Problem: Confused with the amount of noise ...
0
votes
1answer
21 views

Best way to centralise a php project (except bitbucket)

The structure is as follows: A: this is the live/production website B: this is the staging, which is a copy of live C: this is the testing environment for designers 2 developer and 2 designers. ...
2
votes
2answers
54 views

When to create a custom exception in C#

I'm writing a class to interface with a simple hardware device over a COM port. The device can configured to use various modes, so my class has a SetOperatingMode function, that takes in an enum of ...
0
votes
0answers
12 views

Choosing a frontend framework to rewrite the UI of existing projects

I'm an experienced web developer and my job at this moment is to finish and polish the details of the UI of two projects made with Django. Those projects are using Bootstrap, but one of them has it ...
0
votes
0answers
11 views

Content delivery design

I'm designing a system where users can access files stored in an external content storage service such as AWS's S3. Here's a simple diagram: ------ ------------ ----------------- | User ...
0
votes
0answers
42 views

Should users be allowed to have whatever password they want? No limits [on hold]

Is it dumb to allow a user to have any password? I never understand why some sites have a minimum and maximum limit. and some forcing the user to have random characters. I use PHP's password_hash ...
1
vote
5answers
138 views

Why use a bool over more domain specific abstractions

Booleans are often used to model domain specific dichotomies. The most common example I can think of is the success or failure of an operation. It seems to me that a boolean must be interpreted in the ...
-3
votes
1answer
33 views

Software teams and surrounding support teams [on hold]

Help me understand the need for managers, product managers, program managers, design architects, engineering directors, and all other auxiliary job titles that surround software development but don't ...
3
votes
3answers
44 views

Child Object depends on member of Parent Object

I am wrestling with this OOP design issue. Take these base classes, for example: class Database { public string ConnectionString { get; set; } public Table MyTable { get; set; } } class ...
0
votes
1answer
36 views

Nested REST urls and parent id, which is better design?

Okay, we have two resources: Album and Song. Here is API: GET,POST /albums GET,POST /albums/:albumId GET,POST /albums/:albumId/songs GET,POST /albums/:albumId/songs/:songId We know that we hate ...
-5
votes
0answers
11 views

Why object is not initializing in spring mvc? [on hold]

Example: User.java @Component public class User{ public String name; public String email; public User() { super(); } public User(String ...
2
votes
3answers
60 views

Helping testers who don't have specialized domain knowledge

I am a team lead on a project that develops specialized engineering software. My developers generally have advanced degrees and the domain knowledge needed to work with the software we develop, but my ...
-4
votes
0answers
47 views

I'm about to sell my app. What are my options? [on hold]

I've developed a medical app, which I think is pretty revolutionary. I haven't yet released the app on the market, because the database is incomplete, and I probably won't be able to finish it on my ...
4
votes
3answers
97 views

How does branch prediction work, if you still have to check for the conditions?

I was reading the popular answer about Branch Prediction from http://stackoverflow.com/q/11227809/555690, and there is something confusing me: If you guessed right, it continues on. If you ...
0
votes
0answers
17 views

What is the best approach to creating a geolocation service

I am not sure, whether what I am thinking about qualifies as geolocation, but I will try to explain what I mean below. Say that I have 10 million geo-points from all over the world in a database. ...
4
votes
2answers
134 views

Why does 'zip' ignore the dangling tail of the collection?

C#, Scala, Haskell, Lisp and Python have the same zip behaviour: if one collection is longer, the tail is silently ignored. It could be an exception thrown as well, but I didn't heard of any language ...
0
votes
1answer
78 views

How can frond-end developer support different encoding (UTF-8 , UTF-16,..)other than ASCII?

I'm writing simple language compiler frond-end (based on LLVM) in C++, and I wonder how could language support encoding stuff? How can I (as compiler writer) support encoding? I need to know the ...
0
votes
1answer
37 views

Is Current CoffeeScript Module Pattern Valid?

I have a Node.js web application that's written in CoffeeScript, which has a set of "services". These various services are currently exposed as a CoffeeScript class, which does a few things that I ...
0
votes
0answers
19 views

iOS app - What architecture/design to adopt when consuming a RESTful API?

@begin_background_story I currently work for an iOS app that is aprox. 4 years old. I only joined the team a year ago. In my opinion the code is ugly, full of hacks and has a very shaky ...
2
votes
3answers
115 views

Is it good Python style to write a function that has no effect other than potentially raise exceptions?

Sometimes I find myself writing Python code that looks like this: def check_stuff(param): if condition1(param): return "condition1" # These might be enum values, etc., instead of strings ...
1
vote
1answer
82 views

Portable Data in C# App

I have developed a C# front end app for management of an SQL Database for the purposes of document control. The project this database is for has several consultants and a client spread in a variety ...
0
votes
0answers
19 views

SOC and self-initializing configuration

Disclaimer: I'm using C# for code examples. But I guess they should be readable/understandable for everyone. If they are not: please leave a comment. Okay I have a Client-Server application. The ...
0
votes
0answers
24 views

Google-like search solution for an enterprise application stack using Elasticsearch

I know, title is a little confusing but the problem is, too. I am working on a company, it has several different applications and wants these applications have search functionality. We have developed ...
0
votes
0answers
37 views

What alghorithm can I use to find the biggest subarray within a 2d array with only n different numbers?

Let's say I have a 2d array 100x100 in size, each cell in that array has a number from 1 to 50 randomly. How do I find the biggest subarray in a rectangle size in that array that has only n different ...
0
votes
0answers
24 views

Linking Javadoc Page from Github [migrated]

I have been working on Github project Android-Commons. It is a collection of common Android Utilities. I have made documentation for Project code(See here). What I am facing issue is with I am not ...
-2
votes
0answers
24 views

.NET MVC Razor with forums [on hold]

I am looking for a forum to add to my site. My site is being developed in .NET with C# MVC Razor. My goal is to use the forums, but importantly, use the underlying functionality to build my user ...
2
votes
1answer
59 views

FP and board game state

I wanted to implement the game of Tic Tac Toe using a functional language (in my case, Scala) but I'm unsure how to go about managing the board game state after each player makes their move. I ...
0
votes
0answers
14 views

Strategy for “multi-level equality” test

It is well-known that Lisp supports multi-level equality test. I want to implement similar multi-level equality test on a custom class in Python. I know that I can (and should) override the __eq__, ...
1
vote
1answer
25 views

Can tools.jar from OpenJDK can be installed in public repository

Is it legal to install tools.jar from OpenJDK in public maven repository? I found at least three topics on the Internet which conclusion was that such action is forbidden for jar provided by Oracle, ...
-2
votes
0answers
12 views

Accessing Dynamically create div via js [on hold]

I have created a tiny little script to fetch data from a json database, then insert said data into dynamically created divs in the browser. Only when i search for them using ...
0
votes
0answers
8 views

When should you use AppKit's key-action methods?

...as opposed to mapping each key in the code yourself to an appropriate method within the keyDown() method implementation you are most likely overriding. I am specifically asking in the context of ...
1
vote
1answer
25 views

Event action abstraction and trigger control

I am thinking of abstracting Event action in order to make further alteration/implementation/maintenance easy since the project I am currently working on has volatile requirement. So I thought of the ...
0
votes
1answer
35 views

Initialize object from SqlDataReader

As of now, we have two different styles of object intializations based on SQL row in our codebase: public Config(SqlDataReader sdr) { for (int i = 0; i < sdr.FieldCount; i++) if ...
7
votes
4answers
987 views

Is it bad practice to make methods public solely for the sake of unit testing? [duplicate]

I have a class with a public method. It has other methods that 'assist' with the purpose of the public method. The public method must be tested. However, I also want to unit test the private methods. ...
1
vote
1answer
159 views

How to merge two functions that do same things with different variables

I have these two Javascript functions that are equal except for the variables onClickVoteUp: function (e) { var $target = $(e.target); var upvoted = this.model.get("upvoted"); var ...
2
votes
2answers
57 views

Returning multiple values from a c function using pointers; style of parameter list

What is good programming style for writing C-language functions and function calls to functions which return pointers? For example, if I have a function my_function which return two integers through ...
-1
votes
0answers
22 views

one project for many clients

What do you call an iOS project that I can export into a .a or library and reuse it with different projects. For example, I have the base project that will have geolocation and twitter feed from a ...

15 30 50 per page