5
votes
3answers
375 views

How can I best study a problem to determine whether recursion can/should be used?

In some cases, I fail to see that a problem could be solved by the divide and conquer method. To give a specific example, when studying the find max sub-array problem, my first approach is to brute ...
0
votes
1answer
19 views

RESTful Api: Send email with links to client URL

A client can call the following REST api URI to allow an unauthenticated user to send an enquiry to a business POST /v1/public/{business_name}/enquiries An authenticated user of the system can then ...
1
vote
2answers
36 views

How to implement the repository pattern for an app that will change its database from sql to nosql on in couple of years?

** Mods, if for any reason this question is inappropriate, please leave a comment rather than putting it on hold and I will make the change according to your suggestion. Thank you. Hi all I have ...
-1
votes
0answers
10 views

Can Netflix OSS system be used for applications built in php and/or python?

I came across NetflixOSS open source project http://netflix.github.io/#repo I was wondering if it would work out of box with php and python applications. How can a person tell what types programming ...
-1
votes
0answers
16 views

Vba Copy and paste efficiency with 000's of rows and columns

Hey guys so I'm sure this is probably out there but I can't seem to find it. Basic rundown I have multiple rows and multiple columns that need to be searched through then depending on criteria, copy ...
3
votes
3answers
344 views

Are there any benefits of using this extra variable in the for loop annotation?

I have found the following loop annotation in a big project I am working on (pseudocode): var someOtherArray = []; for (var i = 0, n = array.length; i < n; i++) { someOtherArray[i] = ...
32
votes
6answers
12k views

What is the history of why bytes are eight bits?

What where the historical forces at work, the tradeoffs to make, in deciding to use groups of eight bits as the fundamental unit ? There were machines, once upon a time, using other word sizes, ...
-3
votes
0answers
12 views

How can I use two or more threads using same run method work on different arrays?

I am working on a game that requires the 2 players to control the movement with same run method using multithreading...now i can draw the two different object separately(not overlapping) but cannot ...
0
votes
2answers
39 views

How do I organizing 2 different projects with shared code

I know there have been same question asked multiple times on the programmers stackexchange. I think my question is more specific and hence decided to start a new question. My current a project which ...
-3
votes
0answers
14 views

Why 1 bytes has 8 bits? [duplicate]

Past time Latin language was used in computer for giving command ,Latin language has 256 characters,for represent 256 word 8 bits was used . 2^8=256 8 bits are enough for representing 256 character . ...
-1
votes
0answers
3 views

Best style to use multiple custom UserControls in a Grid

I have the following: A MainWindow; with Children on the MainGrid in the MainWindow: ContentControl, displays the main content of the program and has a taskbar at the bottom for user interaction ...
1
vote
1answer
57 views

Tips for understanding big project fast?

I've got a job and many new things to be learned. The first thing is to understand big project, writtened mostly in C++, using Visual Studio. So, I see a statement, and I want to find its definition. ...
1
vote
1answer
50 views

REST request of different length

When a client requests my .../resources/user URL with a HTTP GET I get the following response: <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <collection> <User ...
0
votes
1answer
65 views

Why NOP/few extra lines of code/optimization of pointer aliasing helps? [Fujitsu MB90F543 MCU C code]

I am trying to fix an bug found in a mature program for Fujitsu MB90F543. The program works for nearly 10 years so far, but it was discovered, that under some special circumstances it fails to do two ...
2
votes
1answer
19 views

Git, semantic versioning and how it fits into (my) a typical development timeline?

I'm working on a Q&A system and about to tag my current application with "1.0.0" for it's first official version/tag. It's about to be rolled out for beta testing to a limited test audience next. ...
-3
votes
0answers
42 views

How to evaluate Flow Chart process [on hold]

I am looking into one problem. Please refer following : Problem : I am new for this. Please let me know to crack these kind of charts. Thanks in advance.
0
votes
0answers
32 views

Tracing and visualizing trace on a timeline

I am working on a c++ library, which performs frequent communication with a piece of hardware. I need a way to instrument my code with tracepoints, that I can afterwards visualize the execution of on ...
0
votes
2answers
103 views

Category tree, is it worth it?

I need some insight on how to design my database regarding categories. My site allows the users to post several different types of things for example, recipes, articles, products etc and there will ...
7
votes
3answers
2k views

What software development model has worked best for software teams with heavy dependancy on hardware teams?

There are a number of competing best practices for software development. From what I have found, many teams have benefited from Agile practices in some cases. However, in some other cases, using the ...
1
vote
1answer
40 views

Why is the Document Object Model the view?

I was told by a Javascript programmer not to do DOM manipulation in model code. I also remember hearing a snazzy tune for a JS framework (I forget which one): "Get your models out of the DOM". This ...
110
votes
15answers
10k views

Leaving intentional bugs in code for testers to find

We don't do this at our firm, but one of my friends says that his project manager asked every dev to add intentional bugs just before the product goes to QA. This is how it works: Just before the ...
12
votes
5answers
949 views

How does one keep argument counts low and still keep third party dependencies separate?

I use a third party library. They pass me a POJO that, for our intents and purposes, is probably implemented like this: public class OurData { private String foo; private String bar; private ...
-1
votes
0answers
24 views

Mysql PHP PDO Blank PAge when tried to set @varible [on hold]

I got this php class from the internet which deal with mysql database: <?php class SSP { static function data_output($columns, $data, $isJoin = false) { $out = array(); for ...
81
votes
23answers
37k views

Stored Procedures a bad practice at one of worlds largest IT software consulting firms?

I'm working at a project in one of the world's top 3 IT consulting firms, and was told by a DBA that company best practice's state stored procedures are not a "best practice". This is so contrary to ...
1
vote
0answers
21 views

How to improve and maintain technical integrity of a big codebase

Suppose there's a big project (a couple houndred KLOC) that has no explicit architecture - everyone can pretty much design stuff however they like overall poor design quality (code duplication, weak ...
1
vote
2answers
56 views

pixel perfect apps techniques

While doing your iOS app development, do you try to achieve pixel perfect similarity? Is your app identical to provided photoshop designs? If yes, what techniques are you using to speed this process ...
1
vote
2answers
100 views

How can I avoid tight coupling when practically every decision-logic has to check lots of distributed state?

As the senior developer in our company, I am currently starting to move our commercial php-mysql e-commerce solution (which takes data from a specific ERP-system) from procedural spaghetti-code which ...
0
votes
0answers
4 views

From data file to Multi-Dimensional vector problems [migrated]

I am trying to write a "text adventure" engine that runs off of text and data files. I understand the concepts of arrays and multidimensional arrays, but know they cause memory leaks and not ...
-3
votes
0answers
23 views

What examples are there for mean.js? [on hold]

Is there anyone with a link to examples for the mean.js framework other than the bossable videos that are on youtube?
3
votes
1answer
81 views

Structure of stack of a function call

I've been reading Aleph One's paper on Smashing the Stack for Fun and Profit. I wrote down example1.c from his paper, modified it a bit to see what the stack looks like on my system. I'm running ...
0
votes
1answer
20 views

Exception handling scope when dealing with nested exceptions

Assume you have one object that has two methods which both throw different exceptions. These methods must be used together. For instance: SqlCon{ static SqlCon connect(string user, string pass) ...
-3
votes
0answers
15 views

What cms to use for mean.js? [on hold]

Does anyone has any suggestion for a cms (preferably javascript based) for mean.js? I couldn't find any example that shows mean.js integrating with wordpress or drupal.
1
vote
2answers
178 views

A 'task' system which has an ending, to get ready for next task

I want to make a system, so that there are certain tasks. For example, let's talk about a game. I want to make it so there are 100+ tasks doing different things, but when the player's magic level is ...
0
votes
0answers
40 views

Does a GPU have multiple processors, each of which is a vector processor?

In Appendix C of Computer Organization and Design, Fifth Edition: The Hardware/Software interface by David A. Patterson, John L. Hennessy The modern GPU that we describe here is a highly ...
0
votes
1answer
42 views

Ideal export in terms of size for asynchronous module definitions in JavaScript?

When creating AMD modules you can export whatever you like whether it be an object or a function. I vaguely recall reading a recommendation somewhere to export just one thing; the idea being "keep it ...
-1
votes
0answers
40 views

How do I become a better developer and learn how to make real applications [on hold]

I have been programming for 8 months in Java and I don't know what to do to start making real life applications and improving my skills. I am currently studying at uni. What would I need to start ...
-5
votes
0answers
28 views

How to speed up the following matlab code [on hold]

I wrote the following code to do some calculations. y1 = 0; for k = 1:L-1 for i = 0:N total1 = i*log(x) + 2*(n-m-i+k)*log(sig); for j = 0:N total2 = j*log(y) + ...
22
votes
7answers
2k views

What's the best way to avoid catastrophe caused by negligence? [duplicate]

I have been a programmer for almost 1 year. As an ADHD adult, naturally I don't have the same strength of attention on ordinary stuffs as my colleagues do. And I find the catastrophe made by me are ...
5
votes
4answers
133 views

How to convert the following node evaluation procedure to a non recursive solution?

I have the following recursive method. It evaluates a node (that represent a logical expression), using deep first search traversal : EvaluateNode(Node node) { bool result; switch(node.Type) ...
3
votes
1answer
340 views

How do you get the usernames/passwords onto a STUN or TURN server for long-term credential authentication?

The STUN and TURN specifications allow for client authentication using usernames and passwords, and call this authentication via long-term credentials. In fact, TURN requires that clients authenticate ...
0
votes
0answers
39 views

Java - Get Interface Generic Type

I'm trying to create an Interface with Generics which allows me to get the type of object in the generics but no matter what I try there's a syntax error. I've tried the following 3 methods. All of ...
0
votes
2answers
184 views

How to manage data flow between UI components?

I have been trying to use classes that implement ActionListener to respond to user input. I'm consistently noticing that for an action listener to communicate the event to other objects, it has to ...
0
votes
1answer
38 views

Internal API design for a merge sort implementation in c

I am thinking of how best to write APIs for a merge sort implementation in C. The external API should be something like int sort(int* data, int length) I am wondering whether to use the same input ...
1
vote
0answers
37 views

Hard Coded File Paths - Solution?

Say you have an application that saves image(.jpg, .png etc) and text(.txt, .xml) files, and the application has all of the files paths hard coded throughout code, per the example below. Assuming the ...
0
votes
0answers
16 views

mobile payment. Where to put the backend logic

i'm new to mobile payments and i can't seem to find what would be the best option for my situation. I have a hybrid mobile application written in js that will handle payments. We hired the service of ...
43
votes
14answers
5k views

Are there problems with using Reflection?

I don't know why, but I always feel like I am "cheating" when I use reflection - maybe it is because of the performance hit I know I am taking. Part of me says, if it is part of the language you are ...
-1
votes
1answer
87 views

Is there any harm in using amazon AWS as a development environment? [on hold]

What modifications do I need to make to my workflow, and which skills do I need to learn in order to develop with Ruby On Rails on a Linux cloud server on Amazon Web Services (AWS)? In particular, I ...
0
votes
0answers
30 views

Optimized design approach for a large database quick-referencing and lookup task bar tool [on hold]

First some background… I work for a fairly large and reputable mortgage company as a .NET Developer, supporting their proprietary software package. Their database infrastructure is massive and ...
0
votes
1answer
82 views

Abstracted better? Data driven string creation

I am trying to post this question neutral of programming language so it helps the widest audience. But for those who must know, I am using Objective-C and iOS frameworks. The background: I have a ...
3
votes
1answer
217 views

Pattern to use to relate multiple data sources to different user data widgets

I have an client x server intranet application the basically gets data from the server, format it and send that data to the client for display. At the server we are using ASP.NET C# running on IIS ...

15 30 50 per page