-2
votes
1answer
35 views

Multiplayer in Android [on hold]

I am developing an android game wherein four player will connect to each other, the player must be only be on the same LAN or Network. My problem is I really don't know where to start? Whenever I ...
2
votes
5answers
297 views

When I should add another non-static class?

How do you decide if you need a new non-static class (maybe when you are developing or after it)? The question is two part: Why another class? Why not an static class? New static classes and ...
0
votes
2answers
53 views

Design a Queuing Solution with Clustering and Multiple Consumers

It is a Design Problem which I am listing out here. I have different set of business operations that are carried out for different business entities. Operations: Operation A Operation B Operation ...
-1
votes
0answers
95 views

Can someone clarify strings for me in the C programming language [migrated]

Hey guys so I'll cut this short. A few weeks ago I started learning the programming language C. I have knowledge in web technologies like HMTL/CSS, Javscript, PHP, and basic server administration. ...
0
votes
0answers
5 views

Why is GLEE failing with glClearIuiEXT()? [migrated]

I'm trying to test using GLEE for the first time. I seem to be following the book fine. However, this condition passes, but the function does not set the clear value. At least, I get a black screen. ...
0
votes
2answers
48 views

JUnit3 and JUnit4 in the same project (but different module)?

I have an Android project with a Gradle build. We've decided to commit to writing a vanilla Java implementation of our business logic (since we took care to keep that divorced form the Android ...
-2
votes
1answer
83 views

What are the ways to make code more reversable?

Imagine user complains about some bug in UI and sends you a screenshot. Your application has UI language different from English. This part of application was developed before you joined your team. ...
2
votes
0answers
48 views

How do I create a modal service with AngularJS?

I'm trying to make a service that's polymorphic based upon what mode is specified in the URL. If the char param in the route is set to 'p', I want to use a PresentMode service. If the char param is ...
0
votes
0answers
31 views

How should I handle the Esc key in a “Press any key” screen? [migrated]

Simple question, but I'm on the fence as to the answer. If I design a "Press any key to X" screen, should I register the Esc key as one of those "any key"s, or as a cancellation control? Is there an ...
-5
votes
0answers
59 views

How JIT is faster than that of interpreter in JVM? [on hold]

Please describe above problem for the following given program. print a; print b; repeat the following 10 times by changing i values from 1 to 10; print a;
0
votes
1answer
186 views

The difference between *s.pd and s->pd

I was reading about copy constructors for structs and i found this example: #include <iostream> #include <string> using namespace std; struct SomeData { int * pd; string id; ...
0
votes
1answer
28 views

To cache or not to cach a ReadOnlyWrapper object?

I have a system with a structure like this: The ConcreteWriteable is caching the ReadOnlyWrapper. This is a similar system to what .Net's System.Array uses for its Array.AsReadOnly<T>(T[] ...
0
votes
1answer
76 views

Which design is better? [MainClass] -> [Class] OR [MainClass] -> [MiddleClass] -> [Class]

I have two designs which achieve the same result. -------Design A MainClass has a List and two methods. The methods create an autonomous object and is added to the list. The reason for the ...
1
vote
1answer
83 views

Does dynamically generating classes in python affect readability/performance?

I have a set of classes that represent different objects (tables in a database): class ObjA: # some class specific attributes and methods def refresh(self): # implementation ...
1
vote
2answers
60 views

many to many relation in database schema and oop class diagram

I have Student and Group entities. Student can have many groups and Group can have many students too. so in database I should have middle class and change many-to-many relation to one-to-many and ...
1
vote
2answers
99 views

Overriding methods by passing as argument the subclass object where the supertype is expected

I am just learning Java, and am not a practicing programmer. The book I am following says that when overriding a method, the argument types must be the same, but the return types can be ...
0
votes
1answer
45 views

Does a Form describing JSON “Standard” exist?

I joined a project were we sell services for different providers through web, iOS and android apps. I am working on iOS. I was ask to display a purchase form via a web view and react by what is ...
0
votes
1answer
37 views

Java Doc - Do fields also get documented?

This is a really simple question but oddly, I'm finding it difficult to get a definite answer.... What do you do with fields? Is this valid? /** * Keeps track of all usernames in the system. */ ...
2
votes
3answers
164 views

Is checking return values always required?

We know that checking return values prevent our software from unexpected states. (You can see CWE definition.) But, we are sometimes sure about the return value. For example: bool ...
0
votes
2answers
69 views

Pattern for caching DAOs: strategy or decorator?

I'm building a php system with the Services/DAOs/Domain Models pattern, and now is the time to implement a caching system for the DAOs. Would you use a decorator pattern, or maybe the strategy ...
0
votes
1answer
60 views

Block diagram scheme file format

Yesterday I wanted to show my colleague a work flow diagram representing my view on developing our next project. Today I want to display file structure of another my project with includes as a tree ...
0
votes
0answers
31 views

Best approach to save relationship mapping of country,state,city in orm

I am building a project in play framework java with jpa and I want set country,state,city dropdown fields in a form to be dynamic(from database).So only admin can increase or decrease the value of ...
-4
votes
0answers
35 views

Fresh graduate first job- Tester vs Programmer [on hold]

I'm just graduated from university with major in Software Engineering. I planned to get my first job as system tester for few years and then change to programmer. Is it a good choice to start my ...
0
votes
0answers
15 views

Best method to synchronize data from an eCommerce platform

I have been assigned to design a high level architecture for an plugin, aimed at fetching and syncing product data from an open source eCommerce platform. The eCommerce platform allows development of ...
1
vote
0answers
59 views

Reject pull request or accept incorrect code? [duplicate]

Very often I have to review pull requests of fellow programmers and I face the problem - what should I do when the code is not as good as I would expect? Should I reject the pull request or ...
-5
votes
0answers
35 views

iterate list in python like for loop in python [on hold]

How to loop a list in python. What I have tried is, l=[1,2,4,5] for i in l print i I know how to in C. for(i=0;i<=10;i++){ do something.. } How can I achieve this in python ?
0
votes
1answer
134 views

What'd be better? To add one more local variable, or to call a method twice in general case?

I have the method which returns java.util.Date inside the hibernate-entity class: package ua.com.winforce.loto_partner.commons.db.entity; @Entity @Table(schema = "pr", name = "publice") public class ...
3
votes
1answer
117 views

Functional programming for loop side effect

I am trying to get my head around as to why having a local variable or a for loop inside a function is not considered to be pure functional programming. Given this function: int as_int(char *str) { ...
-1
votes
1answer
44 views

Need an example of a real backlog task or how elaborate must it be?

I'd like to know whether a task must be self contained. Our tasks mostly contain a couple of sentences. To understand what you are to do you should: Read the requirements document for several ...
-1
votes
0answers
23 views

Questions about getting MCTS [on hold]

For work, I have to get some certificates. For now, I'm supposed to do MCTS exams for .NET 4. I know these exams are retired, but looking at the available options I have at work, this seems best to ...
4
votes
3answers
154 views

Safety-critical software and optimising compilers

I'm reading some internal documentation for code developed to the MISRA C guidelines, and I see that in compiler flags section of the documentation there is a note to compile with optimisation off ...
0
votes
0answers
17 views

Using the v3 api without autorized user need [on hold]

I wanna do a page for my website that can show a list of the last videos of 5 youtube channels (a mixed list) . It will be public so I need a upload_list.js script like this one : ...
-1
votes
0answers
48 views

Future chaining, no code-walking…what would it require?

I've found the idea of chaining futures as a way of avoiding callback hell to be fairly interesting, and even though I normally prefer things like Pulsar it's still a natural way to express when you ...
2
votes
1answer
99 views

Object caching in this code too expensive?

I'm having some trouble with a game developed in Java which is kinda slow. I benchmarked it a little bit and found the problem: most of the time, the JVM is in the Object.<init>() since there ...
0
votes
2answers
166 views

Development on Android without using Java

As the title of this question suggests, I am looking forward to develop app(s) on Android platform without using Java at all. It doesn't mean I have some kind of vendetta against this beautiful ...
0
votes
0answers
18 views

Breaking java script into manageable parts [migrated]

Hi I have long java script code with many functions and i want break it to manageable but struggling to get right design,Previously i have long init() and search function and now i want to break it so ...
-2
votes
0answers
18 views

Does these algorithms need to train to estimate genetic network? [on hold]

As the title , does the following algorithms need to train to estimate genetic network? Genetic Algorithm with weight matrices Boolean Algorithm Thanks
0
votes
0answers
4 views

Linux C raw socket TCP handsake [migrated]

I'm trying to create a TCP connection using raw sockets in C (on a Debian system) but I'm having a hard time getting it working. It will send a packet but I dont get any response from the server. I ...
0
votes
0answers
8 views

Incrementing a string [migrated]

How do I take an input and increment each letter by one e.g "ABC" to "BCD" in Java. I have attempted below to try and change the string to an int and then increase the value by 1. import ...
-2
votes
0answers
44 views

Multi process programming

I'm developing an xml server in python which serves as an api emulator for an existing server. I'm using process libraries in order to handle multiple processes in the server for each client request. ...
0
votes
0answers
14 views

jQuery event binding management

Given the following elements: <div class="container"> <span class="some-class">content</span> ..n span repetitions.. </div> Given the following .on() ...
8
votes
7answers
1k views

How did OOP evolve to include the notion of Properties

I've come from a C++ background and am going all out C# in my current job and I've just been reading a lot of Q&A about what's the difference between public fields and properties and all the back ...
0
votes
2answers
44 views

Clients connect to WCF or SQL Server

I was wondering what is the prefered way of accessing data from a server in a client application. The data will be stored on the server in an SQL database and I have previously used the following 2 ...
0
votes
0answers
24 views

MVC: Inserting a view from a SubController to its Parent controller

I have 2 controllers: 1 top level controller,MainController, and a SubController, which MainController has an instance of and controls. The SubController has a Subview which goes inside the MainView ...
-4
votes
0answers
31 views

What are some best practices for converting a codebase from Matlab to C using MATLAB Coder? [on hold]

I am starting a project to convert a medium size Matlab codebase (~100 files, total of ~10K LOC) into C/C++. (That is, the end product needs to be runnable without Matlab.) I have been reading ...
2
votes
5answers
399 views

Why lambda/closures expressions came so late to C++?

I was reading a really great Bjarne Stroustrup's article where he exposes some C++ myths. I look at code that focus my attention, because I wouldn't know that C++ supports this kind of expressions. ...
1
vote
0answers
72 views

Design an algorithm with network flow

Given a matrix A with 0 and 1 entries. Neighbours of a[i,j] are a[i-1,j], a[i+1,j], a[i,j-1] and a[i,j+1] (if exists any). Tow neigbour entries are an Improper pair if they have not equal values. if ...
-4
votes
0answers
28 views

Is there a modern incarnation of the Java Web Start CD-Install page? [on hold]

The Java Web Start Guide used to include a page describing how to make a Web Start application installable from external media, but that page isn't in recent versions of the documentation. Is an ...
3
votes
3answers
76 views

Mobile app for a website vs browser view [on hold]

I have noticed that many websites have their own mobile apps. For developers, What is the benefit of creating mobile app for a website? In which cases it is better than viewing it using browser? ...
-5
votes
0answers
15 views

Java writeLock() [on hold]

How to determine if writeLock section is already busy? I mean I have multi-thrad application and many users use the same object. But only one users has an access for writing. Similiar code: ...

15 30 50 per page