0
votes
1answer
13 views

Robustness and pointer safety in C++

I'm currently building a server responsible of storing and managing few million records of fairly complex and interconnected data. For reasons beyond my control the work has to be done with C++. I ...
0
votes
0answers
3 views

PHP project directory structure

Actually i'm using this project directory structure http://framework.zend.com/manual/1.12/en/project-structure.project.html But recently i started using namespaces in all my php-classes like: ...
135
votes
23answers
39k views

If immutable objects are good, why do people keep creating mutable objects?

If immutable objects¹ are good, simple and offer benefits in concurrent programming why do programmers keep creating mutable objects²? I have four years of experience in Java programming and as I see ...
0
votes
2answers
29 views

What type of structure is this in java?

I was reading the following code listView.setOnItemClickListener(new OnItemClickListener() { @Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) ...
0
votes
2answers
112 views

secure offline PC storage accessible through javascript

I'm attempting to build a browser-based HTML5 application that has the ability to store data locally on a PC (not mobile device) when offline. This data is sensitive and must be secure. Of course the ...
0
votes
1answer
255 views

State Pattern - should a state know about its context?

I am referring to the state pattern as described in this link. In the example class diagram, a context has numerous states. However, it does not show how does a state communicates with a context ...
1
vote
1answer
19 views

java CopyOnWriteArrayList : Why we have to make a full copy of source data?

I have a lot of confusion about java CopyOnWriteArrayist .I know ,when we have a modification on it like update,insert of set , it will lock the whole list , copy out a total copy of the source list , ...
-2
votes
0answers
18 views

What should i learn to create a Virtual Reality World? [on hold]

I'm computer engineering student. Actually more than knowing the answer of this question, i am trying to find ways to make myself code more programs. But this is what i am interested on. For a long ...
1
vote
1answer
102 views

Algorithm for rating books: Relative perception

So I am developing this application for rating books (think like IMDB for books) using relational database. Problem statement : Let's say book "A" deserves 8.5 in absolute sense. In case if A is ...
7
votes
8answers
247 views

How would you want to see software intellectual property protected?

Reading answers to this question - and many other discussions of software patents - it seems that most of us as programmers feel that software patents are a bad idea. At the same time we are in the ...
-2
votes
0answers
14 views

How to make a 2D to 3D converter in Java?

I know that there is software out there that creates 3D models/scenes out of a series of images. I am very interessted in how that works and so I would like to do this on my own in java. But how does ...
-1
votes
1answer
20 views

Tool to automatically save progress while coding

I would not code with out version control. But there are times when I need more than just version control. When I have saved stupid changes to a file and have not committed in a little while. Does ...
2
votes
2answers
29 views

Where to load data for things like a sidebar in MVC frameworks?

This seems extremely basic, but I've read a lot of related questions and haven't found a proper answer. Using Ruby on Rails or other similar MVC framework, how am I supposed to load data that is ...
5
votes
2answers
402 views

Design of high performance file processing web application

I'm trying to design a web app with ability to scale but can't wrap my heads around few concepts. I want to design it right but im not a experienced programmer, i have more of a system engineering ...
0
votes
2answers
36 views

How to pick a platform for a new application

What should be taken into account when choosing between desktop and web as a platform for a new application? There are definitely a lot of arguments for both platforms but what are the most important ...
18
votes
5answers
2k views

How would one handle external dependencies in an open-source project?

When one writes an open-source project and uses Google Code or GitHub, and wants to use a library like Lua, how should one do this? Should the dependency be included in the repository? Should the ...
0
votes
1answer
74 views

What to do if a feature is not supported natively on a platform? [on hold]

If a feature is not supported on a platform natively what would a programmer do? For example, when building an iphone app, if you are trying to slide a picture(just as an example- I know you can slide ...
1
vote
0answers
18 views

Calculating “instability score” for connection quality, programmatically

First of all, apologies if this is posted in the wrong site. I thought it is more suitable here than SO because the question is quite generic, more an algorithm question than a specific programming ...
2
votes
1answer
221 views

Is using MultiMaps code smell? If so what alternative data structures fit my needs?

I'm trying to model nWoD characters for a roleplaying game in a character builder program. The crux is I want to support saving too and loading from yaml documents. One aspect of the character's is ...
0
votes
1answer
38 views

Learning About Different Architecture Set Ups

I'm sorry in advance if this isn't a good fit here, as it is a pretty open-ended question. In a nutshell: where / how / when does one learn about application architecture(s)? Normally for web ...
0
votes
1answer
120 views

Reflective discovery of an inner class in an API

Let me ask you, as this bothers me for quite a while but appears to be subjectively the best solution for my problem, if reflective discovery of an inner class for API purposes is that bad idea? ...
0
votes
2answers
134 views

What is the purpose of creating a member function with the same type as its class?

I'm sure I'll botch some of the specific terminology, but what is the difference between object and object2 in this implementation? Is the only purpose of the first method (prototyping the class's ...
6
votes
4answers
2k views

How do you assign error codes?

How, when developing a medium sized project, do you identify, create and maintain error codes? I for the life of me can't think of a simple and clean method of doing so. Some of my ideas convert ...
0
votes
0answers
35 views

Handle an error system in RESTful API

Given a RESTful API, that receive parameters, send them to the business tier, and return the result the user. Suppose an error occurred in the request (parameters error or logic error etc.). The ...
-5
votes
0answers
24 views

How to get a good internship [on hold]

I am a 3rd year student of computer science from Europe. Due to personal reasons my grades dropped from 8.5 average in the first year to low 7 now, and I have had to take a year off this year where ...
-5
votes
0answers
16 views

creating a virtual museum app on android [on hold]

I'm asked to make a virtual museum app for android for my project? Are there any quick tools, helpful materials or ready templates that can be suggested. I intend to make it picture driven(good UI ...
0
votes
1answer
34 views

Storing Form Data in a class

I have a form that writes to a database. Other than creating a class handle an external API, this project is done. However, the processing script is your standard procedural calling of queries using ...
6
votes
3answers
471 views

What's the difference between robustness and fault-tolerance?

Systems / programs / distributed algorithms / ... are often described with the predicate robust or fault-tolerant. What is the difference? Details: When I google for +robust +"fault-tolerant", I ...
3
votes
1answer
128 views

Cross browser client side storage

I am developing an angularjs app. The app has to run in current FF, IE, Chrome and on iOS/Android via Phonegap. I am looking for a solution to store data in the client. Phonegap offers a web sql ...
0
votes
0answers
53 views

Similar problem to word break

I have a list of strings say L and an array of words say A. I want to find a string from the list L that is a best match to a string created from the permutations of the words in the array. The ...
62
votes
6answers
3k views

Ship of Theseus applied to GPL - Can I relicense my program if I replace all of the derivative parts?

I translated a GPLv2 C program to Python, but found it was hard to extend as designed and rewrote significant portions of it. The program is now structurally completely different, but there are ...
-5
votes
1answer
60 views

Environment variables in C

How are environment variable stored in during run time on call stack? what is the difference between env and environ pointer ? I am looking for Linux and 32-bit machine
1
vote
1answer
66 views

Version hash to solve Event Sourcing problems

The basic examples I have seen about Event Sourcing do not deal with out of order events, clock offsets in different systems and late events from system partitions. I am wondering if more polished ...
0
votes
1answer
102 views

What should be in a PIMPL?

I am kinda trying to implement a windowing library in C++, the circumstances are forcing me to implement it all myself, that's not the point of this question however. My question is: What should be ...
2
votes
1answer
35 views

BloomFilter in ruby should have k hash functions

I am reading the Bloom Filter implementation written in ruby. It should have k hash functions, but it looks like the same hash function is being used with different seed values. Is this a common way ...
7
votes
3answers
852 views

How do people deal with Android fragmentation?

I've spent the past few years working on iOS apps, and I'm now giving some serious consideration to creating an Android port of one of my apps. I'm sure that complaints about fragmentation are a ...
1
vote
2answers
96 views

Which design pattern for a single class accessing an object representing a data structure?

Which design pattern should I use when I have a class representing a data structure (aka C-style struct) and I wish to have only a single class to be able to access it. I was thinking of simply ...
0
votes
1answer
167 views

How to move away from hardcoded paths in our build processes

We have a set of Java tools that are built and run locally. Whenever one of the devs commits a change, everyone else (including non-developers) need to do an update and build the tools. Everyone uses ...
0
votes
2answers
62 views

Snmp Poller in java Single and Multiple thread [on hold]

I'm trying to make a Network Management System application. For the polling, what is better, single thread for all devices or multiple thread (i.e. individual thread for an individual device)? My ...
0
votes
2answers
85 views

Whose responsibility is it to create the interface and/or acceptance testing? Developer or QA? [on hold]

I am a backend developer and always create tests for my applications. Recently I study and apply the interface tests (using selenium), but I doubted whether I who should create these tests, developer ...
0
votes
0answers
112 views

What scientific evidence is there that an 8-hour work day is optimal for programmers? [on hold]

For a long time I have been thinking that it has been conclusively scientifically proven that working more than 8 hours per day is unsustainable, and 8 is just right[Citation Needed]. However, a ...
-5
votes
0answers
67 views

How can an experienced programmer learn C# fast? [on hold]

I'm an experienced programmer and do most of my day-to-day coding in Python, though I've also used C, C++, and Perl professionally, and am pretty familiar with JavaScript as well. I'm wondering if ...
2
votes
0answers
35 views

Which data structures and algorithms should I consider for a directed rooted tree that has high churn?

I need to represent a directed rooted tree in memory. What would be a good data structure and algorithms for performing main actions, given the particulars listed below? Size: ~40,000 nodes. But ...
3
votes
0answers
41 views

Data structures and algorithms for a directed rooted tree with inherited properties?

I need to represent a directed rooted tree in memory. The caveat is, that nodes have properties. And those properties are inherited (but not 100%) by the child nodes, recursively. What would be a ...
15
votes
7answers
5k views

Are exceptions as control flow considered a serious antipattern? If so, Why?

Back in the late 90's I worked quite a bit with a code base that used exceptions as flow control. It implemented a finite state machine to drive telephony applications. Lately I am reminded of those ...
1
vote
1answer
65 views
+100

Practices for organizing JavaScript AMD imports

Our company has been using newer versions of the Dojo framework, which have progressed to an AMD-based loader format. I'm currently trying to find logical ways to separate layer files, taking a module ...
2
votes
2answers
64 views

Database Design for Inheritance

In my project I have an object Player (attr example: pl_id, pl_data1) that is one of these types: Its GoalKeeper (attr example: gk_data1) OR Defender (attr example: df_data1) OR Forward (attr ...
-1
votes
1answer
256 views

UIDocumentInteractionController in iOS for Whatsapp Integration

I was looking for a way to share my application created files through Whatsapp. I found we can chat using custom URL scheme provided by whatsapp. But, to share files of my app, I read that I have to ...
0
votes
0answers
5 views

semicolon and commna in for loops [migrated]

for( i=0, i<3, i=i+1 ) for( i=0; i<4; i++ ) I do not understand why they are same. for( i=0, i<3, i=i+1 ) will start with i=0, then i=0+1=1, i=1+1=2, i=2+1=3, then 3 is not satisfied with ...
-4
votes
0answers
21 views

How to show php content in inner php code [on hold]

<pre><?php $my_tabs = ' [su_tabs] **[su_tab title="Overview"] '. the_content() .' [/su_tab]** [su_tab title="General Info"] [su_tab title="Photo Gallery"]demo ...

15 30 50 per page