# All Questions

1 view

### How do you maintain Requirement Traceability for your projects?

In waterfall world, we used to have Traceability Matrix, which was tedious to maintain. In agile world, how do we maintain traceability? Any automation tool recommendation for the same, process ...
5 views

### What is the proper or recommended way to save String[]'s, Array's, ArrayList's and int[]'s to Android?

I've looked up this question many many times but keep seeing different answers, what is the BEST way to save array's? It seems ludicrously infantile that there is no standard or easy way to save ...
7 views

### Writing a programme in Sage/python

I am writing this code in sage online worksheet given a tuple say $a=(a_1,a_2,...a_n)$ \phi be an permutation in S_n then \phi(a)= (a_\phi(1),...,a_\phi(n)) I want to count the number of permutation ...
36 views

### Can C#/.NET be used to fully implement a media decoder and player?

One of these days, when talking to a friend about different programming languages and their uses, I mentioned that video players (and codec implementations) are always written in lower-level ...
11 views

### How and where should I put a version number in my Django project?

I'm making a Django project consisting of several apps and I want to use a version number for the whole project, which would be useful for tracking the status of the project between each time it comes ...
31 views

### Does it make sense to use a cursor for complex business logic?

I am dealing with a pretty extensive data set. After a few joins, the foundation table has something like 40 columns. The next 40 columns will all be calculated. I am trying to keep my Java clean of ...
17 views

### Valgrind missing error [on hold]

(Original post is here). Please consider the following clearly buggy program: #include <string.h> int main() { char string1[10] = "123456789"; char *string2 = "123456789"; ...
16 views

### .NET/Python packages for Semi real-time video processing [on hold]

I have an idea of a project that requires video processing. First part of the algorithm should be able to detect the change of a scene that is being recorded (backyard). This processing may work ...
30 views

### Under what circumstances would I have to release a modified version of source code (GPL)

I am working on a social networking platform using a database wrapper released under GPL. I'm fairly new to using open source software, so I'm not sure what would require me to release my source code. ...
55 views

### a variable name for 401K [on hold]

I want to create a variable called 401K. Identifiers can't start with a digit, so I named it _401K. That works but I'm getting a warning that it is not CLS compliant. Is there any better option?
37 views

### Does learning programming well require large resources? [on hold]

For example, if you want to learn Spark, would you need to invest in a Hadoop cluster, etc.? Even if there was a cheaper alternative, would it run painfully slow that it'll be detrimental to the ...
75 views

### JavaScript templating trick or treat?

I've recently been looking into using JavaScript for templating and I was wondering about the legibility of using this approach. I understand that JavaScript templating is a very common and much ...
17 views

### Unexplainable bug in my code [migrated]

So I'm trying to write a small application that changes a line in registry to enable a certain thing.. Here is my code. #include <iostream> #include <Windows.h> DWORD transparenton = ...
55 views

### Should every class I write adhere to an interface?

I'm writing a game in Typescript, and decided going in that I was going to try to adhere to the idea of "interface based programming", where you write code based on an interface, instead of the ...
17 views

### Grafana without AngularJS

I'm doing some research on Grafana to be used in a ReactJS but I don't know if it can be integrated into the project or if there is anything like that for ReactJS? Have any of you done such ...
94 views

### Can software be legally rewritten if the original source code is not used? [migrated]

Let's say I have propriety software which I recreate using solely my observations of its user interface, input and output. I recreate this software to near-perfection leaving out only trademark icons ...
88 views

### What are microcontrollers programmed in most in industry? C or Assembly? [on hold]

So recently in school we have started programming klm25z boards using ARM Assembly. I was wondering if in most industry jobs, microcontrollers are really programmed in assembly over C. It seems to ...
31 views

### Cython vs Rcpp for science

I am future ecology PhD student. I am focusig on mathematical and computer ecology. Models in my diploma thesis were written in pure R. I really enjoyed graphics options of R but I hate R's speed. I ...
46 views

### Neural networks: No solutions for test data possible?

So there are two ways of teaching a neural network as far as I am aware of. You supply the AI with test data and the correct solution to the problem. After some time the network will be able to get ...
45 views

### Logging Database Changes

What is the proper way of storing a changelog, similar to git, for data in a database. Currently, I have it set up so that every line in a table is given a unique string id that is used to ...
91 views

### Should I be using IDisposable here, to properly manage memory?

Background I have an object that represents a test procedure that I need to run on a product. This object may be used multiple times during run-time, depending on how many times the user elects to ...
19 views

### How to store logged in user's information in “myprofile” named scene in javafx?

I have created login form and a "my profile" named scene. So when user logs in it changes to the "my profile scene" but the informations don't get updated. How to store the user data in the my profile ...
17 views

### How can I protect an EventSourced aggregate from user-generated event storm?

Let's say you're building a social web app where an aggregate root (f.e. BlogPost) could be liked and unliked. Now consider a malicious user who wrote a script to perform an endless amount of like and ...
73 views

### Should composition happen no matter what?

I feel like I should be able to register all my components into the application composition root container no matter what the current state of the environment is, even in the case environment lacks ...
45 views

### Best practices for getting data by different criteria

I have one BL function and one SQL stored procedure (let's name it: getPersonDetailsById) which returns person details by passing his PersonId. Now I need to get the same details (data table) but by ...
48 views

### Protocol vs Generic

I have a class that uses a type, but it doesn't need to know anything about that type. In Swift, I can code this up one of two ways: protocol Type { } class Class { // use Type } or class ...
49 views

### how the command line arguments are efficient? and why we compile java program in cmd? [on hold]

how the command line arguments/operations are faster than GUI, and why we need to compile and run the java program on command prompt, how it is going to be effective/faster? why not compile like c/c++ ...
176 views

### What is the best way to save data of a C++ Program ? Binary vs JSON serialization

We are implementing a CAD program (in C++, Qt) where we have interdependant classes : The smallest brick is the Pattern, it is just a distribution of points. Then we have Layouts which contain ...
125 views

### Using negative numbers to return error conditions

In a method where any positive number returned would signify success, would it be good practice to use negative numbers to define error conditions? Could then use enums to make readable.
77 views

### Unit testing C code?

I learnt about the check testing framework today that seems good. This far I've scripted tests that uses valgrind so that the tests both display output from the tests and from valgrind. Is there a ...
61 views

### Sharing POJO between different handlers

I am trying to automate Business Process which can be characterized as a pipeline with distinct stages. Pipeline can be perceived as A->B->C, where A,B,C are distinct Business Steps that ...
53 views

### JavaScript Callbacks before or after exiting function?

Is there a concrete reason to prefer executing callbacks to functions before or after exiting the called function? Example function doSomethingPossiblyAsync(callback) { if ...
89 views

### The Same Behavior for Boolean and Exception

The following code uses a boolean preference active: In the active state, it does an operation which could throw an exception. On this exception, it does fall back to the non-active state. let active ...
62 views

### Methodologies that fit UX in software development

The classic development phases are requirement elicitation design implementation testing maintenance Currently we are having issues with UX joining the mix. My current job lets UX build wireframes ...
160 views

### When to malloc and free?

Valgrind does not report a memory leak during my actual usage, only during my scripted test that I scripted with a shell script to test my own shell. I found that I didn't have to use malloc every ...
28 views

### When writing test cases for node modules, where does testing begin?

Let's say I wrote a node module that is a blogging engine. There are hundreds or thousands of functions that goes into a large application. Where does writing the test case start? Possibly, a lower ...
22 views

### Delphi 7 / indy 10 getting started

I have just upgraded to Indy 10, 1/ How different is the help file and how do you install the Indy one into Delphi 2/ using idHTTP Server has any one written a good example/editorial with ...
38 views

### Handling class types when creating a scripting language in c++ [on hold]

I've been stumped by this for some time although I believe it may be quite simple. I am writing a simple programming language in c++ and I can't figure out the best way to handle variable types ...
51 views

### Is there use case for implementing a callback if a future is returned?

If I have function which returns a future, is there any reason to also include a callback where the callback is simply called right before the future completes? The only advantage I can think of ...
5 views

### Rotation logic for MNIST Handwritten Digit Dataset

I am currently applying some pre-processing to this dataset. Some of the digits are extremely rotated and I would like to know how others managed to get them 'upright'. I have implemented something ...
201 views

### Inheritance vs additional property with null value

For classes with optional fields, is it better to use inheritance or a nullable property? Consider this example: class Book { private String name; } class BookWithColor extends Book { private ...
59 views

### How can I oprimize this hash table in C? [on hold]

I want to run greedy algorithm to coloring vertex. A vertex is an unsigned int of 32 bit. And the hash table represents the important part of the graph. I must holds like 1 000 000 vertexes and edges, ...
47 views

I want to practice my coding skills and I figure it could be a cool project to make a miniature advertising network just locally on my computer. I am curious how advertising networks work on the ...
9 views

### need to find the index at p percent of the array length, and return all the values before that index point [migrated]

given an int[] x and a perentage p (0 - 100), find the smallest valued element y of x so that at least percentage p elements of x are less than or equal to y. I have code that sorts the array ...
117 views

### How far should encapsulation in JavaScript go?

I have a variable which I want to use in only one function. I can write my code like this: var theAnswerToLife = 42 var multiplyIt = function(x) { return theAnswerToLife * x } I have some other ...
308 views

### Licensing on Github

I'm uploading to GitHub for the first time and I am facing all sort of doubts about licensing. I did not know that topic was that uncovered in the net! But even it is complex, my situation is so ...
20 views

### Using Neo4j in ASP.NET application when collaborating with SQL Server?

I'm going to develop an online video platform with the feature of social network using ASP.NET. In the requirements, users can not only upload, watch and download videos, but also make friend with ...
32 views

### How to develop an online video editor? [on hold]

I need to develop an online video editor that supports the basic functionalities of video editing like cutting, combining, reordering videos and adding effects or transitions on the timeline. In my ...