-3
votes
1answer
286 views

What is disinheritance in object oriented programming? [on hold]

I am confused over Virtual Inheritance and disinheritance ? Is both are same ?
0
votes
1answer
145 views

Business logic - Server side vs client side [duplicate]

In my current project, I have a screen which pulls data from several webservices, pulls data from database via backend API and checks that all resources have the same data or not. The other ...
0
votes
0answers
97 views

A modification of singleton pattern

"Singleton" is widely considered anti-pattern ("bad" in everyday language). What about this alternative modified singleton pattern? An object constructor for our class ensures that at any given ...
1
vote
0answers
36 views

How to deal with weekly schema updates on database production server? (ASPNet MVC and Entity Framework)

I'm working with scrum methodology. thus weekly schema updates are performed to the final product. However our customer is already populating the database. How can I update the database without ...
0
votes
0answers
56 views

Heuristics/rules for programming to an interface [duplicate]

I am struggling with applying the "programming to an interface" guideline because I can't seem to decide in which situations it is necessary and in which ones it's overkill (or even counter productive)...
2
votes
1answer
27 views

Rewrite Events in EventStore

I'm thinking about whats the correct pattern to handle this case in CQRS / Event Sourcing: I created events to calculate a balance and system goes into production. By accident, this implementation ...
1
vote
3answers
171 views

Simplifying code of a calculator (help)

This is part of the code of a calculator that works on command line. It works fine and the math is correct but it's a little redundant: switch(Operator) { case "+": result = num1 + num2; ...
0
votes
2answers
80 views

Static factory method in base class

An increasingly popular definition of factory method is: a static method of a class that returns an object of that class' type. But unlike a constructor, the actual object it returns might be an ...
0
votes
1answer
69 views

Why adding positive values in Java or C# sometimes result in a negative value?

I was playing around with variables in Java. public class Hello { public static void main(String[] args) { byte byteV = 127; short shortV = Short.MAX_VALUE; int intV = ...
0
votes
1answer
45 views

MSDN - ServiceLocation Outdated Why? Alternatives?

I recently (1 month) start working in a project and as I was going through the code I saw an using Microsoft.Practices.ServiceLocation and as I searched for the documentation on that library is says: ...
4
votes
0answers
40 views

UML-diagraming a plugin architecture

I want to show that in my new system, plugins are used to control the core software components. What would be a good way to show that in UML? I will definitely use sequence diagrams to show ...
2
votes
1answer
163 views

When to lock an object in a game

I'm writing a game in Java where each game object has a number of properties, but these can all be changed in one of two ways: Every second, a tick runs which may automatically cause a change. Users ...
1
vote
1answer
42 views

ADO.NET - Is it better to handle a combo box or label event, and where should the data be sourced from?

Context I recently wrote a final exam that required using a BindingSource object with ADO.NET to populate a number of combo box and label controls from which the user could perform basic business ...
0
votes
0answers
40 views

What's an optimal procedure to create a connected cyclic grid of nodes and edges for A* pathfinding

like the title says, I'm trying to create a grid of nodes that hold edges or connections to each other so I can perform A* algorithm to have objects traverse across them as seen in your standard RTS. ...
1
vote
1answer
60 views

Software architecture for uploading dynamically created websites

I have a question that is crucial for my end of year project. Background My web application allows users to build other webapps based on drag&drop (within the domain of the webapp). These ...
0
votes
2answers
52 views

Implementing map with tail recursion

I am trying to solve this exercise. It is about reimplementing the map function in haskell for learning purpose. I found a solution which doesn't browse all the elements of the list (simple linked ...
0
votes
1answer
42 views

What are the pros and cons of using these Multithreading Models in a Client/Server Architecture

In my classes of parallel programming the teacher mentioned three models, dynamic thread creation (create threads according to demand), thread pool (create a fixed amount of threads) and mixed or ...
0
votes
0answers
22 views

Acceptance testing a Laravel package?

I and my team are developing a package that works with a UI that uses JS heavily. This means that although we can write unit tests for some of the classes. But when it comes to acceptance testing, it ...
1
vote
3answers
92 views

How do you create immutable objects with many parameters?

I need to create an immutable object but it requires several parameters to work like: class FooRepo { public string ConnectionStringName { get; } public string SchemaName { get; } public ...
0
votes
3answers
138 views

Does IEnumerable required to use foreach in collections

I have following class that didnt implement IEnumerable but working perfectly with foreach. And also , arrays are working without implementing IEnumerable. So why it is keep saying that IEnumerable ...
0
votes
1answer
25 views

Is there a way to control a looping Python script with Heroku?

I have a Python script that continuously makes GET and POST requests to a third-party API at about 1 request per second. It uses a while loop, so the requests all come from the same process. Currently,...
0
votes
0answers
44 views

Dynamic Printing Options

I believe this is the correct community to post this question in, if not please point me to the correct one. Overview: Current web app gives users the ability to print labels from specific printers. ...
2
votes
1answer
32 views

What does the Kruchten 4+1 Process View implementation look like using sequence or activity diagrams?

Having read about the 4+1 Kruchten, I am required to document a system architecture using this concept. Instead of the notations proposed by Philippe Kruchten, we decided to go with UML instead. I am ...
-2
votes
0answers
62 views

How to use a class, located in another project? [on hold]

I need to use in the my current project a class A from another project (IDE – Eclipse). To do this I add this another project in "Java build path" tab "Project". Compiling was successful, but I get a ...
0
votes
0answers
13 views

Design pattern for application development [duplicate]

I have a Window class, which represents a window (there is only one instance of it), and has an instance of every object inside it. For example: class Window { public: //... private: Button ...
1
vote
1answer
54 views

Need Async/Await equivalent for BackgroundWorker

Given the following code in the DoWork() event of a BackgroundWorker object, how can the concept be converted to the Async/Await model? I wish to execute multiple downloads simultaneously in order to ...
1
vote
3answers
72 views

Return values for a delete function in php

I am writing a wrapper function for database calls, and I am confused about the best way to handle the error cases. The function has only one argument, the id of the object to be deleted. I've ...
0
votes
5answers
138 views

Best approach to write on a database with two webservers

I have an architecture/performance problem. The problem: One voting based application with: 1 loadbalancer, 2 webservers and a database 10 candidates and 200k voting users. There may be more than ...
1
vote
2answers
31 views

'first_name' vs 'name_first' for Grouping Similar SQL Columns

When creating a table with similar bits or data such as names. Is it preferred to have the column name prefixed with a common value? Consider a table to store user information. Looking at the columns ...
0
votes
0answers
30 views

Custom C# Script and Security using CodeDom

I'm making a piece of rendering software and I want to make the tools it encompasses extensible. I've built a UI that lets the user write custom C# functions for blending values. The functions (and ...
-4
votes
1answer
58 views

User Interface and code. How they communicate? Is it just an image and nothing to do with program code

down vote favorite Hi Does UI interface is just an Image created by graphics tools?. I need to know that when a user interface created to read an textbox in c#. when a text entered is it take values ...
0
votes
1answer
34 views

Web app with a Node.js front end interefacing with a python script with sockets

Right now I have a webpage with various buttons and options that I'd like to use to send commands to a python script running on the webserver. The python script is being used to interface with devices ...
6
votes
7answers
232 views

Is it unnecessary to learn the kind of data structures and objects inside sql only because we are using another language to access db indirectly?

Suppose we are using java or python to access the database. Then is it considered a wastage of time and unnecessary to learn the kind of data structures and objects being used inside sql? Please ...
0
votes
1answer
59 views

How to send a http request through a program developed in C?

As you read in the title, for example, i wanna login to my account in StackOverflow by sending the E-mail and password through a program developed in c language, so all what i have to do is to enter ...
-1
votes
0answers
28 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
95 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
30 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
49 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
113 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
13 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
30 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
102 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
19 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
47 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
38 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
51 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
61 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
68 views

Help in estimating cost for software project [closed]

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 ...

15 30 50 per page