-1
votes
0answers
23 views

Shuffling of MCQ's in my examination portal

the screen shots attached are structure of database of my exam portal, one picture represents the question bank and second represents the test details.Test ID is acting as a primary and foreign key. ...
4
votes
2answers
87 views

How would one test a function with a large number of scenarios?

I've heard that it's ideal to have one assert (or expect or should, etc) per aspect of a component's behavior you're trying to test. Is this how it works? An addOne function would be tested like this, ...
-1
votes
0answers
29 views

Principles for secure user login/authentication [on hold]

Backstory: In my from-scratch PHP/MySQL web development projects, I often start (and end) working on a secure user authentication. I'm self-taught and never certain that my site is adequately ...
-1
votes
0answers
48 views

Sorting a 2d array in java [on hold]

I'm a high school student who is interested in computer science, I asked this question to my teacher but she told me not to bother messing around with code and trying to understand how to modify ...
0
votes
1answer
102 views

How to name this class? Is it a pattern?

I need to create a class which will have the following structure: public class MyClass { ArrayList<File> myList = new ArrayList<>(); public void addFile(File f) { myList....
0
votes
0answers
12 views

Coerce optBlock in AlgDesign R package to only show certain treatments per row of blocks

Using the optBlock function of the AlgDesing R package, I can create a block design with 16 treatments, 12 blocks (columns), and 4 treatment per block (rows) with the following code: optBlock(~.,...
0
votes
0answers
29 views

Choosing class names and relations for different user scopes

I am developing an online Order Management System using PHP in which I have some different behavioural scopes regarding the User class: some user scope under which the chronological transactions are ...
2
votes
3answers
93 views

Can government use a GNU GPL licensed sofware (phpBB) without posting the source code?

I'm now doing my internship in a government company (in India) and I've been assigned a project to create an online forum for the company.. I'm about to use phpBB forum software to create it, which ...
0
votes
0answers
18 views

Bi-directionally synchronize/mirror folders over the internet

I am programming on the C# stack, but I have next to none Azure experience. We have several customers who have various processing needs on data files that reside at the customers computers. We want ...
1
vote
1answer
44 views

How to implement a secure way to allow users to reset password via url?

Password reset option should be given only if the link has come from that specific user's inbox and not from somewhere else. How to implement url in such a way that the required information i.e. ...
1
vote
1answer
37 views

jersey post with a huge payload

I have a requirement to write a POST endpoint where the payload is huge(not normal). In the order 10s of Megabytes. And this endpoint will be accessed by a lot of clients (in the order of 1000s) ...
1
vote
2answers
48 views

What should I do if I published an app with a wrong package name?

I found out that the package name should follow the web domain you own for this application / developer Id. I published an app starting with com.health... (example) because I didn't know better at ...
-1
votes
1answer
56 views

use of UDP in DNS

UDP provides no guarantee for delivery and no protection from duplication and is connection-less protocol but why then DNS uses UDP protocol. Please make me clarify. At what conditions we should ...
-2
votes
0answers
23 views

Redis connection failing [migrated]

So I have node app docker containers running, and they run fine, but I noticed over the course of 1-2 months all of my apps begun having errors with redis, seems like the connection is not making it / ...
-1
votes
2answers
66 views

Help in estimating cost for software project [on hold]

I am working as a freelancer developer and i am working full time at their site daily. Now i want give a quote for new project. Am doing this in wpf and c# and this project includes 2d graphical ...
0
votes
0answers
14 views

Best way to create integratable module for mobile apps

Let's say I want to build a mobile App which others can include/integrate in their app as a separtate module. The goal is that the customers can add the functinality of my app into theirs. Since the ...
2
votes
2answers
54 views

AMQP broker and happen-before guarantees

I am trying to figure out how an AMQP broker, such as RabbitMQ, can be integrated in our architecture. This should allow to easily scale horizontally in the future. For the sake of simplicity, let me ...
0
votes
2answers
76 views

Why python doesn't provide optional types?

I've recently used typescript, and I think the ability to mention or not types is great. It greatly reduces the debugging time while also giving you the advantages of an untyped language. I could ...
38
votes
7answers
6k views

In software programming, would it be possible to have both CPU and GPU loads at 100%?

This is a general question on a subject I've found interesting as a gamer: CPU/GPU bottlenecks and programming. If I'm not mistaken, I've come to understand that both CPU and GPU calculate stuff, but ...
4
votes
1answer
97 views

Should the ability to locate where code is being used be a consideration?

I was modifying a class whose job is to load other classes from the same directory. Basically, everytime a new class is added you need to add a new CommandClass; statement to this class for it to be ...
1
vote
0answers
19 views

Company mobile devices management

Being a mobile apps development company we have a shared pool of mobile devices available for everybody who needs them for manual testing. Teams are growing, new devices are comming and we faced a ...
3
votes
3answers
130 views

How Does An Interpreter Work?

I've been searching for tons of websites for how an interpreter works, but I found none of these explain how Interpreter works internally. But I found in many places how compiler works with all the ...
0
votes
2answers
147 views

IF statement with OR logical operator

Just a basic question on IF statements in programming languages, specifically C++. Consider the following basic code example: int i = 2; if(i == 2 || i == 4) { //do something } Because the ...
6
votes
5answers
349 views

If A has B and B holds reference of A, is it a flawed design need to be fixed? [duplicate]

Suppose, I have class Boss and Worker; Boss has a Worker and Worker holds a reference of Boss: Boss.h #include "Worker.h" class Boss{ public: Worker worker; }; Worker.h class Boss; class ...
2
votes
0answers
27 views

Maven Build Lifecycle: validate

In the build lifecycle in maven, I encountered the validate phase described as validate the project is correct and all necessary information is available to complete a build 1. what are the check ...
0
votes
1answer
41 views

For interaction by other programs: command line, sockets, or something else?

I'm beginning an open-source project for logging work hours. The intention is to build something similar to Git, where instead of pushing code you're pushing information about work hours and progress. ...
0
votes
0answers
26 views

creating a teartown in integration test by deleting the test database and load the mdf again

I had a Friday developers debate with all my smart colleagues about Tear down process in Integration testing. They are putting a debate that getting a new database mdf file is better while during ...
0
votes
0answers
28 views

Debugging a intermittent bug by inducing failure and then fixing that induced failure: what's it called?

I just "fixed" an intermittent failure by this process: Observe intermittent failure Debug code; at one point near where the failure could be, pause execution, and inflict harm upon a variable (by, ...
0
votes
1answer
26 views

Design question to best option for storing data in file or DB

I am working on a feature where I need to store some data and I am not sure what should be my best option to store this data. I am sending data to some third party and want to show some part of that ...
1
vote
1answer
118 views

What are the significant memory management models aside from Java (GC) and C++ (manual approach)? [on hold]

There are at least two distinct memory management models: Java (we do it for you) C++ (it is your responsibility) I have two questions: (1) Is GC language specific or compiler specific? (2) Do ...
3
votes
1answer
71 views

Why don't more functional languages / tools feature case-split and expression search? [on hold]

I was blown away by a recent presentation on the Idris language. One thing that looks particularly powerful is its case-split and expression (proof) search features that you can use in the IDE/REPL to ...
-2
votes
0answers
55 views

What's the difference between subversion and tortoise SVN?

Just like my title states, I want to know what the difference is between subversion and tortoise SVN. I know they both have to do with version control but I'm unsure as to how they both fit in. Do I ...
2
votes
2answers
73 views

How do I manage a major overhaul of an open-source project with git?

I have a somewhat popular open-source project on Github, and I'm getting ready to do a major overhaul - completely different directory structure, substantially different versions of major components, ...
-3
votes
0answers
39 views

How to connect user input in HTML with an SQL database? [on hold]

I'm creating an e-commerce site where I need users to log in with a username and password, and also add stuff like credit card information and address. How can I take the user input in HTML and ...
1
vote
1answer
54 views

Scrum: Product Backlogs and Tasks

Recently I have been reading the book, Scrum Shortcuts Without Cutting Corners by Ilan Goldstein. Goldstein mentions that when practicing scrum, you will write user stories and you will write task for ...

15 30 50 per page