All Questions
0
votes
0answers
4 views
Is a programming secretly a career trap?
I hesitate to puruse programming as a career because:
Skill erosion, offshoring and low barriers to entry make this career seem extremely dangerous.
Specifically, I am concerned about
1) Skill ...
0
votes
0answers
8 views
PERL: Cant use variables in Sybase SQL Driver to MS SQL Server [migrated]
I'm trying to use a dynamically constructed query to get data from an ms sql server(2008) in perl.
The sql-string looks like this:
$sql = (q/SELECT COUNT(DISTINCT COLUMNa) FROM TABLEa WHERE COLUMNb ...
0
votes
1answer
14 views
Should I use check or checked?
I'm designing a library that binds to html elements on a page. In this particular case the input[type='checkbox'] will be ticked if the property returns true. What's the best practice for naming ...
-3
votes
1answer
32 views
C++11 introduction of new programming trends and potential fragmentation of the language [on hold]
In my humble opinion, the fact that the C++ language with the introduction of C++11 lives a renaissance is unquestionable.
New powerful features were introduced, that give to the programmer advanced ...
-1
votes
0answers
10 views
Nodejs Best practices: scheduling task with scalability in mind
I have two apps that need to run scheduled tasks. One will charge users on a monthly basis with forte, the other will push to an api possibly multiple times a day. Each app will do so for multiple ...
1
vote
0answers
42 views
How should object identification be managed?
I have a java/swing application in (hopefully good) MVC structure. Here is a overview of my model classes:
One or more workers may work at one working location and one worker may work at different ...
-1
votes
0answers
26 views
What is a “Cloud” application? [on hold]
I know that out there, there are four types of cloud services:
IaaS: Infrastructure as a Service
PaaS: Platform as a Service
MaaS: Metal as a Service
SaaS: Software as a Service - the most known.
...
-3
votes
0answers
13 views
Unit Test Framework [on hold]
Ian doing a web based project using Spring Framework.I wanted to know which of the following test framework will be better for unit testing.Is it JUNIT or TESTNG?Can anyone please suggest your opinion ...
-2
votes
0answers
16 views
Trying to generate thumbnails from an array of video files in java and I have no idea what library or how I would go about doing this [on hold]
I have an arraylist of directories to video files that I recursively scanned through user given directories with several different video format types, basically anything supported by vlc, and I need ...
-6
votes
0answers
26 views
High level programming vs. Block programming [on hold]
I'm currently studying GCSE computing and could do with some help. I need to compare the advantages and disadvantages of both of these programming techniques, I was given examples of Python, c++ and ...
1
vote
1answer
38 views
Should a view call a function?
Should a view call a helper function?
Say I pass in data from the DB to the view. The data is a unix timestamp. Should I make a call in my view to convert it to a human readable TS or should I ...
0
votes
1answer
35 views
get all the combination of a given set of numbers [duplicate]
I m trying to get the possible combinations of a given set of numbers say for example 123
The possible combinations would be
123
132
213
231
312
321
For this i have written a code as below -
...
4
votes
4answers
285 views
Good or bad practice to mask Java collections with meaningful class names?
Lately I've been in the habit of "masking" Java collections with human-friendly class names. Some simple examples:
// Facade class that makes code more readable and understandable.
public class ...
6
votes
0answers
67 views
How can I use unit tests and TDD to test an app that relies mostly on database CRUD operations?
At work, one of my projects is mostly about taking data passed in from an external client and persisting it in a database. It's a Java enterprise app using JPA and most of our logic revolves around ...
1
vote
1answer
70 views
Code re-use in C++, via multiple inheritance or composition? Or…?
I originally asked this question on StackOverflow, but I was directed here, and I think my problem is perhaps as much conceptual as technical, so here goes.
If you’re defining a hierarchy of abstract ...
-2
votes
0answers
29 views
What is causing this Java error “Could not reserve enough space for the card marking array” Linux, AWS [on hold]
Firstly, I have no idea what the "card marking array is," so any background of that may be helpful. I'm running into issuing running java, even when issuing the following on a particular system.
java ...
-4
votes
0answers
28 views
Program not returning the correct info [on hold]
Can anyone help me out on why the following program is behaving the way it is? It returns all of the same letters when it loops through if I run the program without any debug breakpoints. It should ...
-1
votes
0answers
35 views
What is the rationale of these syntax choices in Julia? [on hold]
What is the relation between the following design choices and homoiconicity/ease of compiler design/reduction of corner cases etc?
Why use indexing starting at 1?
Why use the 'end' statement?
Why ...
-2
votes
0answers
21 views
Error authentication failed [on hold]
I have a login form that contains a login and password, I received an error failure to identify:
class Admin_IndexController extends Zend_Controller_Action
{
private $_form;
public function ...
1
vote
1answer
39 views
Who creates the agile definition of done(DoD)?
I believe that the "Definition of Done" is created by the Team and the "Acceptance criteria" is created by the customer. Am i correct?
Can a customer gives a Definition of Done to the agile team?
1
vote
2answers
66 views
Adding a Short-Term Developer to a Rework of an Old Project
Background
I work in the Language Resource Center on my campus. It's a relatively small lab, and our job is to help students, not code software. Being a Computer Science student, I took the ...
-3
votes
0answers
19 views
Readonly database access with Async frameworks [on hold]
Thinking about a .Net system built with Entity Framework accessing a SQL Server 2012 server in a single thread environment. It´s a reports application, exclusively doing read only operations on a ...
1
vote
1answer
66 views
Design Patterns for creating tasks
I am developing software where each action in my entities need create tasks that will be execute in my infrastructure. When I create a task it is only records in the database. Afterwards, a service ...
1
vote
2answers
89 views
IllegalStateException vs. IllegalArgumentException
In have written a function which expects the caller to pass in a configuration file like XML. Then I parse this given file and extract something which i then return.
In this function (at least) two ...
0
votes
0answers
8 views
EBeans alternative to find() in JPA [migrated]
I was following the Play! Framework tutorial on creating a blog. They use JPA instead of EBeans and they use the find() function that extend from play.db.Jpa.Model . I am using EBeans and have ...
-5
votes
0answers
21 views
Should the frontend JavaScript code of a large web application be implemented using an Object-Oriented approach? [on hold]
It seems to me that the answer should be yes because then you can apply good principles such as design patterns. I was involved in building a large single-page app and the approach was procedural. I ...
-2
votes
0answers
21 views
Implementing a Testing platform [on hold]
I've just recently started working for a new business and have been asked to suggest and implement a testing platform as non exists at the moment. I have very limited QA testing experience from about ...
-1
votes
0answers
49 views
files / folders structure for Factory and Repository design patterns [on hold]
This the first project for me using Factory and Repository design patterns
I don't really know ho to organize files/folders and which names to use. (I'm also very new using namespaces and psr-4 )
...
-2
votes
0answers
32 views
how to send email to multiple recipients in C# [on hold]
In my asp.net project have a option to send newsletter to the register users. In this reason i need to create a option for sending email to multiple recipients. how can i make this??
0
votes
1answer
64 views
Is it ok to start with templates in MVC development?
I'm new to web development and I've started working on a project in my company that uses DJANGO. I feel it flexible to start my development straight first from the templates. I think it will be easier ...
0
votes
1answer
30 views
Is this a good task for machine learning - grouping pieces of DNA based on sequence?
Say I have a list of 50 DNA sequences all of the same length (6, 8 or 16 bps/ chars).
I want to group these to sets of say 5 or 6 sequences per set.
I have some criteria that need to be met based ...
0
votes
2answers
34 views
Maintaining sequence number for the day while creating file from windows service
I have a windows service which invokes a dll periodically and creates files. The file names should be in sequence.
Example files will be myfile1.txt, myfile2.txt....mfilen.txt.
The number will ...
0
votes
0answers
16 views
Is my implementation of a merge sort correct? [migrated]
I tried to get into programming several times but never did and never got very far past "Hello, World.", until recently when I found and read (most of, still don't get parts of it) "The Little ...
-3
votes
0answers
32 views
Dissertation ideas for a BSc computing student [on hold]
I go into my final year this september, but before this I need to come up with a dissertation title. As I'm choosing the degree title of BSc Computing, I have to think of a project that explores a ...
-3
votes
0answers
48 views
I've a great idea, now what languages do i need to learn to build it? [on hold]
I know only HTML, CSS and Python. Although i have a lot of time on my hands i would like to learn only the skills that are helpful.
I have an idea and would like to try building it. Here are the ...
0
votes
3answers
146 views
How should I test boolean function with many possible permutations
When I write an unit test I usually provide a context (plain object or mocked/stubbed object) that I setup in some ways and then I can run assert statement on the context:
note: code is in ...
1
vote
2answers
69 views
Passing central objects around or having global instances? [duplicate]
Having a larger WinForms application with several classes I currently pass references to several "central" objects around to function calls.
This leads to more method parameters.
Example:
public ...
1
vote
0answers
10 views
Synchronizing web ui and third party async services
I'm looking for concepts, approaches or even Framework/libraries to help me synchronize state reliably from web UI to a third Party Service.
For example: creating a JavaScript irc Client ui you need ...
2
votes
2answers
111 views
When does extracting methods from code stop to make sense? [duplicate]
I am currently studying the refactoring methods defined by Marting Fowler (http://refactoring.com/catalog/).
He states a tip for replacing chunks of code by a single method that does that job. So ...
-1
votes
0answers
15 views
sdk packages dont stay insstalled on eclipse [on hold]
When I start my android sdk manager and install new packages, the sdk packages dont stay insstalled on eclipse. once I restart the program all my support libraries fail and everything associated with ...
0
votes
1answer
47 views
Is there a known standard data structure which is a hash table that resolves collisions using a binary tree?
Is there a known standard data structure which is a hash table that resolves collisions using a binary tree?
If so what is the name of this data structure?
I imagine such a structure would be useful ...
-1
votes
0answers
30 views
Calling Web Sockets from standalone Java application [on hold]
I'm building a Web app.
Client side: HTML5
Server side: Tomcat, servlets, standalone Java backend
Push notifications: Web Sockets
Each client subscribes via Servlet (RESTful interface) for ...
-1
votes
0answers
62 views
What is the best use of a variable when required by multiple methods [on hold]
I'm using XmlManager to do xml manipulations in several methods in a class.
Where I should declare XmlManager variable ?
Locally within each method and do intialization.
Declare globally and ...
4
votes
4answers
280 views
Algorithm for percentage without knowing total number
Suppose there are n lines for a hotline.
Whenever a customer calls the hotline, the call is forwarded to one of the n lines. And I want to assign percentage of calling to each of the n lines. ...
-3
votes
0answers
8 views
Selenium Junit Test case [on hold]
I am unable to run multiple test cases in a class. if i run this class by commenting the other @test test case will work.Please help.
I have 2 @test scenario's in my class.
2
votes
0answers
40 views
Use and manage Front End Assets for Web
I am a beginner and am currently developing a kind of cms using PHP. The number of libraries that we can potentially use in the front end is large. I have a question about properly selecting, ...
-2
votes
0answers
38 views
Developing payment and funding system [on hold]
For a project; I have to develop a purchase and sell system for digital items. A person offers a service (like Carwash) for $10. Another person purchases this service using Paypal for $10. This $10 ...
-2
votes
0answers
71 views
How can I improve the following code in terms of faster execution? [migrated]
The problem is described here - Aaah!.
My source code for the problem is below. I one of the fast running codes, but not the best. What changes can I make so as to improve the efficiency of the code.
...
0
votes
0answers
48 views
Model a user moving through building
I'm working on a single page application that is using AngularJS on the front end. The purpose of the application is to navigate through a building's sections, floors, and rooms.
For example, the ...
-3
votes
0answers
34 views
Multiprocessor programming basics books [on hold]
I see "Art of Multiprocessor programming".
Is there any other books/pointers/talks I should look at?
I know C and Kernel in general at not-too-deep levels. What I want to learn is how locking is ...