0
votes
0answers
2 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 ...
5
votes
4answers
185 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 ...
1
vote
0answers
4 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 ...
-1
votes
3answers
71 views

Can software be legally rewritten if the original source code is not used?

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 ...
0
votes
1answer
131 views

Finite Element Shader

I am working on a geometric wrapper for a space jet exhaust impingement solver. A key part of the solution is determining what the jet can "see" and therefore hit. My model is grouped with nodes or ...
-1
votes
1answer
60 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 ...
1
vote
3answers
73 views

How to record changes to tasks in sprint backlog?

We are using Scrum for more than a year now for a mobile game project. We use a printed Excel sheet pinned on cork board almost similar to one here on mountaingoatsoftware website. During the sprint ...
1
vote
1answer
188 views

How are dynamic images programmed?

I have two friends that want to create a jewelry store, focused on customized jewels. The core feature is the jewelry designer, based on a jewel model. Here's an example of the sort of thing I am ...
-3
votes
0answers
10 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"; ...
-3
votes
0answers
12 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 ...
0
votes
0answers
16 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. ...
1
vote
1answer
254 views

Clarification about Event Producer in StreamInsight

I need a small clarification about StreamInsight, I know by doc's that StreamInsight can handle multiple concurrent Events. But will the event producer be a separate function, for ex: I need to watch ...
-4
votes
0answers
47 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?
1
vote
2answers
65 views

What are microcontrollers programmed in most in industry? C or Assembly?

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 ...
-3
votes
0answers
29 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 ...
1
vote
2answers
70 views

Dynamic gesture recognition with fingertip points

I have built a fairly robust program in c++ which tracks several points on a hand. It accurately quantifies the size of the palm, the center of the palm, and the fingertip locations among other hand ...
0
votes
0answers
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 = ...
1
vote
3answers
156 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 ...
-1
votes
0answers
14 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 ...
0
votes
2answers
45 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 ...
0
votes
2answers
141 views

Using an answer from any question and answer site in my source code is plagiarism?

Since English is not my native language, I try to be brief as much as possible to understand my question case 1: Sometimes I cannot figure out how to make things to work like in this question,Sending ...
0
votes
1answer
40 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 ...
6
votes
2answers
343 views

How to avoid a crazy amount of interfaces in UI with dependency injection?

Problem I recently read a lot about Singletons being bad and how dependency injection (which I understand as "using interfaces") is better. When I implemented part of this with callbacks/interfaces/DI ...
3
votes
1answer
45 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 ...
-1
votes
0answers
24 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 ...
8
votes
5answers
3k views

Test Driven Development: A good/accepted way to test file system operations?

I am working on a project at the moment that generates a table (among other things) based on the contents of a file-system, and in turn does some meta-data modifications on the things it finds. The ...
1
vote
1answer
68 views
+150

Driving Linux input events from serial device

I'd like to build a RaspberryPi-based device that can communicate with my Linux laptop over USB (don't think it matters, but I'll be using a custom made USB dongle that has an FTDI chip on it, and my ...
1
vote
0answers
40 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 ...
1
vote
1answer
51 views

Yen's k shortest paths algorithm

I'm currently trying to understand Yen's k shortest paths algorithm. I based myself on the original paper as well as on the Wikipedia article, but still cannot see why it is correct if k > 2. In fact, ...
10
votes
10answers
1k views

Any tools/suggestions on how to refute code coverage quality argument

Now I know people could consider this question duplicate or asked many times, in which case I would appreciate a link to relevant questions with answer to my question. I have been recently in ...
1
vote
2answers
88 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 ...
2
votes
1answer
43 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 ...
1
vote
1answer
86 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 ...
1
vote
0answers
73 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 ...
1
vote
1answer
124 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 ...
1
vote
1answer
352 views

Generating combinations algorithmically

Suppose I have an n-high pyramid of numbers like: 1 5 8 2 5 4 8 9 3 1 2 8 3 7 2 How can I algorithmically walk through every possible path from the top of the pyramid to the bottom? To ...
1
vote
1answer
71 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 ...
6
votes
3answers
2k views

Is relying on implicit argument conversion considered dangerous?

C++ has a feature (I cannot figure out the proper name of it), that automatically calls matching constructors of parameter types if the argument types are not the expected ones. A very basic example ...
6
votes
1answer
59 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 ...
-3
votes
0answers
16 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 ...
1
vote
2answers
52 views

algorithm for shell language interpreter to find if a char is between quotes

Assume we have a string s (a C char *) that is a program in a language L. I want to parse L and know the following from the specification The following characters must be quoted if they are to ...
1
vote
1answer
117 views

When to use trait components, objects, package objects in Scala

When I am adding dependencies in Scala, I tend to use mixin trait components for those that are inherit to the class itself. For example, DaoGenerator extends Generator However, for trait components ...
1
vote
1answer
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 ...
24
votes
6answers
3k views

What do you call a function that's pure, meaning the same input will always return the same output, but also has side effects?

Say we have a normal pure function such as function add(a, b) { return a + b } And then we alter it such that it has a side effect function add(a, b) { writeToDatabase(Math.random()) return ...
-6
votes
0answers
20 views

How to use Signalr in asp.net mvc 4 application? [on hold]

I am working in project where i need to develop a chat system using signalr. I have already implemented signalr and its working but the issue is that the function for loading the messages are called ...
-3
votes
0answers
18 views

How to stop SignalR client method fire multiple times? [on hold]

Signalr get notification method is called multiple times when a page is refreshed or some messages are received. This causes abnormal behaviour in the website. How to stop it? Any suggestions are ...
2
votes
3answers
288 views

Dependency Inversion Principle - No deriving from concrete classes?

I'm not sure if I am getting this right. In order to observe proper SOLID principles, am I forbidden to inherit from concrete classes? Does that mean that every concrete class that I have more or less ...
2
votes
3answers
73 views

What should be primary guideline when defining a bounded context?

When defining bounded contexts of a Domain, what should be a primary guideline: departments (Sales/Manufacturing/Warehousing), where each department has a common context ...
-7
votes
0answers
46 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++ ...
0
votes
2answers
121 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.

15 30 50 per page