0
votes
0answers
41 views

Only one case of base class function member executing on derived class object [migrated]

I have a derived class Circle of base class Shape, where each class has its own print, collide, merge, type, etc functions. I instantiate a bunch of Circle objects and put them into a container (its a ...
0
votes
0answers
20 views

Getting confused with some concepts of Racket programming language

I use Dr. Racket to learn SICP. After writing some Racket codes, I find that I am getting confused with some concepts from Racket documetation. What I have understood is (maybe it is wrong, so I hope ...
1
vote
1answer
69 views

How to handle design changes for auto_ptr deprecation in C++11?

We are testing a library under C++11 (i.e., -std=c++11). The library uses auto_ptr and this pattern: Foo* GetFoo() { autoptr<Foo> ptr(new Foo); // Initialize Foo ...
2
votes
2answers
106 views

How to avoid god controller classes and keep single responsibility principle?

The task is to make a migrator from Old DB to New DB using OOP Single Responsibility Principle. My problem is how can I make this without making the controller a God Class or breaking the single ...
7
votes
5answers
206 views

How to promote code review as an employee?

I have just graduated not long ago and started to work in a startup company for almost a year. I have introduced git to my current company and they are now happy to use it for version control. I feel ...
0
votes
0answers
15 views

Adding browser automation test into NUnit continuous integration [on hold]

My question is about browser automation tools. I would like to be able to create an automation for a bug, then take the generated script for this automation (maybe if i need to change some items ...
2
votes
1answer
125 views

Good Coding practice with respect to interface versus class versus super class

I am currently reading the following tutorial and have gotten up through here http://docs.oracle.com/javase/tutorial/java/concepts/interface.html Maybe I should not be thinking about this question ...
-2
votes
1answer
52 views

How to customize Chromium browser from source code [on hold]

Customizing Chromium includes fixing homepage, removing address bar, .etc. Is it possible to modify the source code or using some compiling options to achieve these goals?
3
votes
0answers
51 views

Which is the preferable design for my Gateway?

I'm writing a Gateway class that extracts information from a HTML document. One of the responsibilities of the class is to traverse a table in the document and extract data from its rows. I'm trying ...
1
vote
1answer
46 views

composer is self-described as inspired by npm, so why does it handle sub-dependencies differently? [on hold]

As I'm sure anyone reading this knows, the default behavior for npm is to install sub-dependencies within their respective sub-dependency directories themselves (in a new node_modules directory). The ...
2
votes
1answer
154 views

Is there a better algorithm to distribute integer to X integers minimizing their difference?

Is there a better algorithm to distribute values from one source to X destinations minimizing their difference? I have some source integer. I need to know how much of that value I need to distribute ...
-4
votes
0answers
35 views

Windows custom lockscreen program [on hold]

I'd like to create a windows application that locks my screen, I want the program to have the same functionality as this program but I want to add functionality to it so I can play custom sounds and ...
3
votes
1answer
68 views

Structuring a Python Project: Need some guidance

I currently am working on a project that involves several discrete components that have some common functionality, and I am in need of some advice. Right now I have a central component responsible ...
0
votes
0answers
37 views

Foreign currency processing

We are looking to expand our e-commerce store to allow customers in countries outside of the United States to shop and see prices specific to their region. The prices are not just straight markups ...
0
votes
0answers
77 views

Is it possible to miss a connection?

I'm writing a simple asynchronous tcp server & client program and I am curious if it's possible that the method "waitForConnections" misses a connection because it's still busy with accepting the ...
-3
votes
0answers
39 views

I have the BS in CIS degree (2002) but never worked in IT, is it too late to begin again and where should i start? [on hold]

I have the BS in CIS degree (2002) but never worked in IT, is it too late to begin again and where should i start? when i graduated to DotCom bubble had just burst and i had a family to support now i ...
-3
votes
0answers
75 views

Javascript entry-level interview [on hold]

I like to program and have been in pursuit of a developer career. I have some basic knowledge in most programming languages out there like C++, C#, Java, PHP, Python, etc. I also know HTML/CSS and ...
0
votes
1answer
24 views

Optional text qualifier in CSV file as input to SSIS package

I receive several CSV files each quarter to process through an SSIS package, and the formatting is inconsistent. This quarter, I encountered what I term optional text qualifiers--text qualifer of ...
0
votes
1answer
63 views

How should I re-license the scaffold code for my new application? (it is licensed under MIT)

If you notice the following scaffold starter kit source code is licensed under MIT throughout the code base. Even the configuration file contain a header of MIT licensed by the creator. Assuming, I ...
-1
votes
0answers
24 views

Live feed statistics to website [on hold]

I am trying to create a live display of all of my analytics accounts such as Twitter, Facebook, GPlus, Google Analyitics and a few others. The idea is to display all of these on a personal area of a ...
0
votes
1answer
90 views

Is service layer obligatory? [on hold]

I am going to implement not big web application and it seems that there are not (or almost not) any business logic in it. Only CRUD operations + some filters + security. So the question is -Is it ok ...
1
vote
1answer
30 views

Serial communications: how to verify that received message is a response to the last request sent?

Imagine the following situation. Two devices (master and slave) communicate with each other using any serial protocol like Modbus or HDLC or custom-made one. Master device sends a request to the ...
-1
votes
2answers
185 views

Why is it so difficult to read code? [on hold]

Give me a task, and I deliver. If you want an app that does this and that, I can fix that for you. But if someone else does the job, and shows me the code, I am often lost. It is very difficult for ...
-1
votes
0answers
19 views

How can I estimate the server load per user for a streaming application before I launch it? [on hold]

What methods exist for calculating / predicting server load per user before the application is launched publicly? I'm using a node.js back-end on an Amazon EC2 Linux server. I need to calculate ...
0
votes
0answers
42 views

Where's the architecture layer diagram for the .NET Framework 4.6? [on hold]

This diagram for .NET Core is very instructive (from Microsoft). Is there a parallel diagram for the .NET Framework 4.6?
2
votes
0answers
54 views

What's the right way to approach validations? [on hold]

I'm a rails developer, and have noticed that while defining validations I find myself confused about the scope I'm trying to cover. For example, I have basic cases where a field of data (ex: name, ...
0
votes
0answers
16 views

How to specify file type while saving the file by using “save as” menu item in netbeans [migrated]

How to specify file type while saving the file by using "save as" menu item in netbeans. I can see only "all files" for saving the files in an drive. But i need to include the file extension, while ...
2
votes
1answer
29 views

Transform Either types in Scala

I have an Either type e.g. Either[A, B] but I want an Either[X, Y] by using two functions A => X and B => Y. I can do that with fold: val myEither: Either[A, B] = ... myEither.fold( a => ...
1
vote
2answers
36 views

Which style to use for features that are not directly driven by humans when using BDD Gherkin language?

Should they be written same way as human workflows, first person "I have entered..." style language etc.? Is the user effectively a gender-less "AI"?
0
votes
1answer
52 views

Should I put the parameters in constructor or in method? (Python 3)

I have the following code: def __init__(self, vocable_file_path, xsd_file_path, word_list_file_path): self.vocable_file_path = vocable_file_path self.xsd_file_path = xsd_file_path ...
1
vote
2answers
95 views

Is there a better pattern than multiple inheritance here?

I'm working on a server implementation for a large game with many gametypes. There are several kinds of interactable entities: players, monsters, objects, vehicles. All entities share the same base ...
1
vote
0answers
32 views

Packing open source software alongside a commercial software

I'm creating a commercial web-app and to avoid compatibility issues between operating systems and browser I want to pack a portable chromium alongside my software and to use it to run the app. GPL2 ...
-5
votes
0answers
45 views

Auto Moving Objects using Java [on hold]

Hi guys i am new to this field, but i am willing to learn java. So i have chosen games to learn java i am developing a game called Shooter, which requires images to move in its own...... So someone ...
79
votes
14answers
11k views

How to stop thinking in terms of code? [on hold]

I am a C++ developer at a fairly large organization which has a huge codebase. During the last 6 months since I joined, my mentor has always told me this every time we met for design reviews or ...
0
votes
1answer
157 views

Why is 'continue' the keyword for skipping the rest of the loop iteration? [on hold]

Many programming languages contain a 'continue'-keyword, which is used to skip the rest of a loop body. I've always felt like this was a misnomer, since IMO the term 'continue' in real life refers to ...
0
votes
0answers
4 views

initializing 'CGFloat *' (aka 'float *') with an expression of type 'const CGFloat *' (aka 'const float *') discards qualifiers) [migrated]

when I try to get the components of CGColor with following code: CGFloat *components = CGColorGetComponents(customizedCGColor); I get the warning of "initializing 'CGFloat *' (aka 'float *') with ...
0
votes
1answer
29 views

When is background-image not wrapped in: url(); [on hold]

In CSS you declare a background-image by wrapping it inside a url('') ... is there an example when you don't need do this and if not why does it even exist? Even when you're using base64 you still ...
0
votes
1answer
31 views

Sending Form Data and Image? [on hold]

What is the way to send form data and image(s) to an http-server ? Should I go with Multipart/Form-Data or add the image content as a value to the json data with some key ? What are the ...
3
votes
4answers
131 views

Design strategy for wrapping exceptions

I'm implementing a type of Repository for a framework/library that has (roughly) the following: public interface FooRepository { boolean contains(String id); Foo fetch(String id); void ...
-1
votes
0answers
83 views

How to compare numbers in a file? [on hold]

What I would have to do to search a file (file.txt for example), and compare its values with the ones I'm asking the user to input. There will be numbers in the file already(production orders) and i ...
0
votes
1answer
112 views

How can I learn algorithms? [on hold]

I just took a coding challenge on a popular coding challenge site which gives you a problem and a fixed amount of time to solve it. I've been writing software for around 10 years, good software for ...
0
votes
0answers
49 views

A callback for when data is received?

So, my understanding is that the Kernel could receive TCP at any time, and that generally a C program asks the Kernel synchronously/asynchronously if it has data available. Would it be possible for a ...
0
votes
0answers
35 views

Nested website navigational menus [on hold]

So, I have created a website that has a navigational menu made up of nested unordered list elements. For example, <ul> <li>Home <ul> <li>About Us</li> ...
-1
votes
0answers
18 views

Rpy2 - install and configure it [on hold]

I dowloaded the zip file rpy2. I'd like to use some function of R statistic in python. How can we install and configure it, in order to import it in a file or module of python please? Thank you for ...
-1
votes
1answer
62 views

Intersection of two arrays [on hold]

While solving problem abcdef on spoj i came across this code for intersection of two sorted arrays Here is the link to problem http://www.spoj.com/problems/ABCDEF/ The code sort(s1.begin(), ...
0
votes
0answers
18 views

dynamic api code generation in nodejs

We are using nodejs and cassandra for backend stuff. In past few months we wrote same CRUD code for different apps. I am thinking of some way to automatically generating CRUD code. I came across ...
0
votes
1answer
52 views

Extensions on Visual Studio 2015 Express [on hold]

I used to install some extensions on VS Express 2013. We were using it to create some internal tools, one of them was Web Essentials. I wanted to start using VS Express 2015 so I could use the new C# ...
-1
votes
0answers
21 views

Accessing large lists of words PHP Array or MySQL [on hold]

I'm creating an application that grabs a list of words, and mashes them together. Example: Hello, World, Coding Output: Helld, ingdld, Codrld I want to have many lists of words. I originally was ...
-3
votes
0answers
16 views

Excel and Graph Labels [on hold]

Suppose I have the following data: Name: Height (cm) Number of Countries Visited John 155 12 Jason 162 9 Jack 153 5 Using Microsoft Excel 2013, ...
2
votes
1answer
142 views

What would be a reason not to embed JS in C? [on hold]

I'm working on an opensource application that processes JSON in C, because I would like to make it easier for people to help me in the project and because JSON is so close to JS. I want to embed a JS ...

15 30 50 per page