0
votes
0answers
4 views

Java write to text file from multiple threads

I have a thread which read and insert new lines in same file. I must synchronized that file so that no other thread is not accessing the file at the same time. Here is how i will synchronize a file ...
1
vote
1answer
5 views

Can I use only Delphi to create cross-platform apps?

I'm an Android developer working for a small start-up that wants to create a mobile app for iOs, Android and Windows phones. The start up is small and cannot afford to hire that many developers. As a ...
0
votes
2answers
23 views

Am I Designing software or Architecting software?

A large part of my job responsibility involves taking a user story, developing a Technical Spec for it, mentoring a junior developer with writing and testing the code against the tech spec, while ...
2
votes
1answer
24 views

Improving Haskell code performance of this particular piece of code

I've used BangPatterns, Lazy ByteString. Don't know what else to do to improve performance of this code. Any ideas and suggestions? -- Find the sum of all the multiples of 3 or 5 below N -- Input ...
0
votes
0answers
9 views

Visiting specific cells of an array

I am trying to figure out an algorithm to loop through an array visiting all the cells from (a,b) to (c,d), (from 0 to `). How could i do this efficiently ? I can't seem to be able to find a pretty ...
0
votes
1answer
19 views

Two dimensional matrix-like data type using lists and/or mutable lists

I am trying to think of an implementation of a two dimensional matrix-like data type. Normally I would take an array of arrays but I'm bound to a relatively low language level which only provides ...
0
votes
1answer
32 views

Adding permanent objects to a vector

I'm relatively new to C++ (coming from Java) and I've got a little problem regarding lifetime of objects. My situation is like this: I'm having a class A in which I'm trying to add elements to an ...
0
votes
0answers
4 views

Manage content for multiple websites and mobile apps

I need to manage content (pages, key/value list, assets and more) in one webbased system for multiple websites and mobile apps. My idea is to create a web api, secured with tokens for apps and sites ...
6
votes
1answer
152 views

Which version of Java should I use for a desktop application to reach the most users?

Am I correct to assume that most end users are using an older version than Java 8? Since I do not want to force people to upgrade in order to use my application, should I plan it to use Java 7 or even ...
0
votes
0answers
3 views

Running Labview VI/app/exe on an embedded board

I want to run my LabVIEW app on an embedded board but apparently LabVIEW is only supported by x86 Architecture. Is that even possible? If yes then can anybody recommend me an embedded board with a ...
0
votes
0answers
11 views

Is there a good guide to port Linux software to Mac OS X?

What is the best guide for porting Linux software to Mac OS X? I'm searching for a step by step guide that goes thru all you need to change in your source code to make it compile and run on OS X ...
-1
votes
0answers
23 views

Advice me - getting started with programming [on hold]

This is a question I am asking to get help from the community here, it's not a technical question rather than seeking an advice from experts in the domain. It's been few years for me now getting into ...
0
votes
0answers
15 views

Specific knowlege and skills for making android apps

I know this question has probably been posted already but i couldn't find a sufficient answer. I'm interested in learning how to make android apps, i already know how to code in java and i know oop. ...
0
votes
0answers
13 views

Boundry traversal in binary tree

How to perform boundary traversal in binary tree using only single traversal of the tree? I am doing it in this way (not a single traversal): void printBoundary (struct node* root) { if (root) ...
0
votes
0answers
9 views

PHPUnit > Best approach to mock container objects? (e.g. $item->id)

I'm using PHPUnit test doubles to mock models, libraries etc. But when I want to return an array perhaps of container objects, how best to do so. Here is what I'm currently doing: /** * This is just ...
-2
votes
0answers
34 views

Are gdb debugger and g++ compiler (by command line interface) used in industry while developing c++ application software in unix [on hold]

Is gdb debugger with command line interface used in industry while developing application software(c++) in unix? If not which IDE will industry usually use while developing application software(c++) ...
0
votes
1answer
20 views

Methods accounting for all input to method

This is more of a conceptual question. Let's say that you had the following enum public enum FooEnum { ALPHA, BETA, GAMMA, DELTA; } And let's say you have the following method: ...
13
votes
7answers
1k views

Bad sign if nobody can comprehend one's code?

If a coder writes code that nobody other than he can understand, and code reviews always end with the reviewer scratching his head or holding their head in their hands, is this a clear sign that the ...
-1
votes
1answer
35 views

Lock object in base class: private or protected?

I have a base class that contains some lists, queues, and other fields which determine its state. In the base class I only access these fields within a protected lock object since there could be ...
1
vote
1answer
64 views

Polymorphism Question

For the sake of the question I've taken this code from http://www.cplusplus.com/doc/tutorial/polymorphism/ class Polygon { protected: int width, height; public: void set_values (int a, ...
-1
votes
0answers
7 views

Using GreaseMonkey to change Javascript variable [migrated]

I've got a question regarding a website that I use quite frequently. The website is essentially a browser-based air traffic control simulator. The page uses a php script to load the JavaScript ...
0
votes
2answers
38 views

What are some ways to get application settings from users into class objects that also follow proper design principles?

I'm really confused how to enable the user to apply application settings for an application they are using (that get consumed by to a class object) AND the method I need to use to get the settings ...
-4
votes
0answers
36 views

Differences between books in the principles of computer programming, and in programming languages [on hold]

What are differences between books in the principles of computer programming, and in programming languages (whose purposes are not for specific languages)? I am often confused by them. I heard ...
1
vote
1answer
70 views

Should a bin directory be full of shell scripts?

New guy on the team so I figured I'd ask here in public than sound like a complete dweeb and ask elsewhere. Without giving too much or anything away (please ask questions if you want), but should, or ...
0
votes
1answer
85 views

What is the name/origin for this C code indentation style?

Look at the following code. Specifically, at the formatting of the variable declarations. I haven't encountered this indentation style in the past, but lately I stumbled upon two different code ...
2
votes
0answers
26 views

What design pattern is used in this delegating scenario?

I am currently having to bend some framework API to fit my usecase. The framework provides generic interfaces such as public interface Processor<T> { T process(T t); } with various ...
5
votes
2answers
72 views

Does modular programming refer to modules or programs?

As far as I can tell, the main idea in modular programming is: program pieces that work well; complex behaviour results from piece_a and piece_b working together Though, I am not sure if it ...
1
vote
0answers
21 views

What to include from permissive licensed Open Source library?

I'm writing a library and toolset for the manipulation of a software's data files. The library and toolset are written in Python. As I build the library, I start to rely on 3rd party libraries that ...
1
vote
0answers
73 views

As a developer, is it normal to not be able to add your own tickets? [on hold]

At my current place of work, management insists on being the ones who add and administrate JIRA (our issue tracker). None of the developers are allowed to add tasks, we can only add bugs. It's ...
0
votes
0answers
11 views

Design of actions handlers requiring some order

I have a REST application where 'actions' can be executed to perform anything in the system. For example: user.save, user.get, etc... I also have pre and post execution 'handlers'. For example a ...
-5
votes
0answers
16 views

Unintended Iteration of a specific line inside a For Loop [migrated]

Do not worry about the purpose of the code. But I will post it below for reference: #include<iostream> #include<string> using namespace std; int main() { int numberOfStudents; ...
5
votes
1answer
95 views

Is it poor decision making that using promises for GUI inputs?

So as you know the context: DOM with JavaScript, even though I think it is mostly a language agnostic issue (I know I put both language-agnostic and JavaScript tags, but it's only to let you see ...
4
votes
3answers
66 views

Sets of pair parameters

I have the following class, this class like many rely one parameters coming in as a pair. Originally for convenience, I set them as params Object[] values and check if there is an even number of them ...
-5
votes
0answers
31 views

how to insert a column values dynamically [on hold]

How to pass an array to SQL SERVER 2008 stored procedure and insert all the values of a array into a database table. For Example: From ASP.NET mvc C#, I would pass a parameter having multiple values ...
1
vote
1answer
30 views

how to decide when to use database replication vs. custom REST applications vs. message brokers (pub / sub)

We have a distributed solution that's currently under design. There are a few points of integration where some application needs data from someone else and vice versa. We could solve by either ...
-1
votes
0answers
30 views

What are the different fields in software/web application development for freelancers? [on hold]

For example c# or java is not a field. data warehousing and machine learning are. I'm on my way to become a junior c#/asp.net developer. I'm more interested in backend development and work as a ...
-2
votes
0answers
31 views

PHP only showing records by id?

I am having trouble with this PHP code and I am not sure how to title it! I have a car showcase and I am wanting the Database to display the cars depending on their ID e.g 1 Ferrari Enzo, 2 Porsche ...
2
votes
0answers
57 views

What kind of programming pattern is appropriate for programming an algorithm with rules and exceptions?

I'm interested in coming up with an algorithm to solve a guessing game. The player is attempting to guess a sequence of 4 unique numbers from 1 to 9. After a guess, they are told how many numbers of ...
-3
votes
0answers
13 views

popup pictures in a Front end javascript website [on hold]

I am looking for some help to solve a problem that I am having... I am playing around with a template I found online and I am trying to use another JavaScript script on the template to change the ...
1
vote
0answers
46 views

Using and referencing external executables in a solution

I have an application written in AS3 which I need to be able to start up from my C# application. I have a prototype that does this just fine but my question is in relation to how I would arrange my ...
-1
votes
0answers
25 views

Is there a Code Review Tool that Integrates with Team Foundation Server [on hold]

Is there a code review software that integrates well with Team Foundation Server? It seems like there should be something that wouldn't even require me to take a diff, I could just provide my branch ...
0
votes
0answers
25 views

Product Development Design - Customer specific changes [duplicate]

We are developing a web based product that will require customization for various customers. Customers tend to have different rules and nomenclatures, hence the customization requirement. The ...
1
vote
0answers
22 views

Encapsulating business logic that goes beyond validations in MVC

I'm pretty clear business logic goes into Models. But on this question, they refer to business logic as pretty much low level validation (if the user signs up, ask for their e-mail). What about ...
-2
votes
0answers
18 views

Math expression in swift repl [on hold]

I have a code #!/usr/bin/env xcrun swift import Foundation let expn = NSExpression(format:"2+2*2") println(expn.expressionValueWithObject(nil, context: nil)) How to make so that I introduced the ...
-4
votes
0answers
28 views

Are there any limitations to using a MacBook Pro with Bootcamp for windows based development? [on hold]

I'm looking at getting a Macbook Pro as my next dev machine. I intend to install Windows on Bootcamp. I do most of my development work on Windows. The type of dev work I do and tools I use is as ...
-3
votes
0answers
22 views

Weird problem while installing Adobe After Effects CS 4. Help me! [on hold]

I am trying to install the Adobe Creative Suite 4. Every thing works fine except the installation of After Effects and Illustrator. The problem is that I can't even select (check) the After Effects ...
1
vote
1answer
29 views

PHP MVC Model with a method to fetch all of the model from database

I have a crazy question, consider I'm developing a blog website, There is two model named Post and Comment, now I wanna add a method to fetch all comments from database, which model should I choose to ...
1
vote
3answers
55 views

Chat-service database design

I have an android/desktop application that I'm now releasing on the web, and as there are some social aspects I thought of adding a chat-service so users can IM as well. For this chat service, I want ...
0
votes
0answers
13 views

How to push data from one page to another [PHP] [migrated]

I'm using sockets.io, express and php and I was wondering if it is possible to push something of a page (that only a specific user can see at the time) to another page other can see. For example, if ...
0
votes
3answers
93 views

How to design a solution that needs dynamism using Inheritance

I have below code/classes/interfaces: An Interface: public interface Animal<A extends Animal<A>>{ void fight(A otherAnimal); } 2.Tiger class which is implementing Animal ...

15 30 50 per page