-1
votes
0answers
4 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 ...
55
votes
7answers
5k views

Code First vs. Database First

When I design and create the software I work on, I typically design and create the back-end SQL tables first and then move on to the actual programming. The project I'm currently working on has me ...
0
votes
2answers
120 views

in trouble making a card game with pygame

I am designing a card game playable against the computer. The rule is very simple Both player and CPU gets 10 cards of 1 to 10. Player and CPU plays a single card at the same time, every round. The ...
14
votes
4answers
1k views

How to really master MySQL?

I have been using mysql for the same amount of time I have been using PHP. However I feel about 10x more confident in PHP; or any other programming language. But I just can't seem to really really ...
-3
votes
0answers
23 views

Trouble with png filtering algorithms

I have created a class file which filters given raw data with choosen filtering algorithm. But it always outputs invalid data. Here is my code below public byte[] Raw; public int Width; public int ...
0
votes
1answer
29 views

Domain Object class design?

This kind is a continuation of a question i had yesterday. I was incorrectly trying to pass data for that class into the constructor which caused IOC containers to not work effectively. I was advised ...
0
votes
0answers
9 views

Elastic Beanstalk, EC2 and Rackspace with Solr

We are currently working on an e-commerce startup and we obviously don't know the number of users that will hit out site (expect it to be highly variable). I'm using a custom implementation of Django ...
0
votes
1answer
32 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 ...
0
votes
1answer
11 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 ...
14
votes
8answers
3k views

How to stop thinking in terms of code?

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 ...
-2
votes
0answers
26 views

Javascript entry-level interview

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
143 views

DBUnit alternatives to test DAO layer

We have a lot of DAO tests written with DBUnit and (it's ugly) datasoure. It's not that hard to edit it and add some new entries but it's annoying. Worse is that we have only one datasource for all ...
0
votes
1answer
74 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 ...
0
votes
3answers
228 views

How to mark code lines licensed on MIT?

When I am using some code licensed on MIT license, but it's not in seperate files, is it OK mark it like this? /* Here starts code licensed under the MIT License (../MIT.txt) */ // code /* Here is ...
2
votes
2answers
513 views

How does Elastic Search approach the problem of distributed membership and consensus?

I already understand that Elastic Search is supposed to be deployed in a distributed topology, in that you can have multiple nodes for a cluster of ES instances. I like the API, and it looks ...
1
vote
0answers
77 views

Web components and performance

I am having trouble learning about the impact of web components and shadow DOM on the browser, specifically related to repaint. I remember reading at one point that the shadow DOM nodes have ...
4
votes
3answers
202 views

How can I add properties to subclasses and access them without casting from a superclass?

I'm trying to model a multi-dimensional point class in C#. I have about eight different types of points, and there may be more in the future. Right now, I have a superclass (PointBase) that holds all ...
1
vote
1answer
19 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 ...
-2
votes
2answers
88 views

How to reference one object with two interfaces? [duplicate]

Suppose I have two interfaces I and J that is implemented by Test class. Now I need one object of class Test that is referenced by I and J both interfaces. I can do it by singleton design pattern. But ...
20
votes
6answers
3k views

Is throwing new RuntimeExceptions in unreachable code a bad style?

I was assigned to maintain an application written some time ago by more skilled developers. I came across this piece of code: public Configuration retrieveUserMailConfiguration(Long id) throws ...
-1
votes
2answers
110 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
15 views

Live feed statistics to website

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 ...
2
votes
1answer
20 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 => ...
2
votes
0answers
42 views

What's the right way to approach validations?

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, ...
5
votes
3answers
263 views

Does it make sense to use “ys” instead of “ies” in identifiers to ease find-and-replace functionality?

Although grammatically incorrect, when writing identifiers for functions, variables etc. does it make sense to simply append an "s" to plurals of words ending in Y? My reason for this would be that if ...
-1
votes
0answers
13 views

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

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 ...
-2
votes
0answers
30 views

Convert C to Arm Language [on hold]

int calpower (int b, int e) //Find b to the power e. { int r = 1; //Initialize result to 1. while (e>0) //While exponent’s more than 0, { r *= b; //multiply result by base, ...
0
votes
2answers
106 views

Time complexity analysis for recurrence relation

I was asked to figure out the time complexity analysis for the following recurrence relation T(n) = 4*T(n-1) + c. Basically, I did a replacement.. T(n-1) = 4 * T(n-2) + c and so on.. T(n) = 4^k T(1) ...
0
votes
0answers
25 views

Where's the architecture layer diagram for the .NET Framework 4.6?

This diagram for .NET Core is very instructive (from Microsoft). Is there a parallel diagram for the .NET Framework 4.6?
0
votes
1answer
15 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
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 ...
0
votes
2answers
72 views

How can I check if answer the user typed in is unique in the form submission?

So, I have a form that has security questions and textfields for the user to type in their answer. I want to prevent the user from typing in the same answer to every security question selected. So I ...
0
votes
1answer
40 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
70 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 ...
3
votes
3answers
94 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 ...
22
votes
13answers
4k views

How does unit testing work?

I am trying to make my code more robust and I have been reading about unit testing, but I find it very hard to find an actual useful use. For instance, the Wikipedia example: public class TestAdder { ...
0
votes
0answers
22 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 ...
0
votes
1answer
25 views

When is background-image not wrapped in: url();

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 ...
-5
votes
0answers
38 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 ...
2
votes
1answer
134 views

Finding the closest n points to any arbitrary point in two dimensions (r-tree, quadtree, spatial index)

I have a distribution of two dimensional point objects. How is it possible to find the nearest N number of points to any given point without iterating over the entire collection of points (and only ...
0
votes
0answers
75 views

Why is 'continue' the keyword for skipping the rest of the loop iteration?

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 ...
4
votes
4answers
263 views

Quadtree with duplicates

I'm implementing a quadtree. For those who don't know this data strucutre, I am including the following small description: A Quadtree is a data structure and is in the Euclidean plane what an ...
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
25 views

Sending Form Data and Image?

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 ...
1
vote
1answer
232 views

Is there a way to document required properties in traits (PHP)?

I'm fairly new to using traits in PHP and am wondering if there is a way to ensure that a class including a trait has particular properties. I know that you can use something like the following to ...
-1
votes
0answers
67 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, only write the ones that are not duplicated, while letting the user ...
2
votes
1answer
363 views

Seperating ASP.NET IdentityUser from my other entities

I have a ProjectName.Core library containing all my business logic and my entities and their behaviour. There's currently no relation whatsoever to Entity Framework or any other DAL because I like to ...
-1
votes
1answer
61 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(), ...
1
vote
4answers
506 views

Is there any situation when there's no alternative to instanceof?

It seems to me that instanceof comes from the land of functional programming and is a watered down version of pattern matching and that the OO altenative to it should be dynamic dispatching. In OO ...
7
votes
3answers
299 views

Origin of “a method should return a value or have side-effects, but not both”

I read once that a method should either have a return value (and be referentially transparent), or have side-effect(s), but not both. I cannot find any references to this rule, but want to learn more ...

15 30 50 per page