1
vote
0answers
55 views

Avoiding Double POST

We are implementing a RESTful webservice that will allow client applications to POST documents to it and it will store the document returning a unique identifier in the response. The clients will ...
3
votes
2answers
216 views

Haskell syntax for type definitions: why the equality sign?

I am a bit confused by the choice of Haskell syntax for type definitions, like in data Foo = Bar Namely: does the equality sign here really mean an equality in some subtle sense, or is it just a ...
-5
votes
0answers
86 views

Dow Jones “Print” C++ [on hold]

I am in the process of learning c++ through my friend challenging me to make certain programs (calculator, file opener/saver etc). This time I have been challenged to make a function that returns the ...
-2
votes
1answer
56 views

Convincing Management to Invest in Scrum Master Certification for Developers [on hold]

How would one go about convincing management to invest in reimbursing developers who wish to pursue Scrum Master certification? One could argue that this certification is not in line with their job ...
2
votes
0answers
37 views

What's the name of this category of variables (NEW, OLD, etc) in triggers?

I need to do some very specific web search, but in order to do that I need to know what's the technical name of the category/type of variables like NEW, OLD, USER ( the could be more ) that you can ...
0
votes
0answers
28 views

How does Stripe generate tokens?

Stripe can accept credit card details directly (through a custom form) or through their Checkout front-end and generate a token. The question is: how is the token generated? I mean, I presume the ...
1
vote
0answers
48 views

Which process should I implement to quick delivery of working feature?

I've been working for more than 5 years now. Most of my work is with .NET, C#, MS SQL Server. I work in a company where we develop web services and 98% of the code is in asmx, not object oriented and ...
-2
votes
0answers
28 views

Count number of distinc rows in mysql? [on hold]

I'm having a mysql database like this Col1 Col2.... 1 1337 1 monkeys 2 34 What i need is how many of col1 occurences each. So for example the result should provide 1 2 2 1 That is, ...
0
votes
5answers
299 views

IS C++ a cross-platform language? [on hold]

If I create a game in C++ on a mac using a library which is the same for both windows and osx, will the game be playable on both windows and os x or it will only work in os x because I done it in ...
0
votes
0answers
102 views

How does programming languages look like to native English speakers? [on hold]

I have started to learn C++ as a very young kid, and got proficient* with it much faster than I did with the English language. I have used numerous words as a programming keyword a long time before I ...
0
votes
0answers
41 views

c# WPF Compare two directories and show how to make it identically [on hold]

Let’s presume we’ve got two directories, each one contains several subdirectories and files. Each subdirectory again contains directories and files (... and so on). My task is to write an application ...
1
vote
1answer
32 views

How to allow multiple plugins to provide data for multiple aggregation processes?

I'm working on a Java project in which we want to have data collection plugins that collect data to be processed by one or more data aggregation modules. The plugins will all written in-house. Say for ...
0
votes
0answers
18 views

how to reduce or stop duplication of relation's entry in treeview

I want to create tree-view for display or show family member's relation. For this I created 3 tables i.e following. familyDetails->[f_id,fname,lname] relations -> [r_id,relation] .....//e.g ...
1
vote
1answer
35 views

What is Object Services class purpose?

I'm reading a book on TDD: (btw this question has nothing to to with TDD) link to the book on amazon Author often mentions/uses Service Classes For example we would have a Person Object Person would ...
1
vote
2answers
59 views

Design of active or passive class domain

Sorry if my (simplified) example is too broad. Given this model (written in C#): class Ball { } Let's assume that a ball can be launched. To implement this feature, I can define something like: ...
1
vote
3answers
147 views

When is a number a magic number?

Over the last couple of months I have been diving into coding standard IfSQ. As a part of this IfSQ standard, a rule is to not use Magic Numbers. While I don't have a problem with building this rule ...
0
votes
5answers
171 views

learning algorithms or learning a new language [on hold]

So I've been self studdiing two things. Algorithms/data structures using java and learning c++. I have books for both. But I'm slowly finding out that learning these two and doing CRUD programming in ...
-2
votes
0answers
69 views

Is there any layman guide that explains how to interpret Github commits? [on hold]

This question was closed so I crafted this self-answered question that can be used as newbie guide. I encountered the following rather weird case. Someone complained about some specific problem in ...
0
votes
0answers
121 views

Is Tomcat smart enough to make use of multi core processor?

I am developing a tool using servlets. In order to make something to work way faster I have to do multi-threading in Java. My question is can the Tomcat server do it behind a scene? On another ...
0
votes
2answers
115 views

Do VMs use one stack for everything?

Most VMs have a "call stack" to keep track of where to return from each function that was called. This is often simply regarded as "the stack". However often a stack is needed for operations that ...
-4
votes
0answers
36 views

What is your notable misconception/error/misperception you ever faced during programming? [on hold]

Let me exemplify with this scenario: My First misconception: 'In objective c, by using == operator we are n't comparing string values but pointers (which will always remain different despite their ...
-3
votes
0answers
56 views

Developer without good logic developing business applications that requires better logic [on hold]

I'm in programming more than 7 years now. I'm working last 2 years in company that produces business web applications. I'm making good money here, good salary. What is problem is that I love this ...
0
votes
2answers
42 views

Data model - inheritance

I just started working on a project where I am trying to implement some backend logic which includes creating a data model for the given problem. Here is a problem I came across and I am curious what ...
-2
votes
0answers
27 views

Ecommerce Software written in PHP [on hold]

I have to develop an ecommerce website which does not have any products but fetches all the products from external sites like Amazon etc. I know of many ecommerce solutions but they are two complex ...
0
votes
1answer
35 views

Creating system diagrams for a small app

I am learning system design (on my own) and still I am not clear on a few things. Assume there is a simple application with a front-end and a database for storing of the data. In the system ...
1
vote
1answer
31 views

How should data transfer between a client and a web API for normalized data be designed?

I want to design an API backed by some database (doesn't really matter which, but to make the discussion more interesting, let's say it's Mongo - explanation below) which sends data to a client. The ...
1
vote
1answer
102 views

Testing an MMO server [on hold]

I'm working on a server for a very large (feature wise) MMO. After some bad experiences with breaking changes that caused bugs weeks down the line, we'd like to add unit/automated/regression tests to ...
-2
votes
0answers
53 views

Evenly Distribute students into rooms based on student study subjects and room capacity limitations [on hold]

The problem is that I need an algorithm (preferably in PHP) to solve the following problem. Students need to be placed into dorm rooms of varying capacities based on the subjects the student is ...
1
vote
2answers
54 views

Is there a stricter strtoull() in any ubiquitous C library?

I want a function that will interpret a string as a strictly unsigned integer, failing when the string overflows, represents a negative number, or does not represent a number. strtoull() does set ...
0
votes
0answers
13 views

Run RSpec from within a ruby script while refreshing all ruby configs etc

I'm working with a very large project with tons of established tests that include some reasonably complicated environment setups and what not. I've recently run into a situation testing some ...
-3
votes
1answer
115 views

can non-programing fizzbuzz work? [on hold]

We all know what a fizzbuzz is and I've seen many varients of programs to be implemented. However, it takes time to watch someone write the code out, it seems time inefficent to sit there watching ...
-1
votes
0answers
44 views

Foreign key validation in Model

I'm proposing you a question posted at Stack Overflow but that in my opinion deserves to stay here because it concerns the conceptual world of programming, independently of the technology used to ...
0
votes
0answers
46 views

What permissions do I need to use an API? [on hold]

I am creating a web app in which I am using the API of another web app. The API is public. My whole webapp relies on that web app. Now I need to know what permissions do I need to start using their ...
-2
votes
0answers
19 views

Case studies for online classified sites like Craigslist? [on hold]

I've started to go over what would go into building a small classified advertising site (note: no electronic payments of any kind), and I'm wondering if there are, just as there are hundreds of case ...
2
votes
0answers
46 views

Implementing a generic and covariant Set in Scala [migrated]

I'm struggling with manually implementing a simple purely functional Set that's also generic and covariant on its type parameter: Set must be a trait, allowing for multiple implementations. it must ...
0
votes
0answers
44 views

Html/php script (POST method) works on local host but doesn't do anything on my hosting website [migrated]

I want to make a script for my website that it shows a form and a visitor can write his email and a message this is the code: <html> <head> <title>Feedback</title> ...
-1
votes
0answers
25 views

Good example of annotated coffee-script code [on hold]

I love writing JavaScript. I also love CoffeeScript. The thing that I miss in .coffee files is the beautifully annotated JSDoc and more importantly the way the code looks. I'm aware that there are ...
0
votes
2answers
43 views

Encapsulation: Separate functions for separate variables, or return a table? [PHP]

I have been making a website with PHP and I have a few classes, so far none of them really follow encapsulation rules of OOP. Lets say I have a user class like so: class User{ public $username; ...
3
votes
1answer
415 views

Why are there so many CSS properties which are essentially the same?

This answer really made me wonder. I've written CSS before and (usually) I don't really bother to support browsers other than recent firefox and chrome, but in researching I've noticed that, for the ...
0
votes
0answers
29 views

JavaScript Compression and Caching of Assets

I'm working on an idea that i can't seem to find a good answer though hours and hours of searching, I'm planning a small Canvas/WebGL Application this application will be using WebSockets to talk to ...
-3
votes
0answers
25 views

What's a cost-efficient solution for mobile app backend hosting? [on hold]

Looking to develop some simplistic mobile apps (think Yo), but the primary challenge is that they all require a backend, even the simplest of the simplest. Can anyone advise which backend hosting to ...
-1
votes
0answers
5 views

Cannot pass CasperJS result back to PHP [migrated]

I am trying to pass CasperJS results to PHP but it's not working (the output is empty). Here is my code: <?php exec("casperjs test.js", $array); print_r($array); ?> The exec works for any ...
1
vote
1answer
78 views

How do VMs implement function calling?

I'm reading a compiler textbook that compiles to some form of assembly. Since I don't know this assembly language I decided to invent my own simple "assembly language" and implement a basic "virtual ...
3
votes
4answers
140 views

In general, should an organization adopt a single methodology or decide on a per-project basis?

I work for a company that, in my opinion, should be doing all of it's web development work in a fully agile manner. We have vague, competing ideas about the product at any given time. And we have ...
-3
votes
0answers
51 views

Fastest means of communication within a WIFI network [on hold]

I'm looking for a way by which two devices could communicate multiple zipped files within the network. I'm planning to do it as a http service call using a server, but it might be slow when compared ...
-1
votes
0answers
60 views

Object based programming paradigm [on hold]

How does classes enforce information hiding and abstraction in object based programming? also,How does object based programming localizes the implementation details. Note Object based programming ...
0
votes
0answers
44 views

Java swing - fading in a component by alpha setBackground, correct synchronization [migrated]

I am making my first GUI, for a project of mine. I made the first page, login for it. Now I have a login button which should let the controller know when it's clicked and pass the username and ...
1
vote
1answer
215 views

I made improvements to free code I found online and notified the author. Was this the right thing to do?

I recently used a library from http://www.braemoor.co.uk/software/index.shtml (the EU VAT No validation library at http://www.braemoor.co.uk/software/vat.shtml) in a project at work. It mentions as ...
0
votes
0answers
24 views

docker-izing a classical db-based webapp - single or multiple containers?

i have a classic java webapp. its composed of a database (postgresql), a servlet container (tomcat) and my code (deployed on tomcat as a *.war file). i want to package/deploy it using docker (mostly ...
0
votes
1answer
31 views

Storing and accessing settings from database query

I am trying to figure out the best way to accomplish this so feel free to criticize my thought process. My tool has different locales and each locale can have different settings for the tool. For ...

15 30 50 per page