-9
votes
0answers
38 views

C programming explanation

I would like to ask you why part 2 = 2 3 -2 and part 3= 3 3 9. I know the answer of the part 1 please explain. When I compile, I get the answer. But I did not understand the rest of that. #include ...
0
votes
0answers
35 views

Is it worth it to use a message-queue framework in this case?

We have these things called "executions" that are run at certain times. They have a delay property that basically says "execute me after delay microseconds`. Currently we are using Cassandra as a ...
-4
votes
0answers
22 views

What database should I use for these versioned data feeds?

I want to take feeds of products and deals from merchants, and keep them up-to-date with with detected changes. Every time I update a update a product, I want to give it a higher version number. ...
2
votes
2answers
95 views

How to treat bugs that users thought were a feature?

Question: What is the proper way to address a bug that an end-user thought was a feature? Elaboration: I'm guessing that if a large percentage of users expected it as a feature, it should be left ...
-3
votes
0answers
45 views

How to interview with a manager who thinks that agile experience is essential? [on hold]

I am an experienced developer with nearly 10K rep on StackOverflow. In the past few years, I've gotten into contracting, and so I'm doing lots of interviews. Sometimes, I get shot down for a ...
0
votes
1answer
21 views

Java Action Listener

Actually, I've got a confusion in Java while implementing action listener event. I can add action listener event by implementing the class with ActionListener and by ...
-4
votes
0answers
21 views

CI which match following criterias [on hold]

I am looking for CI which matches following criteria. Surely, I can go and investigate couple of dozens of CI which exist on the market. However, I hope that somebody did similar work already and it ...
1
vote
2answers
48 views

Is normalization all that's needed to ensure data integrity and quality reporting?

I've gotten out into the real world recently, and for the first time have had to really think about database design, as I've been developing across the entire Java stack. With that I've realized that ...
-3
votes
0answers
58 views

What can a programmer expect an employer to do to help her improve? [on hold]

As a junior, I got it into my head that the best way to become a better programmer is to work with excellent programmers who know a lot more than I do. So I got a job with some highly accomplished ...
5
votes
4answers
654 views

Is the use of one-letter variables encouraged? [on hold]

Is the use of one-letter variables encouraged in Java? In code snippets or tutorials, you often see them. I cannot imagine using them is encouraged because it makes the code relatively harder to read ...
-1
votes
0answers
21 views

Building an EXT 4 tree with JSON data [migrated]

I'm building an android app that posts collected battery data to a website viewable by the app user and I'm having issues building a tree to view the collected data. I'm looking to build a tree ...
0
votes
2answers
78 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 ...
3
votes
2answers
76 views

Design Pattern - DLL per Strategy

I usually found myself designing my application in the following way: One DLL containing interfaces for a desired subsystem. For example, Company.Framework.Persistence.dll. One new DLL per each ...
0
votes
2answers
108 views

Any benefits of writing coding articles [on hold]

I always wonder if there is any benefit of publishing programming/code related articles/tips either on ones own website or coding sites? I think it has a benefit that a programmer can have a record of ...
1
vote
1answer
36 views

Difference between synthesis and translation

Recently i have encountered two words describing transformation process of one language to another language - "translation" and "synthesis". I have some tips but i am not sure what is the difference. ...
-3
votes
0answers
20 views

How to allow users receive push notifications without having to register

I have been reading about sending notifications to all my android users. I found Google Cloud Messaging (GCM). However this service doesnt really give what I want. The user who downloads my android ...
0
votes
0answers
21 views

Adding a chat api to infrastructure

I currently have a REST Api and will be adding a new real time chat feature. I want the applications to have a separation of concerns. I initially was planning on adding a new realtime messaging ...
-2
votes
0answers
21 views

A question to web service providers [on hold]

I'm a PhD student at the Univ. of Colorado and I'm doing research on cloud computing and services. I am trying to understand some operational aspects of running a web service. My question to web ...
0
votes
0answers
31 views

How to verify a method is only called once, with specific arguments (using RhinoMocks)

I'm just starting to use RhinoMocks. Now I'm wondering what test cases I should write. I want to assert that a method is only being called once, with specific arguments. Lets start with my ...
18
votes
7answers
2k views

What's the proper way to model this real-world activity that seems to need circular references in OOP?

I've been wrestling with a problem in a Java project about circular references. I'm trying to model a real-world situation in which it seems the objects in question are interdependent and need to ...
0
votes
0answers
12 views

Displaying and communicating an external file

I am importing and displaying an external swf into 'main' swf. I can send specific variable from external to main. However it is always 0 (zero) since it sends right after 'loading completed'. Initial ...
1
vote
3answers
90 views

Auto-save user input - the smartest way?

I'm developing a social network website and I'm working with php/mysql/jquery and I want users to have the most user-friendly website experience. That's why I try to avoid a save (submit) button at ...
-2
votes
0answers
17 views

Decision graphs and multiple continuation paths? [on hold]

I have read about decision trees and continuation path, however is there such a thing as decision graphs and multiple continuation paths? One scenario that I can think of is when more than one ...
0
votes
0answers
33 views

How can I create a hierarchical leaderboard system using NoSQL?

I have a system that allows businesses to organize employees in a hierarchy and we are designing a leaderboard feature that needs to compare their employees at certain hierarchy levels. Hierarchies ...
2
votes
1answer
25 views

Development approach for GUI application sharing on X

I'm curious about developing a simple system for GUI application sharing between users on a single computer, which uses Xorg (or perhaps any modern form of X11 display). I'd like user Alice to be able ...
0
votes
1answer
68 views

Are ANSI* Escape Sequences Proper For Coloring Text in Terminal(Linux)?

I just switched back to Linux after a few years of Windows use and am wondering if ANSI Escape Sequences are okay for coloring text. I ask because the way I did it on windows isn't capable of crossing ...
3
votes
0answers
44 views

Rich client persistence without a database

We have a pretty sizable .NET rich client app that currently uses nHibernate and Firebird embedded for persistence. Due to the nature of the app, we need to load the entire database into memory when ...
1
vote
2answers
39 views

Is ART an installation process? Or an OS? Or a virtual Machine?

When attempting to understand Android Runtime, I came across the wikipedia page. The graphic shown there adds to my confusion. If .dex is getting converted entirely to ELF, why is ART needed anymore? ...
-3
votes
0answers
11 views

Resources for Mobile Device Manager [on hold]

I'm currently learning how to make an mobile device manager application on a phone. For example, features would include using a computer to lock a cellphone or sound an alarm on a cellphone. Are there ...
2
votes
2answers
60 views

verify a defect is a production defect or not

As a QA person, I always believe that a defect should have all the steps needed for anyone fixing it to be able to reproduce it. however, is it crazy to think that every defect QA opens need to be ...
-4
votes
0answers
33 views

Do developers have to worry about ethical issues when it comes to the product design if they are only involved in the implementation process? [on hold]

I guess everyone should have their own professional and personal standards when it comes to ethical conducts and standards, but in an age where corporate and social responsibilities are becoming more ...
2
votes
1answer
92 views

What is the etymology of the “dot” operator for string concatenation?

Some languages have a . operator for string concatenation. The oldest language I could find that supports it is Perl. Was Perl the first to use it? Why was it chosen?
0
votes
0answers
13 views

Is it possible to define injection rules based on Spring bean scopes?

My application is using Spring as my dependency injection framework. I have been struggling recently with nasty concurrency and security bugs. The bugs were caused by injecting bean with incorrect ...
0
votes
1answer
53 views

Javascript Constants in ES6

What would be the preferred way to create constants in javascript, specifically with ES6? Currently I have a constants class which has methods that return the string I'm looking for. class ...
0
votes
1answer
30 views

AngularJS Different Controller per Role?

I am creating an AngularJS app with a restful-back end. I have 4 types of users for which each component/page may have significantly differnt behavior. What is the best approach to implement this? Do ...
1
vote
1answer
54 views

License question regarding open-source project which may eventually contain a commercial component

I'm beginning work on a project which I may wish to commercialize in the future. For now, though, it's just a prototype which I would like to release it with a GPL license. My concern is: if I am to ...
-6
votes
0answers
37 views

Transperancy in Scrum [on hold]

As per Agile Manifesto the transparency is one of the key factor that makes the scrum team a self organizer and enable the team to take an effective decesions proactively and respond to the external ...
0
votes
0answers
14 views

Maintaining Software Variants [duplicate]

What is the industry-accepted way of publishing and maintaining an open-source project which has different "flavors" or variants, but basically uses the same codebase? For example, I am working on a ...
0
votes
0answers
37 views

Flat files for events and alarms

So I'm working on a project that I was introduced to a year ago. One of the features of project involves alarming the users when certain events are triggered. There is also a log of these events. ...
3
votes
1answer
46 views

How do I automate dependency installation after pulling code from repository?

My collegue and I develop a small Python application. We use Vagrant to set up development environments. Suppose my collegue introduces a new feature into the application. Feature's implementation ...
-5
votes
0answers
26 views

Database schema and data management tools [on hold]

I've been using Visual Paradigm to simutaneously manage my database's schema and example/test data during its development. I have found their interface to only get buggier over time and would like to ...
1
vote
1answer
112 views

Best solution to switch between new and deprecated code

We have a feature that is currently implemented, let's call it implA. ImplA works but can't do many things. So we have decided to rewrite it. But we can't just replace it right away, so we will need ...
0
votes
0answers
31 views

Command Pattern for Logging/Backup/Testing

I need your input guys on this concept I intend to implement: Use the Command Pattern to record everything in my app. It should encapsulate every single user action and micro-action as a Command and ...
-5
votes
0answers
17 views

How change text fields onselect radio button [on hold]

i have 3 radio button with same name <form> <input name="srch" type="radio" value="a"/> <input name="srch" type="radio" value="b"/> <input name="srch" type="radio" value="c"/> ...
4
votes
2answers
79 views

Good way to program an orchestration / processflow

I'm programming a process in which clients will be separated in 3 different groups, and for every group a different action will be performed. My question concerns the process of deciding which client ...
1
vote
1answer
66 views

Are There Tools for Statically Evaluating C++ Functions for Side Effects? [on hold]

I'm interested in having a tool that can evaluate whether a function in C++ has side effects. I'd like to be able to mark functions as having or not having side effects, which I think would make ...
-5
votes
0answers
87 views

Would it be put me in risk if I use open source software? [on hold]

I have came across the web and found that GWT online toolkit which enables to use JS, XML, JSON integrity with java applications. But this seems to be an open source. In my workplace, it should not be ...
-8
votes
1answer
112 views

How would we compile our code if all binaries would disappear? [on hold]

How would we compile our code if all the binaries in the world would disappear and we would only have the source code? First you would think it's all OK I have my Roslyn code here, but wait! It's in ...
0
votes
1answer
73 views

Multiple if in comparison function vs chain of || or &&

I'm writing a function (or operator==() in C++), comparing two objects. The code looks like this: bool operator==(const Obj& copy1, const Obj& copy2) { if(copy1.a!=copy2.a) return ...
-3
votes
4answers
83 views

Time complexity of this loop [duplicate]

Is the time complexity for this loop O(n) or O(log n)? for(i=0;i<n/2;i++){} I am thinking, the time is proportional with the input size.

15 30 50 per page