0
votes
0answers
9 views

How to store users' info in network app?

I'm currently working on a school project that aims at creating a P2P chat client for users on the same network. For now, it will only be used by users on the same LAN network. But hopefully,I will to ...
0
votes
0answers
17 views

Is it a good practice to burn business logic into Enums?

Let's have a simplified business logic like this: public enum BusinessLogic { STAGE_ONE(true, false, false), STAGE_TWO(true, true, false), STAGE_THREE(false, false, true); private final ...
1
vote
1answer
18 views

Trying to Move Logic to DB - Reservation System

So I'm planning a basic resource reservation system. Basically I'm going to have a room (resource) that has X number of open spots per 30 minute increment. When someone reserves a resource I would ...
-7
votes
1answer
20 views

Difference days of two dates [on hold]

This code will compute the the total days between two dates using date chooser now my problem is the result gives me a negative number, the number is correct but it is in negative form, how to put it ...
0
votes
0answers
24 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 ...
1
vote
1answer
23 views

How to normalize a table that contains a CK not included in the PK?

I have the following table. The PK is model_ID. Assuming that the modelName field is unique(that is, no two brands can have an identical modelName), there is a transitive dependency between modelName ...
-3
votes
0answers
14 views

Listing all possible binary search trees [on hold]

I'm stuck trying to write a program that lists all possible binary search trees that has n values from 1 to n. I tried to solve it by recursively listing all subtrees, but have trouble implementing ...
0
votes
0answers
13 views

Where should the DB server be and its updates scripts should run from where?

I currently have a web application and database on the same server. I am moving the database to a new server that is spec'd for being a database. Now i have nightly scripts that run on the web ...
0
votes
3answers
75 views

Should abstract classes be used to prevent instantiation

Is preventing the instantiation of a class a valid reason to make it abstract? For example, if I have a class called Gauge which has subclasses HeadingIndicator and AirSpeedIndicator, is it a good ...
-2
votes
0answers
18 views

How to evaluate Flow Chart process

I am looking into one problem. Please refer following : Problem : I am not able to start its execution. Can some one let me know how i can assume value in starting ? I am trying to put x in box 5 ...
-1
votes
0answers
23 views

Best practices for conditional content restriction

Best practices for conditional content restriction I've spent a while coming up empty after several search attempts for best practices regarding, something I can only describe as conditional content ...
0
votes
1answer
11 views

Merging user activities into one stream with a common representation

My social network website currently has forum threads and posts gallery pictures albums on the users' profiles group discussions classifieds I would like to create one "stream" of activity. It ...
-1
votes
1answer
30 views

Algorithm for merging multiple rows of data

I need an algorithm to merge multiple rows for data, where one column is the index column and if one or more rows have the same index value merge the column values into a single row, and lastly sort ...
31
votes
10answers
2k 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 ...
-6
votes
0answers
31 views

How to compute days between two date choosers [on hold]

How to compute days between two date choosers and show it inside the textfield; is this correct and what is the code should i input inside the settext Date date1 = this.dcStart.getDate(); Date date2 ...
0
votes
1answer
47 views

What is the correct answer of given problem?

Consider a system having m resources of same type and 3 process A,B and C have peak demands of 3,4 and 6 respectiveley. What should be the value of m such that the deadlock will not occur ? My ...
0
votes
1answer
20 views

Bundling style and script files in asp MVC layout page

How to bundle style and script files using layout in asp MVC? Here is an example. Layout1 uses style and script file for header and footer functionality. Sections are declared. View1 uses Layout1 . ...
-2
votes
1answer
17 views

SystemUnderTest versus other nomenclatures

this is a minor issue but we are a worldwide company trying to unify some criteria and we are using systemUnderTest to name the variables used in our unit tests while others are using other ...
1
vote
1answer
67 views

How to politely decline a pull request?

There was a pull request made on one my repos adding explanations on the README file. Unfortunately, it's hardly understandable and I doubt will be helpful. What ways can I do to politely decline ...
1
vote
1answer
71 views

Creating variables in methods/functions

In how far do we create variables in our methods or functions? Do we only create one when we're using the result of the variable more then one time like this? function someFunction(SomeClass ...
6
votes
2answers
136 views

Should I keep email addresses as plaintext in database?

It's clear to everyone (I hope) that storing passwords without at least salting/hashing them is a terrible idea. What about emails? Let's say you keep the subscription email address, if you encrypt ...
0
votes
1answer
42 views

Application with really dynamic data structure

Well, I'm on the verge of this project that really puzzled me. The situation is, in our office, we have a department that collect data about the corporate performance indicators from all across the ...
0
votes
4answers
154 views

When is it not acceptable to model physical world objects with classes?

Does Object Oriented Programming Really Model The Real World? [closed] also "Firstly, A represents an object in the physical world, which is a strong argument for not splitting the class up." ...
-4
votes
0answers
28 views

High quality Bachelor's programs in Computer Science from Europe Universities [on hold]

I'm interested in enrolling in a Bachelor of Computer Science from a European institution (US also however money is a factor). I am a EU and Australian citizen. Could anyone suggest places to look or ...
0
votes
1answer
28 views

TLS alternatives that do not require a central authority?

I am creating a peer to peer program that runs on client computers connecting to other clients. I will be using Boost.Asio. The only options that I am aware of for securing these connections is using ...
0
votes
1answer
31 views

Implementing an interface already implemented by a parent class?

If a class extends a parent which defines an interface, should that class also explicitly implement the interface? As an example, is it better to include or remove the portion in square brackets ...
-2
votes
0answers
14 views

Is it adoptable in OLAP/OLTP to use in-memory storage such as redis?

To design data warehouse solution it seems relational db And stored procedure are popular in this domain, how about redis like db? What's the drawback to use them here?
3
votes
1answer
42 views

How specify acceptance criteria for randomness?

How would I express a Behavior Driven Development (BDD) acceptance criteria/story/scenario that indicates items should be random to some degree on a Home screen of an app like Instagram? Here's what ...
2
votes
3answers
268 views

Why do python generators and functions share the “def” keyword?

Consider the following: def some_function(): return 1 def some_generator(): yield 1 In the code above, some_function is a function, while some_generator is a generator. They look quite ...
-1
votes
0answers
28 views

Font creation library?

I need to create a font, and I need several... hundred... thousand characters. Maybe millions. I cannot draw them manually over the course of this century. However, I am able to draw all of them ...
0
votes
0answers
15 views

Best strategy for converting change in longitude and latitude to north, south, east, west in degrees

This is not a class assignment but a conceptual question I'm struggling with for a personal project. I need to convert a large paired group of long and lat coordinate values that show a ...
-4
votes
1answer
66 views

In my code everything works fine, when i debug i always get a 0 for smallest. why? [on hold]

NOTE I JUST STARTED LEARNING C++. THIS IS SCHOOL WORK AND WOULD APPRECIATE IT IF SOMEONE TAUGHT ME INSTEAD OF GIVING THE ANSWER. int a = 0; int b = 0; int c = 0; int sum = 0; int average = 0; int ...
2
votes
2answers
51 views

are multithreading, multiprocessing, multitasking implemented at instruction set or OS?

On a computer with a single cpu core, must a multithreading program be implemented based on an OS? Can it be implemented in the instruction set and run without an OS? Can multiple programs run in ...
-2
votes
0answers
29 views

how to identify http requests made with a java app

I am an avid Go player and play on the Kiseido Go Server. The only client I know is the one app CGoban which operates in desktop Java (https://www.gokgs.com/download.jsp), or if you wish as a Java ...
-3
votes
0answers
25 views

Making Looney Tunes Dash styled game. Starting advices? [on hold]

I'm new on this website. I have experience in iOS apps, but never got into game development. So, I'm new in this field. I was interested to know how they make a 3D character running game style like ...
1
vote
2answers
30 views

HTTP status code for mobile clients

There was a debate with one of the platform engineers (as a mobile dev), about the codes being returned. The scenario is: when trying to create a resource the server is returning a 201 with the ...
0
votes
0answers
40 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 ...
0
votes
0answers
20 views

ObservableColection and Animations in EventHandlers

Background I'm writing a Windows Store app in C# / XAML that incorporates multiple ObservableCollections. The elements in these collections subscribe to a number of Events to start a variety of ...
0
votes
2answers
25 views

How do we sequence logs from different services in a system?

So, if I am designing a system as a set of different roles (client, app-server, backend services 1 to n). Each of these roles will have their own logging mechanism. I can aggregate all the logs at one ...
1
vote
2answers
35 views

Sell dual licensed software with 3rd party contributions

I host a project on GitHub. Right now it has a custom license (shareware) but I'm going to move to a dual license AGPLv3 + commercial license. I would like to have some information about the ...
1
vote
1answer
22 views

Is having source code for a Go project outside GOPATH a bad idea

I am working on a new project using Go, and we are all new to Go. We are following the standard go directory structure, and having all code under $GOPATH/src/github.com/companyname/projectname ...
0
votes
3answers
141 views

Should Perl scripts really have no extension?

I just began reading O'Reilly's Learning Perl, 6th Edition and was surprised when I came across this excerpt. #!/usr/bin/perl print "Hello, world!\n"; Let’s imagine that you’ve typed that into ...
-6
votes
0answers
21 views

Need help with CSS and HTML having trouble with styling [on hold]

I am having trouble editing my personal site. I am trying to display some links in the top-right of the header but it is showing up below the whole header in a place I don't want It to be in... Here ...
0
votes
1answer
24 views

RESTful way of referencing other resources in the request body

Let's assume that I have a resource called group with the following representation: { "id": 1, "name": "Superheroes" "_links": { "self": { "href": ...
-4
votes
0answers
55 views

How to ensure that the Programmer is not reselling my App? [on hold]

I'm a teacher. I am paying a programmer to built my App to teach Spanish. I have created the whole App and every single functionality, activity, design, look, content, etc. The programmer I hire is ...
1
vote
2answers
126 views

Software release question: do you refactor pre or post-release?

I work in finance and we have some calculators that I support. I can come up with programming solutions, but I don't have a lot of software design or release management experience. I was recently ...
2
votes
3answers
67 views

Is it bad practice to register assemblies in the GAC?

I have moved a few assemblies to the Global Assembly Cache because they are used by multiple applications i.e. a VB.NET app and an ASP.NET app. I remember a few years ago when I started in my current ...
0
votes
3answers
152 views

Why Double.parseDouble(“ABC”) not returns Double.NaN?

This code: Double.parseDouble("ABC") throws a NumberFormatException. Why is it wrong to expect a Double.NaN (NaN is literally Not-A-Number). A working example is this: public static void ...
-6
votes
1answer
63 views

Im a noob in programing and i tryed to create something like a rpg game can you tell me what you think about it and tell me if i can change anything [on hold]

import java.util.Scanner; public class JAva1 { public static void main(String[] args) { Scanner input = new Scanner(System.in); float MAtP, MSpP, MCHit, MHP, MSpeed; ...
3
votes
4answers
146 views

Why is it (or was it) important to separate CSS from HTML?

Intro I recently watched the slides from React: CSS in JS and I really like the idea of having CSS applied using JS (and with JSX, this would mean having all the HTML, JS and CSS in one file, which ...

15 30 50 per page