Tagged Questions

I'm currently working on a little project in C++. I'm fairly new to C++/Programming and wanted to ask how my classes should be designed.
To be specific: I want to write a little program for chatting. ...

Here is a problem statement:
We have interfaces/super classes Student and Teacher
Student has two implementations/sub clasees, ScienceStudent and PhysicalEducationStudent
Teacher has ScienceTeacher ...

I'm using Underscore.js in my project. Almost all files have this line of code: var _ = require('underscore').
The require function is synchronous so the same file is loaded each time it is used. Is ...

Looking for design guidelines for the following problem.
I'm receiving two string values - action and message and have to call appropriate method which processes string message (processM1MessageVer1, ...

I have about 5 or 6 projects that use "toolkit" code I've written. The problem I've came across is doing updates to toolkit code; when I do an update I usually need to apply these updates manually to ...

Every so often when writing a constructor of a class, I ask myself whether I should be using the initialized member variable or the constructor parameter. Here are two examples to illustrate what I ...

I have a couple of helper classes (? extends HelperBase) which only have public static methods. I would like to have something similar to what a factory is (with singleton support), but as there is no ...

Let's say I have a 2 classes, classes A and B. By composition, Class A has an instance of Class B. In other words, Class A is the one creating the instance of Class B.
If I'm in the final release of ...

Hello stackoverflow community, I'm trying to add a nuke function to this gui application. However, my IDE complains about the super statement, it also complains that it cannot find symbol msg. This ...

This is the basic scenario:
A method returns a class of type A, but after looking at the internal workings of the code it is found safe to assume that it actually returns B (a subclass of A). Is it ...

I'm trying to figure out, how I can create a general library for Coded UI tests.
Let's assume that you have common operations such as Launching browser, Login, navigating to a page ,clicking on a HTML ...

I have my REST API that expose a resource made of some readonly fields. These fields are calculated automatically from the system and exposed in the JSON representation, and they are part of a domain ...

This code retrieves lines of a log file and tries to find a date in one of delimited fields. Which char is the delimiter can vary and also in what field the date can be found varies. It can also be ...

I need to implement this approach - two kinds of data sent as One Set of Parameters... in A Single Type - so that one type will hold those Two parameters.
then i could pass that Type to be processed ...

as the situation is described at the bottom(using Webworms not Mvc),
and as i probably need to "master" the implementation of Session variables, almost in every web application , I have constructed ...

I am interested in getting ideas on how can I design my junit test cases so that they are more readable and maintainable. Here is the problem - In all my junit test cases I have some predefined steps ...