1
vote
1answer
32 views

Keeping lists of Objects, some with, some without inheritance

Let's say I have two classes, Foo and ExtendedFoo where ExtendedFoo inherits from Foo. Foo has a method .getValue() which returns a number, ExtendedFoo also has .increaseValue() which adds to the ...
2
votes
1answer
68 views

Should I consider uncertain future requirement while development? [duplicate]

I have one text box across multiple pages which is used to enter multiple customerids (as comma separated) . But in current page due to some subsequent implementation difficulties we make it as ...
-2
votes
0answers
23 views

Finding the sum of columns in a Two Dimensional Array with rows of different lengths [migrated]

So i'm having a bit of trouble with my code in returning the sum of the columns in a two dimensional array with rows of different lengths. For example a 2X2 array works perfectly to calculate the sum ...
0
votes
0answers
45 views

what are the most important coding standards in c# [on hold]

I am a college student creating a C# program for the 3rd year project. In my project coding standard is a main concern. But I do not have a better understanding about C# coding standards to follow ...
0
votes
1answer
25 views

Would Docker be the right answer for deployment on AWS? [on hold]

I'm about to start a new large project (both frontend and backend software) with the standard dev -> staging -> production setup. I'm always having some trouble choosing the right setup when it comes ...
-3
votes
0answers
35 views

Should I write the Server side program while creating a website? [on hold]

I want to create a website. I know html5 and css. I am still learning JavaScript. I found that these are used for client side, and now I have found that there is also server side which also needs ...
0
votes
0answers
21 views

Software or method for tracing variable use in code with graphical documentation? [on hold]

So I'm reverse engineering some contractor C++ code that was not documented. It was written by engineers/scientists, and I'm not a full time programmer myself either. I have already "started from ...
0
votes
0answers
13 views

I have data how do I choose which files go within my test, cross validation and training sets? [on hold]

I have data stored in a file structure as replicated below. I am using the data for a text classification system for each general category, and within each category I have different sources for my ...
0
votes
1answer
31 views

What is calendar time and execution time in terms of reliability testing?

What is calendar time and execution time in terms of reliability testing? My book is talking about the Musa Okumoto model and says that it uses calendar time and execution time. However googling and ...
-3
votes
0answers
36 views

Where to create objects and how to make them communicate with each other

I'm pretty new to OOP and need some help. I read quite a lot tutorials and watched some youtube videos but most stuff is about a small problem and quite out of the context. My problem is the ...
2
votes
1answer
37 views

When to use def in Groovy?

I have been developing in Groovy for a little while now and I'm wondering how often I should be using the dynamic casting def? A co-worker of mine believes we should use it always as it helps Groovy ...
7
votes
1answer
75 views

named arguments replaces the builder pattern

When using a language that supports named and optional arguments, does the builder pattern no longer have a practical use? Builder: new Builder(requiredA, ...
4
votes
5answers
340 views

Structuring Procedural vs OO code

I have spent the vast majority of my programming career using Java and very OO based C++. I am really interested in learning to think more procedurally, so I have been starting to do some practice ...
0
votes
1answer
66 views

C#/.NET multithreaded application design

The application to be designed serves as a bridge between two different systems. One natively speaks TCP (RS232 actually, but there's a COM->ETH server in the line of communication) - the other one is ...
1
vote
1answer
44 views

Why go uses Marshal and Unmarshal for the json encode/decode functions? [on hold]

Go uses Marshal and Unmarshal to encode/decode json. Any idea why encode/decode is not used? It seems more common to me.
-4
votes
0answers
53 views

What is polymorphism, explained simply? [duplicate]

I know this is a duplicate question and a little "soft" but I have not liked any of the other explanations out there and would like to hear a simple response that does not generalize so much as to be ...
2
votes
1answer
32 views

Partial or full changelog for release

When releasing a new version of a program is it better to include the full changelog since the beginning of the project or just the part since the last release? I know that the release notes would ...
3
votes
1answer
29 views

Should I omit database and server communication (after initial response)?

I have a project that I'm working on where a user uploads a big file which gets parsed by the backend, and then returns the data back in a friendlier format. Now I'm wondering whether I actually need ...
0
votes
0answers
12 views

terminology: subject matter of a system

When a system is implemented, specifically to aid/assist/or manipulate a singular entity, what would the correct terminology for the entity? My example of this is an automated-growing system ...
0
votes
0answers
23 views

How can attributes/annotations be illustrated on a UML class diagram?

Many programming languages offer a way to annotate types. For instance, in .NET this can be achieved by deriving a custom attribute class from System.Attribute and then annotating another type with ...
2
votes
3answers
136 views

Automatic builders/chain setters for Java?

Consider that code: FancyClass c = new FancyClass(); s.setParameter(value); s.setParameter2(value2); //a lot of parameters It is really naive, so we can use a builder pattern: FancyClass c = new ...
9
votes
3answers
888 views

How to monitor a long-running program programmatically

What I've currently got can be summed up with this pseudo code: public static void Main(string[] args) { var listOfObjects = Database.GetObjectsToUploadToOnlineService(); ...
0
votes
0answers
62 views

C# async method on Windows Phone 8.1 (Nokia Lumia 920)

I am trying to better understand Windows Phone 8.1 app development and thought it might be smart to start with a sensor application. So, using examples from around the web, I was able to figure out ...
0
votes
0answers
32 views

Unit testing : verifying calls : is it a good practice for non-logic code? [duplicate]

I'm currently working on a Java project where many of our services simply call adapters, with no particular business logic. In the most extreme cases, the code of the service is simply return ...
-2
votes
0answers
50 views

why a statement is non deterministic on windows? [on hold]

I execute just a simple statement and every time i get different values. I was expecting that if the statement is the same the execution time will be the same. What is the things which cause this ...
0
votes
2answers
126 views

Is there a approximate string comparison function which is odd like mathematical functions are odd?

I say odd like a mathematical function, a mathematical function is odd if f(-x) = -f(x) I understand that comparing two strings may seem to have little to do with this, because the arguments cannot ...
2
votes
1answer
104 views

Alternatives to #if when polymorphism doesn't seem possible

There are couple of places where #if seems to give you abilities that polymorphism doesn't: Conditionally specifying base class When a section contains code that is not recognised by a compiler on ...
1
vote
1answer
35 views

React and simple UI state

I'm starting to playing around with React and have a basic question regarding state. I understand that in React state should only contain data which may change and cannot be computed from elsewhere, ...
-2
votes
0answers
11 views

my Vimrc disabled the copy/paste action using mouse right click [migrated]

Am using an open source .vimrc file from https://github.com/amix/vimrc/blob/master/vimrcs/basic.vim, but it is screwing up my default mouse right click copy paste actions. Whenever I do a right click, ...
-1
votes
0answers
16 views

MSMQ Issue related to HQ database [on hold]

I am newbie with the clustered HQ we are using now. I am a support in a retail store. We are encountering transaction datas not uploaded in HQ database. We isolated the issues and probably determined ...
0
votes
0answers
7 views

NodeJS Tool to control request / response flux

I m actually facing a problem with my NodeJS api with a "Cant send headers after they are sent", in a special case. To bypass this and to check a bit deeper inside nodejs, I wanted to know if there ...
0
votes
0answers
39 views

Compare names and the use of Levenshtein's algorithm

I need to cross names from two lists. What is the best away to compare the names? As you may expect, in one list we can have the complete name, on the other just the first and last. Besides that, ...
-1
votes
0answers
15 views

Retransmission logic [on hold]

I've implemented a buffer for TCP retransmission but I can't seem to get on a solid logic for monitoring the sequence number and acknowledgment of the sent packet. Can someone help me make an ...
0
votes
3answers
139 views

Does it really need to convert decimal,string, etc to binary?

I'm very new to programming. Just read some articles about algorithm for converting a decimal or string to binary. But,according to what I know, computers hold these data in binary form. So why don't ...
-1
votes
0answers
22 views

Passing Textbox value to Crystal Report Parameter c# [migrated]

Could someone please help with my problem. I already have the codes for this but I can't seem to combine the two. Legend: dt1 = Dataset; crpt = Crystal Report File This is my code for loading the ...
1
vote
0answers
62 views

Were Java and Flash necessary pre-cursors to JavaScript and HTML5? [on hold]

Java appeared in the Netscape browser in 1995, with Javascript and Flash very soon after (I think). Java and Flash allowed programmers to add rich interactions to otherwise static sites, which can now ...
-2
votes
1answer
47 views

how integer type can handle text stream (getchar()) in C? [on hold]

While going through C programming by Ritchie and kernighan, I came across the following code. #include<stdio.h> int main() { int t; t = getchar(); while ((t=getchar()) != EOF) { ...
0
votes
0answers
46 views

Using WiFi USB dongles or other technologies to send non-WiFi data wirelessley in Java [on hold]

I'm currently trying to figure out a good solution to make a new kind of peer to peer network. I need a hardware protocol (ie. USB, Ethernet, Wifi, etc.) that is easily accessible from Java, probably ...
-2
votes
2answers
101 views

Is this a good game plan to become a fluent Java developer? [on hold]

I am an efficient person, and I am trying to find the best method of becoming a great Java developer. Here's what I'm thinking: First, learn syntax and Object Oriented concepts. Practice it, and ...
-2
votes
0answers
12 views

Reduction on array in FORTRAN [migrated]

I'm trying to parallelize a module in my FORTRAN code using OpenMP and I'm running into some issues with threads overwriting updated values in the array. Obviously my first instinct was to do a ...
2
votes
1answer
68 views

How to count sort comparison

When it is said that this sort has M number of comparisons what does it mean? As an example: procedure bubbleSort( A : list of sortable items ) n = length(A) repeat swapped = false ...
0
votes
2answers
84 views

Can someone else copyright my wordpress plugin if I don't own any copyright for it?

Assuming I have a plugin hosted on wordpress.org, can someone else just take my plugin and copyright it? Can they take the name of my plugin and copyright or trademark it (assuming I do not have it ...
0
votes
2answers
67 views

Average number of comparison for sort algorithms

I need to write different sort algorithms such as bubbleSort insertionSort selectionSort quickSort mergeSort And measure how many average comparison does each one for N number (averaging between ...
1
vote
0answers
58 views

Is the behaviour of floating-point arithmetic defined by the c++ standard?

I started writing this as a SO question but I think it's better suited here. While I'm happy for simply an answer I'm also fond of the "Teach a Man to Fish" phylosophy so I'm happy for people to point ...
0
votes
0answers
41 views

Microservices - remove unnecessary boilerplate?

My thoughts: microservices are becoming popular for distributed architecture java is (for now) a main course in enterprise applications JEE stack too How to reduce a boilerplate (including Maven ...
0
votes
1answer
89 views

Java front-end, PHP/MySQL back end methodology

I have been basically out of the programming world for about 10 years, with only a bit of dabbling here and there with small Java utilities and one large Access database I wrote for someone, and some ...
-1
votes
0answers
49 views

Are there any programming languages that lack a warning feature when doing an explicit type cast? [on hold]

As far as I can tell: Java, C#, Javascript, C++ do. I am assuming most modern languages give you something like: "possible loss of precision" or something. Anyone with a specific instance, this is ...
0
votes
0answers
25 views

Why does the EF query plan cache eviction algorithm reduce the cache to its cleanup trigger size, causing a perpetual cleanup?

The cache eviction algorithm for query plan caching in Entity Framework is described in section 3.2.2 as this: Once the cache contains a set number of entries (800), we start a timer that ...
1
vote
2answers
53 views

Passing context around AST nodes

I have various objects inside my AST, such as IfBlock, FunctionBlock, LogicExpression, etc. All of those objects share a context, which is basically a hashmap with some variables. It's a very simple ...
0
votes
1answer
52 views

Open Source Licensing and Intellectual Property Rights [on hold]

Is it possible for a developer to lose rights to work on a self-created, open-source-licensed project after an outside company, developer, or organization copyrights (or takes some other legal action ...

15 30 50 per page