5
votes
2answers
231 views

Should I use events or abstract methods?

Lets say I create an abstract class that manages some network functionality for me. I want to be able to be notified when something changes. For example: OnConnect or OnDisconnect. Should I create ...
1
vote
3answers
72 views

Question about multidimensional arrays

I was wondering something about the multidimensional arrays and then I got a doubt about a concept, specifically about their representation on memory. For example, an array can be defined as follows. ...
-1
votes
0answers
23 views

What do you call a form that adapts based on answers? [closed]

I am looking for what to call a form that changes based on the answers entered. For example a web form that asks: Are you satisfied with your purchase? If you answer yes, it displays: How ...
-5
votes
0answers
61 views

Should I learn Java or Javascript? [closed]

I am a college graduate living in Southern California with a very basic understanding of java and programming in general. If my goal were to get my first job(or internship) as soon as possible, which ...
-4
votes
0answers
25 views

User submitted html pages gripes [closed]

On a particular browser game, users are allowed to create their own presentation pages using basic HTML. The only CSS allowed is via the style attributes of the HTML tags themselves. This rules out ...
-5
votes
0answers
44 views

which language is best to learn [closed]

i know c,c++,html&css and basic java-script , i want to know that for which next language i should go for? i am totally confuse in ruby,java,php,asp,python,.net which should i start learning?? I ...
-4
votes
0answers
50 views

expected primary expression before 'bool' [migrated]

My program says "error: expected primary-expression before 'bool'" on the function call repeatOrNot (bool); under the main function. Why is this? bool fiveOrNot(); void repeatOrNot (bool); int ...
-2
votes
0answers
30 views

advantages and disadvantages of Dresden OCL Toolkit and Eclipse MDT/OCL [closed]

What are features provided by these two OCL tools? Overall difficulty of use: How easy or hard is the tool to use (understandability, learnability, operability)? Cost: How expensive (e.g. ...
2
votes
0answers
31 views

Merge directed acyclic graphs minimizing number of nodes

I have some DAGs (directed acylic graphs) and I want to merge them in order to minimize the number of nodes (we could say that every node has a cost, while edges are free). These four different DAGs ...
8
votes
4answers
261 views
+50

Maintenance cost of SIMD programming code base

Question: The software industry's consensus is that clean and simple code is fundamental to the long-term viability of the code base and the organization that owns it. These properties lead to lower ...
-3
votes
0answers
33 views

Class evaluate and linker error [closed]

I wrote class evaluate to compute the answer of postfix notation.Actually want to convert infix to postfix (like 2*3+5 to 23*5+).i used shunting yard alghorithm but when i compile my code i got this ...
-4
votes
0answers
45 views

How To Make A GUI In C++ [closed]

So, I have seen many programs (Microsoft Office, Google Chrome, etc) become predominantly coded in C++. So, I planned to started learning. I've gotten to the level of GUI, and there doesn't seem to ...
-1
votes
0answers
37 views

Persisting state of current execution in Java

I have specific use case, and I'm looking for opinion and suggestions on implementing this in Java as I'm fairly new to this. I have a dependency graph kind of process. The entity E in the processing ...
7
votes
3answers
747 views

When to use .ToString() when concatenating a string in C#?

int a = 1; int b = 2; int sum = a + b; string expression = "Expression: " + a + " + " + b + " = " + sum; Console.WriteLine(expression); //displays Expression 1 + 2 = 3 Should I use: string ...
-2
votes
0answers
21 views

std::memory_order_relaxed modification order consistency [closed]

from http://en.cppreference.com : Relaxed ordering Atomic operations tagged std::memory_order_relaxed are not synchronization operations, they do not order memory. They only guarantee atomicity and ...
5
votes
6answers
367 views

Are version numbers needed

We build a system which works as software as a service. Now I am wondering if it is needed to give the version number to the clients. For example Facebook doesn't give a version number neither does ...
-2
votes
0answers
25 views

Mapping keyboard cursor keys to main typing area. Where shall PageUp / PageDown go? [closed]

Long story short, I want to keep my fingers in main typing area (that's how I call Left Ctrl - ~ - Backspace - Right Ctrl rectangle) 99% of time while coding/typing/browsing. So I used Linux autokey ...
0
votes
0answers
8 views

problem with select case assignment [migrated]

So i am trying to make a program that will decide which of two players wins by rollong 2 die per person and adding the value of those die together and comparing them. the problem i am having currently ...
1
vote
2answers
88 views

What is meant by “redundant, but not duplicative” in the Steelman language requirements?

The Steelman language requirements have this: The language shall require some redundant, but not duplicative, specifications in programs. I think I can see the underlying idea (that re-stating ...
2
votes
0answers
38 views

Is there a way shortcut type bounds in Scala? [migrated]

When defining a covariant class, all the method declarations need to contain something along the lines of: [B >: A] //A is the main type variable Is there a way to declare something at the class ...
2
votes
2answers
37 views

Include internal defects into the releasenotes?

When delivering a product, Release notes clearly contain known issues found by customer in the previous build. But should we include defects that we, as a supplier, found during our testing, those ...
3
votes
3answers
164 views

Is it misleading to label code as a particular design pattern if it only loosely fits the definition?

Background: I have a rough, but working understanding of ~15 design patterns. It's been my experience using design patterns in my own projects that the resulting implementations usually end up as some ...
4
votes
3answers
158 views

What's the purpose of keeping a changelog if everyone uses their VCS properly?

Every VCS that I've seen includes a means (and sometimes requires you) to make a log of what a particular commit does. If this history is being properly kept, what is the purpose of manually keeping ...
0
votes
0answers
29 views

Adding new Interface & Replacing Method with Interface Type

Let's say that I have 2 classes: Foo and Bar. `Foo` { List<Bar> bars String bippy() int boop() } `Bar` { int biz() String baz() } Observe that Foo's fields include a List<Bar>. ...
0
votes
2answers
91 views

Interface inherits from interface without specifying new member

Is it some kind of bad design to have something like this: public interface IFooStream { long Length { get; } long Position {get; set;} //... } public interface ...
0
votes
0answers
39 views

Entity Framework and separating DAL from domain entities

If I have a normalized db, it's unlikely to map 1 to 1 with my domain entities. So I customize my EF entities to fit the domain. But now my EF entities are essentially my domain entities and my DAL is ...
1
vote
1answer
37 views

How to represent a multiple choice attribute in UML class diagram?

I'm modelling a Filter class that stores the options for filtering a search. Some of the attributes are multiple choice. For example, if you are filtering hotel rooms you have a Price attribute that ...
-6
votes
0answers
40 views

I have problems to validate dialogs in javascript [closed]

I have problems to validate dialogs in javascript. Please look at the following configuration When I press the submit button, no valation is done. Does anybody have an idea? ...
-2
votes
0answers
73 views

How can I run the FOR loop for more than the size of long long int [closed]

for(i=0;i<pow(2,N);i++) { //code goes here } N=1000, i.e pow(2,1000)>10300 but long long int can only hold upto 1018. How can I be able to run this for loop.
-2
votes
0answers
23 views

How to setup SkelCl with Qt? [closed]

I'm a beginner in parallel programming and Qt. As I've heard, OpenCL has a lot of boilerplate codes and is difficult for beginners to grasp the concept of it and SkelCl makes it easier for beginners ...
-4
votes
0answers
25 views

accessing remote mssql database from winform application [closed]

I have completed a winform application that works fine in local database. Now, I want to use it in remote database hosted in server. Is it possible or not? What modifications I need to make in my ...
1
vote
1answer
56 views

Are there defined standards for argument sequence? [closed]

Say I have a function taking three arguments: a symbol (an alias for a class, method or function name) a mirror/reflection of a specific object a mirror/reflection of a class in general is there a ...
-3
votes
0answers
61 views

Today should we rather develop desktop websites or an Android Applications for public applications [closed]

First of all this is not a newbie question, I am a dev with several years of experience in the industry. For the WEB, I work with ASP.NET MVC and Web API. Very recently I had an idea and I built a ...
-2
votes
2answers
130 views

Why public access level method get overridden in java?

This question is raised with a clarification required to decide when to declare a method protected or public during class design of a package. My point is, if one needs to override a method of a ...
0
votes
2answers
80 views

Is it ok to access private members while doing same class comparison?

I am writing a class which basically is a wrapper around a dictionary with some extra functionality. This dictionary is stored as protected member _store. Now I am writing a __eq__ method to compare ...
-2
votes
0answers
46 views

What are the Steps/Algorithm to load/Parse an XML File? [closed]

I want to write an xml parser by my own, its a project given to me, and i should complete it, i know to search for a string, load files into memory using vectors, but is theres a way i can use this to ...
0
votes
0answers
26 views

Structure of Input Events [closed]

I know there are KeyListeners, MouseListeners, and AnyListeners everywhere. However, that is on the higher level. I want to know what the base of it all is. The lowest-level you can get ...
0
votes
1answer
58 views

What is a relation between Dependency Injection, single instance, and singletons?

I read So Singletons are bad, then what? which was a great explanation of dependency injection as the solution for inversion of control. The asker assumed singleton and single instance were synonyms, ...
-2
votes
0answers
23 views

Javascript animation based on mouse click? [migrated]

So I'm attempting to make it such that when you click it creates a circle on the mouse's position, and on the second click, the circle moves towards the second click's location. So on and so forth. ...
1
vote
1answer
62 views

Is it possible to quickly change an array declared on the stack to one declared on the heap

I have about 5000 lines of code which manipulates a large array in C++. The problem is that when I try to make the array even larger i.e. A[10000][10000], the gcc compiler throws me a segmentation ...
0
votes
0answers
15 views

Using OAuth2 to grant 2 tokens at once

I have a scenario where a client wants to start a foreground session and a background session when a user logs in. The user may log out of the foreground session, ending it and expiring the token, but ...
0
votes
1answer
74 views

Permutting a list of numbers in order to get a list which satisfies given condition

Here is algorithmic problem I'm trying to solve: Given a list [x_1,x_2,...,x_n] return a permutation of elements of the list [y_1,y_2,...,y_n] (where for each i we have y_i = x_j for only one j) ...
-1
votes
0answers
30 views

Is it apposite to have a separate api for this situation? [closed]

This is a bit generic question . Take the case as follows There exists an web api ApiA . now this does some task taskA. Now we see that the customers are having a need to do another taskB which is ...
2
votes
3answers
59 views

Scrum and backlogged issues

I run a development team that recently started using Jira and we began using agile scrum. I'm curious about a certain aspect of backlogged issues. So far I have been marking new issues as unassigned ...
-4
votes
0answers
77 views

Divide an Array into n subarray such that each subarray have equal sum? [closed]

You are given an array of a given length. Now we have to determine whether we can Divide the array into n sub-array such that all of them have equal sum . Note: Each sub-array may or may not have ...
-2
votes
0answers
6 views

PHP/SQL Question [migrated]

There's my problem... I have the following variables: $days_a = $array_total['days']; // This one display days $hours_a = $array_total['hours']; // This one display hours $minutes_a = ...
0
votes
3answers
66 views

CSS: When to use which selector

I've been learning HTML5/CSS3 for a month now, and I've built my first demo website. At first I was using a lot of the element selectors like: >, ,, + in combination with the type names for ...
1
vote
1answer
90 views

Should make concrete factories in the same count of families of objects or according to stages in my problem?

I am programming a game. In this game I have 3 stages. In the first stage, there is a static goal and a static shooter in the game. In the second stage, the goal will move. And in the third one both ...
1
vote
2answers
206 views

Searching algorithm used in switch statement

What is the searching algorithm used in switch statement in C language? If the cases are not in order still it searches proper case which means it is not a binary search algorithm, can anybody ...
0
votes
0answers
25 views

Managing customer-specific modules in a composer/PHP-based SaaS

I'm developing a business-to-business SaaS. I expect that most of my customers will be able to use my mainline product, and I intend to deploy it in an independent instance for each customer. Some ...

15 30 50 per page