1
vote
1answer
191 views

Avoiding long list of interfaces

Motivation Let a project where... ... exists a lot different behaviors. For each behavior, there is an interface which has its possible actions. One object could perform a lot different behaviors. ...
0
votes
0answers
4 views

ASP Database and Phone

I have created an asp server program that uses wcf data services to access a database. I have created a website that correctly uses the services. I would like to create a Windows 7 phone app that uses ...
0
votes
0answers
18 views

Using parameters in automatic integration tests

I am trying to automate integration testing in our team, and I am wondering if making tests with parameters is good or bad design. My problem is that the integration tests should run some perl ...
5
votes
3answers
214 views

Taking strong, static typing to an extreme?

It is common in strong, static typing to use different types even for variables with simple, primitive types to ease static analysis and indicate intent to the programmer. A color and a point in 3D ...
0
votes
1answer
15 views

Show Log not showing all revisions

I have an issue with Subversion not showing all revisions I'd expect to see when I look further down in the directory tree. Let this be my directory structure: trunc |____ src ...
0
votes
2answers
507 views

Is factory pattern a right pattern for the situation described here?

Is factory pattern a right pattern when we want to consolidate the related objects? Problem - In the Set-top box, I have a user-io, basically the interface to control the settop box - The user-io can ...
4
votes
4answers
884 views

Best Practice: Should error messages be handled by the API or by the App?

I am designing an application that interacts with a RESTful API. When returning error messages like Unable to sign up user Should the error message be generated by the app? or by the API? I am ...
42
votes
17answers
11k views

How to check or assess debugging skills of a person?

What kind of skills determine a person that is capable of debugging code with ease? Some time ago my friend carried out an interview with a relatively good programmer. The programmer got hired. He ...
0
votes
1answer
78 views

What would be the best way to implement priority based programming without adding too much of if-else processing logic

We need to add priority based programming in our application using java programming language. For example, there are three priorities that a phone can have: A1, A2 and A3. Also there can be three ...
0
votes
2answers
54 views

What is the difference between an abstract method and an interface

An interface requires implementation of the specified functions in a class that implements the interface. An abstract function from an abstract class requires implementation in a class that extends ...
6
votes
2answers
383 views

Is it possible to “bake dimension into a type” in haskell?

Suppose I want to write a library that deals with vectors and matrices. Is it possible to bake the dimensions into the types, so that operations of incompatible dimensions generate an error at compile ...
0
votes
0answers
9 views

Cascading ACL and drill-down data architecture

I want to implement a drill-down data architecture based on the data and the ACL permissions of a user. Lets say we have data of employees of an organization and lets consider the hierarchy as ...
0
votes
1answer
51 views

Depth First Search / Project Euler # 18

This is my first question and I do not know much about the site, but reading Help center says that "algorithm" questions are allowed. I have written some code for solving the following problem: (From ...
1
vote
5answers
243 views

Should I use a source-to-source or a traditional compiler in order to develop my own Programming Language?

I'm really interested in writing my own general-purpose high-level programming language, but I'm somewhat confused. I know that Python and Ruby were written in C, but that makes me wonder: "If I want ...
0
votes
1answer
49 views

What are the time and space complexities of this recursive method that reverses a singly linked list?

What are the Time and Space complexities of this Java method that reverses a singly linked list (of length n)? I'm more interested in knowing the reasoning behind the space complexity. Let me know if ...
-3
votes
0answers
25 views

Ambiguity with instanceof in Javascript

My question is about the following code: var name=new String("NewDelhi"); var count=new Number(10); console.log(name instanceof String); //false console.log(count instanceof Number); //true When I ...
6
votes
2answers
167 views

What's the best way to handle Windows API errors in response to system messages or when I have nowhere to return them to?

This is going to be a really stupid question and I hope it's fine for Stack Exchange at all, let alone just this part of it... Right now, my custom Table control uses panic() functions that print an ...
2
votes
4answers
1k views

What are standard directory layouts for source code, other libraries, build scripts, etc.?

I'm in the process of proposing a new standard directory layout that will be used across all the projects in our organization. Projects can have compiled source code, setup scripts, build scripts, ...
2
votes
3answers
439 views

Environment-aware Code

There are situations where the deployed environment (development, test, or production, for example) might dictate the outcome of certain actions. For example, perhaps a successful "user registration" ...
-4
votes
0answers
39 views

What Do These Java Scanner error mean? any solutions? [on hold]

I'm a beginner so please bear with me. I'm getting the following error upon running: Exception in thread "main" java.util.NoSuchElementException at java.util.Scanner.throwFor(Unknown Source) ...
2
votes
1answer
300 views

Merge two different API calls into One

I have two different apps in my django project. One is "comment" and an other one is "files". A comment might save some file attached to it. The current way of creating a comment with attachments is ...
-4
votes
0answers
12 views

Can't turn on my computer in Android [on hold]

I'm trying to develop an application which will enable to turn on computer using my phone in android the problem is I can't send the command. Every time I send the command it brings an error. I have ...
0
votes
1answer
72 views

Design: Bridge Game

I'm making revisions to a Console version of contract bridge I made in Java. The source can be found here: Bridge So most of the code is terrible and I've been trying make improvements wherever ...
1
vote
4answers
1k views

Why 'List<E>' is an 'interface' but not 'abstract class'?

Amidst defining the hierarchy, firstly, one can think to embed the abstract method(behavior) in abstract class only because the derive concrete class possess that behavior as core behavior with it's ...
1
vote
4answers
95 views

const reference and const pointer. How do they work?

I read a post about how const storage works. How does const storage work? (Item 2, Scott Myers Effective C++) This says that each segment has separate section of write protected memory and const ...
1
vote
2answers
38 views

.NET solution dependency workflow for a small dev team

We have a team of 5 developers working on a product and are at a crossroads trying to determine a better way (if one exists) of managing development workflow and project dependencies. We currently ...
9
votes
8answers
3k views

Why can't there be any implicit conversions?

As I understand it, implicit conversions can cause errors. But that doesn't make sense -- shouldn't normal conversions also cause errors, then? Why not have len(100) work by the language ...
19
votes
3answers
3k views

The principle of least knowledge

I understand the motive behind the principle of least knowledge, but I find some disadvantages if I try to apply it in my design. One of the examples of this principle (actually how not to use it), ...
3
votes
1answer
487 views

Capturing mobile device system (output) audio

I'm trying to figure out a way to capture the system audio of an Android and/or Windows Phone. The idea is to provide a stream based on the music I'm currently playing on my phone. What I'm not sure ...
-1
votes
2answers
94 views

Non-null alternative to Void (Java unit type)

I have a map-like type SmurfMap<K, V> which in certain contexts I use as a set-like SmurfMap<K, Void>. Implementation details forbid the values of the map from being null, so I cannot ...
2
votes
3answers
549 views

can you have too many dto/bo - mapping method

I have a windows service, 2 web services and a web interface that need to follow the same path (data wise). So I came up with two ways of creating my solution. My concern is the fact that the ...
-1
votes
0answers
28 views

Understanding multi-threadiing PHP (pthreads)

I am trying to understand multi-threading in PHP using pthreads via reading this article: https://gist.github.com/krakjoe/6437782 , but all the concepts/terms are going over my head. Such as mutex / ...
3
votes
4answers
1k views

How to force “program to an interface” without using a java Interface in java 1.6

In java 1.8 they have wonderful new "default interface methods". In 1.6 how close can we come? The goal: use code to keep clients from being able to tell that a class is not a java interface. If we ...
-3
votes
0answers
26 views

Looking for a complete tutorial for X11 Programming [on hold]

As in title, I'm looking for a good and complete X Windows System tutorial. I found these but they are incomplete : Linux Journal and Tronche Any suggestion will be appreciated.
0
votes
2answers
47 views

What is the value of encoders with decoders currently present

Can you tell me the value of using PHP encoder (ioncube, phpshield) with currently present service like decry.pt (http://www.decry.pt/) that can easily decode source codes. I have tried decry.pt's ...
2
votes
2answers
98 views

Creating entities with validated Addresses via REST API

I am building a REST service. This services enables the user to create an entity that has an Address. For simplification, let say this other entity is 'House', so 'A House has an Address'. The system ...
11
votes
1answer
411 views

What is a development stack?

I am just now in the process of looking for jobs as I am about to graduate from college. An interviewer asked me what my current 'development stack' is? I know this is probably a really basic ...
6
votes
4answers
2k views

What's the difference between a “developer” and a “developer-analyst”?

At larger companies there seems to be a distinction between the two positions. How exactly do they differ?
4
votes
3answers
385 views

What is “Scalable Integrated Systems”?

I've come across a job posting that asks for experience with "Scalable Integrated Systems", but honestly that sounds like "generic buzzword," and I'm trying to figure out what the actual work behind ...
-3
votes
0answers
26 views

How can i loop through string of phone number and remove the leading zero and replace with country code?

Example: I want to replace each leading zero (0) of the phone numbers with "233"; $pn_box='08064342060,08052031697,08064342060'; Though I tried doing it this way but it converts only the first ...
0
votes
0answers
29 views

Does loop unrolling on a JIT platfrom (.NET or JVM) provide any benefit

I know in C, you can use loop unrolling (unwinding) to help reduce branching in your code but at the expense of program size. That seems to work when you compile to a target machine, however, does it ...
-3
votes
0answers
74 views

How to expand a 2D-graphics program to 3D? [on hold]

Seeing that the question is not well received (whyever), I will delete this question tomorrow, and post it on computerscience @ stackexchange. So I have a program in javascript that enables ...
2
votes
1answer
113 views

Where to store configurable, global settings

As an example, let us say that I have an application with multiple users and multiple administrators. I want the administrators to be able to configure sitewide session timeouts. The code would ...
1
vote
0answers
14 views

ASP.NET MVC 5 Modifying loging options to use an existing database

I started a new MVC project using Entity Framework and added an ADO.NET entity data model object using the "code first from database" option. Which of course means I'm using an existing database to ...
-2
votes
0answers
34 views

become a better programmer - advice for finding a project [on hold]

I would like to find a project to work on for at least a few months, and I am having trouble committing to an idea. I have a game project I'd like to work on using the unity engine, but I know its a ...
0
votes
0answers
5 views

Do VPNs really mask your identity or is it a facade? [migrated]

Disclaimer: This is NOT intended to educate myself or others on carrying out illegal activities. Someone always gets butt hurt when you ask borderline questions. So please save the flames. I am ...
0
votes
0answers
3 views

Facebook User Taggable Friends [migrated]

I'm very new to iOS development and am having trouble figuring out how to convert Facebook's tutorial on Facebook's user taggable friends from Objective C to Swift. Here is the link to Facebook's ...
-4
votes
0answers
15 views

Lambda Architecture on Google Cloud Platform [on hold]

What is the easiest way to run Lambda Architecture on Google Cloud Platform? Do Google Cloud Storage, Google Cloud Pub/Sub and Google Cloud Dataflow fit well?
4
votes
2answers
84 views

Functional Programming - Functions defining specific evaluation of functions passed to it for optimization

Firstmost, I am just getting started with functional programming so I would appreciate corrections in any terminology I may have used incorrectly. Story time, While doing a Project Euler Problem 1 in ...
4
votes
4answers
189 views

Single method with many parameters vs many methods that must be called in order

I have some raw data I need to do many things to (shift it, rotate it, scale it along certain axis, rotate it to a final position) and I am not sure what the best way to do this to maintain code ...

15 30 50 per page