5
votes
1answer
140 views

When was Java's 'qualified this' introduced?

I've only recently learned about the qualified this, and was curious as to when was it introduced in the language, as I've been using Java here and there for around 18 years. Oracle keeps only the ...
1
vote
3answers
57 views

Better way of handling pre conditions and logging

1. Imagine you have the following: void Foo::doFoo() { if (!isConditionValid()) { log("doFoo not possible because condition is not valid"); return; } if ...
-2
votes
2answers
45 views

Famous installers made with Inno Setup [on hold]

I want to know if I could find some software (Open source or not) which are using Inno Setup to their installer. What I want to know is to see the importance of Inno Setup installers among all ...
2
votes
1answer
47 views

SRP and Getters/Encapsulation

I recently watched this presentation of Robert C. Martin about the Single Responsibility Principle: https://www.youtube.com/watch?v=Gt0M_OHKhQE He presents an Employee class with multiple ...
0
votes
0answers
53 views

Apple Development: Xamarin vs. Xcode

I've been wanting to start learning Swift and how to use Xcode, but have far more experience with C#. Obviously, it's a good idea to learn another language, but for the time being, being able to use ...
0
votes
1answer
98 views

Are there any studies about the amount of code a single developer can maintain?

It's been recognized at least as far back as the 1990s that lines of code is a terrible metric of developer productivity. But I have a hunch that when it comes to how much code a single developer can ...
-4
votes
0answers
28 views

Developing skills in Node.JS, Angular JS and Backbone.JS from scratch [on hold]

I have some skill in Core Java, C# and JavaScript (Basic). Now, I have only 2 months of industrial experience. I have get oppourtunity with such a project where I am working and learning Angular JS. ...
-2
votes
4answers
165 views

How can the containsKey() method of a Java Hash Table be O(1)?

I had a very large ArrayList in Java, and I often need to check if it contains a particular value. This has proven very slow. Then I discovered that you can use a data structure based on a Hash. ...
-4
votes
0answers
16 views

How can move my images to the bottom of a webpage and link them to websites [on hold]

/* *This code will make the image large when clicked on. It uses jQuery. */ $(document).ready(function){ //Custom effects with animate. $('img').on('click', ...
-1
votes
0answers
23 views

MAVLink communication with the Pixhawk flight controller

I am attempting to achieve indoor autonomous flight with a hexacopter using only MAVLink messages (sent over 3DR Radio Telemetry) from a ground control station on my laptop that is written in JAVA. I ...
0
votes
0answers
10 views

Should a SPA have a route URL visible in address bar?

I am developing a Angular SPA using angular-ui-route. We are in a confusion of should we have the route visible for User in the address bar or just have index.html (or home page) always ? Is there a ...
-2
votes
3answers
110 views

Is it ever overkill creating classes/objects? [duplicate]

I just learned how to create a class or object in C++ and I'm practicing and learning. I'm writing a text based version of a popular board game and I was wondering if it's overkill creating a class ...
-1
votes
0answers
33 views

Most efficient way to share private code samples to potential employers on GitHub? [migrated]

I have currently a public GitHub account with lots of my older code on it but I want to share some of my newer, but private code with employers that I am applying to because it's more relevant. This ...
0
votes
0answers
19 views

Writing a Python class that provides default instance succinctly [migrated]

I have a Python class for which I'm often going to want an instance with the default arguments, but I want the class to allow creation of instances. For brevity I'd prefer that the default instance be ...
1
vote
2answers
68 views

Simple (hand-drawn) shape recognition

As the input, program would get a set of point (x,y), along with the time a certain point was drawn. (suppose on a tablet). Let's restrict ourselves to simple polygons. I implemented Hough ...
-3
votes
0answers
29 views

What is the main advantages of using Ruby [on hold]

A lot of people/companies seem to be using Ruby nowadays. I know that Ruby was made more for humans that computer translation unlike other languages I have a few questions: Why would you choose ...
-4
votes
0answers
22 views

Ruby: Difference between 'while' and 'until' loops [on hold]

Is there a distinctive difference between the 'while' and 'until' loops in ruby? If there is where would we use one over the other?
-1
votes
0answers
35 views

Starting a new web development project [on hold]

So the company I work at has a website written in ASP.net. We have contracted another company to make this website. My employer is currently assessing whether to replace the site with our own in house ...
2
votes
2answers
85 views

Is there any reason to write delegates/events for one class?

I have a game with such events as GameOver, GameStart, PlayerWin, etc. I only have one class that is listening on these events, for the purpose of sending these events as TCP json messages to a client ...
3
votes
3answers
362 views

Is this OOP class hierarchy too deep?

So I am making a Super Mario Bros NES clone in pygame and for all enemies that are drawn to the window, I have a class hierarchy that is 5 classes deep. Going in the order of: Object (A base class ...
-3
votes
0answers
27 views

What python version should my package support? [on hold]

If you are programming package that support 2.7, 3.3, 3.4 python version would be this considered to be well accepted in to the python community?
0
votes
0answers
27 views

Would using the django-major-event-log app satisfy HIPAA's event logging requirements?

I'm trying to figure out the easiest way to implement event logging with Django so as to meet HIPAA's event logging requirements. Would using https://github.com/unt-libraries/django-major-event-log ...
-4
votes
0answers
32 views

How do i put a mysql cursor command in a loop in python [on hold]

this is the code i have so far but its not looping it only return the first and not the others. class moments(): def __init__(self): cursor.execute("SELECT item_code FROM list WHERE user=%s ...
2
votes
1answer
48 views

Class structure for Entity Framework

I'm using EF (Code first) and I'd like to isolate the properties from the methods (many of the methods reference other libraries that I don't want my database project to have to reference). As an ...
2
votes
1answer
55 views

Reward discounting in reinforcement learning

I've been reading the Sutton and Barto book and following David Silver's lectures on youtube. The basic principles make a lot of sense to me and I've been building a maze (an arbitrary grid where the ...
0
votes
0answers
18 views

Excel Table Format and SSIS Export

I have a "theory" question that I feel would get nailed on stack overflow, and belongs here... I have an excel template that we use to display report data. As of now someone is manually copying and ...
-2
votes
0answers
28 views

Is it possibile to decide how to partition data in MySQL Cluster?

Let's say I have this table CREATE TABLE `test` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `customer_id` bigint(20) NOT NULL, `customer_data_field` varchar(255), PRIMARY KEY (`id`) ) ...
0
votes
0answers
56 views

Is it OK to recommend open/free software in a commercial manual? [on hold]

I am writing a manual for a commercial, closed source software. For some tasks, the software does not contain functionality on its own. An example would be creating PDF documents. Is it OK to ...
0
votes
0answers
23 views

How does consistent hashing work in PHP memcached module?

What is the consistent-hash algorithm used by PHP's memcached module? What are its settings (that is, how many times does it add a server on the ring?) Is the consistent-hash array (continuum ring) ...
8
votes
3answers
145 views

Appropriate to put known issues directly in software?

I've taken over maintenance of an Android app, and there are a few residual problems that I've more or less fixed, but still have issues because of different Android OS versions. For example, sending ...
0
votes
1answer
101 views

Runtime vs Engine [on hold]

The Java Runtime. The Apache Camel Mediation Engine. Throughout computing I see "runtime" and "engine" used a lot, and seemingly interchangeably. But I can find no actual definition of these or ...
0
votes
0answers
14 views

Application settings/configuration storage-Preferences over Configuration file? [duplicate]

Is there any advantage over any of these? I have application that reads its initial configuration from Preferences rather then creating and writing into configuration file somewhere in users ...
-4
votes
0answers
48 views

Solutions needed for PHP's array problem! [on hold]

these are my codes: <?php $year = 2013; $zodiac = array("rat", "cat", "dog", "buffalo", "tiger", "dragon", "mouse", "snake", "monkey", "horse", "rabbit", "ox"); if (($year = $year - 2) % 12 ) { ...
0
votes
1answer
60 views

Best way to deliver new version(updates) to users of small client-server .net desktop application [on hold]

I am developing small app for my client from different continent. Client will continuously request new functionality and new version will be delivered every 2 month. As I do not include some auto ...
3
votes
1answer
50 views

GUI functional acceptance tests, making them less brittle / obstacle to further development

(Background - skip to bold statement for the crux) I'm working through the book "Growing Object-Oriented Software, Guided by Tests" by Freeman & Pryce, while applying it to a project I'm ...
6
votes
3answers
278 views

Should I, and if so how do I, learn to favour upfront design with abstraction over retrospective removal of repetition? [duplicate]

I am often in a situation where I have to design and code a process/algorithm, and there are different variants on that algorithm. For example, I am currently writing some database sychronisation ...
0
votes
0answers
70 views

When and when not to use OOP in Javascript? [duplicate]

This post suggests that javascript code should be written in object oriented design. He gives a trivial example of making some ajax call and alerting the response. From the world I come from (c#) he's ...
0
votes
1answer
57 views

How to avoid circular patterns in Node?

I'm new to Node and JavaScript (well, asynchronous programming in general) and I noticed when I was working on a project that the following code is a circular pattern and that these are bad practice ...
-2
votes
0answers
25 views

Parse XML file from WEB [on hold]

Can xml be parsed from web address using function below? ezxml_parse_file("192.168.1.5/file.xml") Or this applies only on local xml files?
-2
votes
0answers
32 views

An (existing) alternative name for the vendor directory? [on hold]

It may be my english, but I somehow feel offended when I create or 'vendor' folder, especially on open source projects. It is a useful folder because it contains 'third party' sources used in the ...
0
votes
1answer
64 views

Is it good practice to assign an instantiated class to a static property in the same class?

I have code that was written by someone else that goes like this: On a ViewModel: public static ACertainViewModel Default { get; private set; } On the same ViewModel's constructor: public ...
4
votes
2answers
64 views

CQRS: How to restore read model

It's very interesting how to restore read model in system based on CQRS. In regular mode system processes commands, creates domain events and posts them to message bus. Then another part of system ...
0
votes
2answers
28 views

What's the best way to track updates when syncing data from MySQL remote server to local SQLite database?

I'm making an iOS App, well, two actually. App A will be able to write TO-DOs to a remote MySQL database, and App B will be able to read what App A has written/modified. App B needs to be always ...
-1
votes
0answers
18 views

Is it possible to Access a page control from webMethod? [on hold]

I Have a WebMethod using vb like this.. <System.Web.Services.WebMethod()> _ Public Shared Function RedirectWithToken() Dim objSeatPage As New SeatSelectionCore ...
1
vote
1answer
60 views

Should I put stack trace in error files and halt my app with user friendly error [on hold]

In my earlier project I wrote an app that is used in-house. My usual practice is to capture errors/exceptions from different classes and threads and put them in different log files corresponding to ...
-2
votes
0answers
21 views

Android and GAnalytics, what is important there

I made a android app where I use the Google Analytics tool, but it show a crazy data and no reason like: Iphone total Sessions = 3 (???) New users from Ipad = 6 (???) HOW? it's a android app, ...
0
votes
1answer
16 views

VO to Entity Conversion

In our application we have multiple layers. UI -> This can be JSP/ JSON result of the API Controllers -> as in MVC Services -> perform single business operation per service DAOs -> Data Access ...
-3
votes
0answers
64 views

What is a computer science career like? [on hold]

I'm about to enter college as a freshman. I've spent a large part of my time so far making apps and working with various languages and technologies. Some of these include Objective-C/Swift, PHP, ...
1
vote
1answer
53 views

Multiple methods in single test case [duplicate]

I am new to Junit. I have a class with four methods. I am creating a test class with test cases. Can I have a test case that uses more than one methods of testing class or there should one test case ...
-3
votes
0answers
50 views

Preparing for a 3 hour interview for a different kind of role [on hold]

I'm currently working as a Haxe game developer and I've been there for 2.5 years. The current manager and I don't get along too well so I'd like to move on. I'd also like to get out of the gaming ...

15 30 50 per page