6
votes
2answers
220 views

Javascript MVC application design (canvas)

I'm having difficulty grasping how to structure/architect a canvas application using an MVC like approach in Javascript. UI will be fairly fluid and animated, the games fairly simplistic but with ...
5
votes
1answer
390 views

Scoping recommendations while developing in C

While developing a library using C, what are your recommendations about variable and function scoping? In C++, OOP and namespaces made the whole thing a lot easier. But how to do that with plain C? ...
13
votes
5answers
1k views

What advantages do continuous integration tools offer on a solo project?

If you're doing a solo project - would you use CI tools to build from a repository? I've used Hudson and Cruise Control in a team environment, where it's essential to build as soon as anyone checks ...
1
vote
1answer
326 views

JSP Include: one large bean or bean for each include

I want to refactor a webapp that consists of very distorted JSPs and servlets. Because we can't switch to a web framework easily we have to keep JSPs and Servlets, and now we are in doubt how to ...
0
votes
4answers
120 views

Should each method have a seperate JUnit test class?

I am writing JUnit unit tests for my classes. Is it better to have a separate class for each method, or have just one test class for every actual class?
1
vote
1answer
109 views

Object Chain through an Interface

Say I have 3+ types of objects: function Sea() { var logs = [Logs]; this.getLog = function(ind){return logs[ind]} } function Log() { var bumps = [Bumps]; this.getBump = ...
0
votes
1answer
396 views

Database Context and Singleton injection with IoC

All of the below relates to a ASP.NET c# app. I have a Singleton Settings MemoryCache that reads values from database on first access and caches these, then invalidates them using SQL Service Broker ...
2
votes
0answers
65 views

JavaScript Combination Inheritance Pattern

In the chapter of Professional JavaScript for Web Developers on OOP, Nicholas Zachas describes a JavaScript inheritance pattern which he refers to as combination inheritance. The basic idea is that ...
0
votes
1answer
135 views

How can I fetch data from more than one web services simultaneously in PHP?

I have 3 web services that are providing me data for my hotel booking engine. It is taking too long if I run them sequentially. Therefore I wanted to run them using threads, but I am not sure if php ...
-3
votes
0answers
95 views

Found NDA code online, does the NDA effect me? [on hold]

There is a hardware vendor that requires an NDA agreement to use their libraries. The process to get an NDA signed is time consuming and probably requires the purchase of an SDK. Using Google I was ...
-3
votes
2answers
82 views

Maintaining sequence number for the day while creating file from windows service [on hold]

I have a windows service which invokes a dll periodically and creates files. The file names should be in sequence. Example files will be myfile1.txt, myfile2.txt....mfilen.txt. The number will ...
2
votes
1answer
370 views

How can we perform automated performance testing?

How can we effectively manage our performance scripts? When the new codes checked in, the performance scripts should run under certain loads to measure how fast/slow it is. So, any ideas for ...
3
votes
2answers
71 views

How do you handle specific networking exceptions in Haskell?

I have the following to try and connect to a server: testAddress :: HostName -> Int -> IO (Maybe Handle) testAddress host iPort = do let port = PortNumber $ fromIntegral iPort putStrLn ...
4
votes
2answers
480 views

If statements in “generic” assembly?

I'm reading a relatively 'friendly' and simple book about compilers named "Let's Build A Compiler" (originally a series of articles). The compiler written in the book generates instructions in some ...
0
votes
0answers
87 views

Where should light come from in a programmers environment? [on hold]

My current setup at home has me with a small 60w incandescent light 7ft behind me. The room is lit like a dungeon and I'd like to change that. Where should the light come from if a desk is along ...
0
votes
1answer
21 views

Combining 3rd party javascript libraries with my code, then using Closure Compiler

I'm using multiple third party javascript libraries in my website, and right now I'm keeping each third party library as a separate .js file, with its own <script> tag. But I would like to use ...
1
vote
4answers
134 views

What should I do and know before I start writing C? [on hold]

I have a college degree in CS, and learned about Java and OCaml. Java was used as introduction, and in most CS classed, except the theoretical ones. OCaml was part of learning a different programming ...
-6
votes
0answers
18 views

problem while downloading the file using python script [on hold]

using python 3.4 import wget url = "http://www.example.com/songs/41078914/stream?client_id=bcc10d97babdd9960f87d30831e0eb9d" file = wget.download(url) error: name, ext = filename.rsplit('.', 1) ...
0
votes
0answers
3 views

HTA and VBS dynamic list and opening file in list [migrated]

First off new here and programming in general. I am trying to build an hta that can load various vbs scripts from an outside folder to make it more modular. I am current getting stuck at trying to ...
2
votes
3answers
304 views

How does one think about object oriented design and Aspect oriented Design for solution

I have worked on few projects in which both AOP and Object oriented paradigm were used. But, AOP usage was limited to logging only. I think AOP is a much more powerful technique. My question, to those ...
12
votes
3answers
1k views

Best way to organize SQL queries stored in your code ? (or should you?)

I am sure I am not the only one who gets frustrated when they see a page of code littered with SQL queries. The ActiveRecord and other ORM patterns help mitigate a good amount of SQL used in a ...
0
votes
2answers
97 views

the perils of using eval() for dynamic object creation — is this a valid argument in a consenting-adults culture?

I've read on stackoverflow explicit warnings against using eval() to create objects. The reason that seems to be given is that malicious code could be injected and blindly created objects could ...
6
votes
5answers
2k views

What are the advantages to using SQL query builders?

Are there any advantages to using a query builder, rather than using raw SQL? E.g. $q->select('*') ->from('posts') ->innerJoin('terms', 'post_id') ->where(...) vs: SELECT * FROM ...
-3
votes
0answers
94 views

Software engineer to CEO of multiple companies interview [on hold]

So the CEO of the company I intern at agreed to an interview/meeting/talk with me. He started off as a software engineer early in his career and has moved up and led many tech startups throughout his ...
-7
votes
0answers
47 views

i have this project to do its about matrix in [on hold]

well i have to write a Java program to perform matrix multiplication. The program should read two matrices (the value of the matrices should come from two different files, for example Matrix1.txt and ...
-1
votes
0answers
39 views

List of common task to make programs? [on hold]

I wonder if is already defined/know what task as generic to any programing task. For example, is very common the need to sort & search, not matter if is about arrays, list, files or tables. ...
-2
votes
1answer
42 views

What is the best solution for using PhpStorm on different computers (mac and windows) and keeping them in sync? [on hold]

I've already asked a question about my current problem. My current solution probably is going to work on same OS but what if I use different OS's? Should I use a subversion system instead of using ...
31
votes
1answer
15k views

Module vs. Package?

Whenever I do from 'x' import 'y' I was wondering which one is considered the 'module' and which is the 'package', and why it isn't the other way around?
1
vote
1answer
145 views

Java and rest OOP languages - when to use super or this keywords

I have been programming java for like a year or more, and i have always used the this and super keywords. And yesterday my mate read one source of mine, and told me not to over use it unless you are ...
1
vote
0answers
39 views

What's the canonical way to store translations of user data?

I've developed some software that allows my users to attach a blurb to some non-language specific information: Pseudocode model: item(): ID creationdate byline //Only one byline for the object ...
-4
votes
0answers
36 views

Android building recognition api for application development [on hold]

i' ve searched a lot about this feature, very similar to facial recognition,but i didn't find any google's examples or documentations. i' ve read this: google googles which seems that it will operate ...
0
votes
2answers
68 views

API - How to handle scope based functionality?

TLDR; Where and possibly how should I implement scope based logic in the example code? I have got a ASP.NET Web Api. The Api uses OData (on top off REST) for data endpoints and OAuth 2.0 ...
0
votes
2answers
103 views

What is the best practice for designing a system supporting many languages, 1 central dictionary for all languages or seperated dictionary?

I want to build a system which uses dictionary of many different language. There are 2 options: Build 1 central dictionary Table & each language is identified by langType (ex 1 for German & 0 ...
1
vote
1answer
51 views

Versioning Strategy for Service Interfaces JAR

I'm building a service oriented architecture composed (mostly) of Java-based services, each of which is a Maven project (in an individual repository) with two submodules: common, and server. The ...
1
vote
3answers
245 views

Rest API Architecture from Rest in Practice book

We maintain an API that as part of its purpose makes a call to an external API. This external API takes a few seconds to fulfil the request we make to it. With our current architecture the request is ...
0
votes
1answer
32 views

Problem : Certificate for multi Clients of WCF

If My WCF service have big number of clients through the Internet,then whether should all of them share the same Client Certificate(X509)? And if their certificates should be unique , what should I ...
-2
votes
0answers
33 views

subprocess.Popen.communicate not effient with large data sets? [migrated]

I understand communicate() will wait for the process to finish, store data in memory buffer and return. I was thinking the below code will not be efficient as I want to query all interesting rpms and ...
0
votes
4answers
3k views

Should Android development be done on Windows or OSX? Is there any difference? [on hold]

I have the option to install the Android SDK on Windows or OSX. Which platform provides a better (easier) development experience? To keep this constructive, I'm looking for any difference that ...
1
vote
2answers
58 views

Creating menu structure using DB - is that fine?

Also I have an application that basically consists of a lot of screen so user needs to navigate a lot (like go from A>B>C>D) etc. I have been thinking how to implement this (mainly hold the structure ...
0
votes
0answers
7 views

Reversing a loop with incrementing margin (CSS Stylus) [on hold]

I have a loop in Stylus: ul for num in (1..9) li:nth-child({num}) margin num px for num in (11..19) li:nth-child({num}) snum = num - 10 margin (10/snum) px The ...
1
vote
1answer
80 views

Is there a known standard data structure which is a hash table that resolves collisions using a binary tree?

Is there a known standard data structure which is a hash table that resolves collisions using a binary tree? If so what is the name of this data structure? I imagine such a structure would be useful ...
-2
votes
1answer
49 views

About re-formating a file [on hold]

I know one can format a computer drive and wipe out everything on it. But is it possible to somehow isolate a big file ( like 2 Gigabytes worth) and 'format' the file thereby wiping it out and not ...
19
votes
10answers
2k views

Should temporary code be put under version control and how?

Here are some examples of temporary/local code. It is needed in order to work with the codebase, but would be harmful to be part of it: Project files. Paths may need to be edited in order to reflect ...
2
votes
2answers
131 views

Web Services and code lists

Our team heavily discuss the issues how to handle code list in a web service definition. The design goal is to describe a provider API to query a system using various values. Some of them are catalogs ...
9
votes
6answers
1k views

Why the most famous sites on the web are not all truly Single Page Applications? [closed]

I'm currently building a single-page-application using AngularJs. While I'm happy with this way of doing, I've noticed that huge and famous sites, like popular social networks for instance, always ...
2
votes
9answers
299 views

Is too much whitespace a bad thing?

I'm often told by my friends and colleagues that I use way to much whitespace. I guess I do use a little too much whitespace. I often add a line break almost after every line and large blocks of ...
-1
votes
1answer
105 views

Python Source Code for Learning Style [on hold]

I've been making an effort to gain a more advanced understanding of Python, and several people and sources have recommend that I go find open source Python projects and look at how they're written. ...
1
vote
1answer
37 views

Queue of jobs in a different states and with different services around

I need to design a 'queue' of jobs (in a a very much UI oriented application) that can be run by a user and I need some other thoughts to pick optimal approach from ground up. My jobs can be in a ...
2
votes
0answers
35 views

In GTK/Linux, what's the correct way to get the DPI scale factor?

Context: Writing a drawing program that's supposed to be cross-platform. So I have multiple frontends responsible for providing a backend class access to a Cairo context, basic event handling, and ...
2
votes
2answers
151 views

Scrum vs. Agile vs. CMMI

I am pushing my project over to Visual Studio Online in order to have some source control. I am developing this project by myself. I have never used Scrum, Agile, nor CMMI before, and the detailed ...

15 30 50 per page