0
votes
0answers
1 views

Model relationships with DDD (or with sense)?

Here is a simplified requirement: User can create a Question with multiple Answers. Question must have at least one Answer. I am trying to model this simple example so to 1) match the real life ...
3
votes
5answers
244 views

In an Agile Environment, who is responsible for software architecture

In an agile team, who is responsible for making high-level architecture and design decisions that affect the entire system, not just the work being done in the current sprint? Maybe product owner, ...
2
votes
3answers
110 views

Refactoring web pages with user controls

Is it good design to use many user controls to help refactor a web application? In my case, it's a VB.NET Webforms ASP.NET website. All our pages are organized into sections that, while related and ...
-1
votes
0answers
6 views

XSLT for CASEchange

Would someone like to hack out a simple (gymnastics is simple when you know what you are doing) XSLT transform that takes an XML file that uses uppercase element/attribute names (PARA, TABLE ...
2
votes
2answers
215 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 ...
-1
votes
1answer
25 views

Inheritance vs Association in this example

I'm designing a very simple fixed asset management system in Java. The system consists of the following entities as displayed in the following ER diagram. My problem is the design approach to be ...
0
votes
0answers
7 views

Behavior Driven Testing / Acceptance Tests for python script

I have to write a script which consists of several functions like searching for a text inside a file, checking processes, querying databases ... I am planning to write several classes, each fulfilling ...
-1
votes
1answer
31 views

file quantity limit in a directory on a linux file server and why?

What is a good limit to use on the quantity of files in a directory? and why? EDIT: Why is it unprofessional for someone to create a system that puts hundreds of thousands of files in the same ...
1
vote
0answers
16 views

Data structure for traversing hierarchical hostnames

So, quite often I'll come across a situation where I'd like to process hostnames in a hierarchical manner. For example, given a hostname "foo.bar.baz.example.com", I might want to compare it against ...
-2
votes
0answers
16 views

How much/deep node.js should I learn before learning into node.js frameworks

Hello guys I just finished recently two books about node.js and played with it a bit. I am wondering how deep/much should I learn before moving into node.js frameworks like sailsjs,meteor,express? ...
1
vote
1answer
32 views

How to respond with error message when making AJAX calls

I have an app that wasn't written by myself. If there is an error such as an invalid ID given as a parameter, I would return something like: (200 code) { "success": 0, "error": "The row ...
-9
votes
0answers
33 views

Exam 483 Programming in C# Help [on hold]

I am writing my 483 on the 23 of October this Thursday. Been busy with most of the material but could use a few pointers if you've written it or know what to do in this situation.
0
votes
0answers
38 views

Tips for writing self-documenting Javascript [on hold]

I've worked with Javascript for a number of years, and I find a big issue I have with the language as it's increasingly viable for large-scale applications is how hard it is to make one's own APIs ...
1
vote
1answer
101 views

Implicit OAuth2 endpoint vs. cookies

I currently have an app which basically runs two halves of an API - a restful API for the web app, and a synchronisation API for the native clients (all over SSL). The web app is completely ...
0
votes
3answers
105 views

How to pick a platform for a new application [on hold]

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 ...
-1
votes
0answers
29 views

What are data validation best practices? [on hold]

I want to create a data validation class in my application and the data validation class' sole purpose is to check user input before I perform calculations on the user input; what is the best way to ...
70
votes
6answers
4k 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 ...
-6
votes
1answer
75 views

Environment variables in C [on hold]

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
-4
votes
0answers
17 views

Does anyone know where I could find JavaScript problem sets? [on hold]

Not sure where to post this, but I am looking for some JavaScript practice problems to try out (of varying difficulties). If you know of any website that hosts these problem sets, or if you have your ...
0
votes
1answer
83 views

How to Understand the concept of Immutablity in Functional Programming [duplicate]

I have come across several sources that say that immutability is a concept that is followed in functional programming. I have come across this concept when looking at collections in Scala where a new ...
49
votes
9answers
4k views

“Everything is a Map”, am I doing this right?

I watched Stuart Sierra's talk "Thinking In Data" and took one of the ideas from it as a design principle in this game I'm making. The difference is he's working in Clojure and I'm working in ...
-2
votes
3answers
98 views

Generate unique integer from two integers with algorithm

I am currently trying to come up with an algoritm which would take at least two numbers (say user IDs) and then come up with an unique number which is generated based on these two numbers. Each ...
0
votes
2answers
194 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 ...
19
votes
3answers
2k views

Forking a repo on GitHub but allowing new issues on the fork

I have previously forked other people's repos on GitHub, and I have noticed that issues stay with the original repo, and that I can't file issues on the forked repo. I now have the following task. I ...
0
votes
1answer
134 views

Organizing Business and Presentation entities

Background I am developing a WPF project. This is the basic structure: User Interface (WPF Project); Interfaces (class library, contains all the interfaces and the entities used by the ...
0
votes
1answer
73 views

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: ...
0
votes
0answers
32 views

Genetic Algorithm in Django: Defining an Individual? [on hold]

I'm working on a campus assignment for creating a TimeTable using Genetic Algorithm. I'm using a C++ guide at this site but coding in django using this guide. I'm a beginner in Django programming ...
0
votes
1answer
338 views

HTTP Session: A single object or multiple?

I tested two approaches to store session data: The classic: 1 key, 1 object (And every key as static final String in a class) "user" --> UserObject "preferences" --> List ... An ...
-2
votes
0answers
49 views

What's the best way to search records when there's no option to fetch All?

I am trying to get names of all students of UGA by using this interface but somehow I don't find option to get all records by name. One way I figured out to use permutations like aa, ab till z. I ...
0
votes
1answer
33 views

How to save and clear Files/PDFs received from web service in iOS apps?

My web service will send me a PDF and I have to store it locally on my iphone app and share it through whatsapp later. So how can I save this file received in my app for later sharing? How can I again ...
0
votes
2answers
174 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) ...
1
vote
0answers
15 views

Breaking a table over multiple lines in Sphinx

Lets say I have the following function with a docstring: def foo(*args): """ do some fooness +----------------------------+----------------------------------------------------+ | ...
-1
votes
0answers
22 views

Best way to approach building search functionality using PHP on existing mySQL Database

I am looking for advice on how to approach an upcoming project I am due to undertake. The reason I am asking is that I'm just out of college and the company I work for is currently searching for a new ...
-1
votes
0answers
38 views

Is Remarkup a Phabricator-invention?

Phabricator uses a markup language named remarkup. Is this a phabricator-invention? I've googled some and my impression is that it's true. I'm curious to know how widespread this markup language is ...
-4
votes
0answers
21 views

Internationalization in website [on hold]

I am web developer working on website. i need a best and simplest method for Internationalization? I am familiar with PHP. Basically i want a selection dropdown at the top of the website. Please ...
3
votes
0answers
107 views

Lightweight data modeling vs traditional classes [on hold]

I've heard a lot of talk about using lightweight data modeling as of late. Especially in relation to the Clojure programming language. What is it and how it differs from traditional classes regarding ...
-2
votes
0answers
40 views

Naming package `tools` or `utils` [on hold]

Does there exist a convention to name package containing utility functions utils and package containing executable end-points tools?
0
votes
0answers
25 views

Virtual Makeup application jQuery and HTML and PHP

I checked a website http://makeovr.com which does virtual make up on an a face . it's done on different category of the image lips, hair, nails eyes and this category further divided into more ...
9
votes
4answers
1k views

In MVC, can/should basic data retrieval from the Model be done in the View?

Given the concept of 'skinny controllers, fat models' and the general acceptance that Views can directly call on Models when requiring data for output, should one consider handling the 'get and ...
2
votes
1answer
71 views

java CopyOnWriteArrayList: Why do 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, do ...
-5
votes
0answers
39 views

How to make a 2D to 3D converter in Java? [on hold]

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 ...
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
138 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
296 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 ...
-3
votes
0answers
40 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
108 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
265 views

How would you want to see software intellectual property protected? [on hold]

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
1answer
44 views

Tool to automatically save progress while coding [on hold]

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
48 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
431 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 ...

15 30 50 per page