1
vote
0answers
22 views

C++ - Best approach for aliases namespace from config

I'm working on a library that contains a large number of components that have namespaces that are nested. Also, when a new module inside the library get's added, we then have to add the namespace and ...
1
vote
0answers
35 views

how to store online status

I'm developing realtime web chat using pubsub pattern. To be concrete I'm using python and tornado-redis on back end and websockets (WS) (tornado) on front end. I have WS connection open and close ...
7
votes
4answers
714 views

Should Objects with lots of fields be broken up?

When I have an Object that has lots of fields is it better to have them all as fields or try to find logical groupings as their own Objects and make those the fields? I guess it comes down to which ...
-3
votes
0answers
31 views

Querying large number of timestamps [on hold]

I have a list of timestamps in a table (there can be millions) of every time an auto-save event occurs. I want to track the amount of time people spend on a page, so every time they type a word, I ...
3
votes
1answer
44 views

Performance of list concatenation followed by scanning

Consider the following code snippet: -- list_1 = [1, 2, 3] -- list_2 = [4, 5, 6] final_list = list_1 ++ list_2 result = map (+1) final_list Is the time spent by it proportional just to the length ...
-1
votes
0answers
53 views

How to do simple video processing with PHP? [on hold]

I've been working with PHP for a while now, but this is the first project I've done that requires video processing. Ultimately, we want to do the following: Resize videos down so that their ...
-5
votes
0answers
23 views

how to restrict & allow users to view other users profile after accepting request in php? [on hold]

How to code for allowing X user to can access for view purpose Y user profile, but only after Y user accept X user request, till that X can only view some information of the Y user....
0
votes
1answer
57 views

behaviour of SQL BETWEEN operator [on hold]

This is kind of philosophical question... Today i spent way too much time to debug a method which was generating a SQL command. I figured out the error was because the code was generating something ...
0
votes
0answers
19 views

Organising code in X++ where all classes for the application are in one long classes list

I am just beginning to develop in Dynamics AX 2012, using X++ (my background is .Net). The development environment in the application stores all classes for the application in one long classes list. ...
0
votes
0answers
33 views

How do errors make sense for hidden layers in artificial neural networks?

Its pretty clear for the output layer, since what we do is we compare the output with our prototype and calculate the error. But how does error make sense for hidden layers, What is considered to be ...
5
votes
4answers
166 views

Is Java package level scope useful?

I understand the idea of package scope, and at times have even thought I wanted it. However, every time I set down with a serious intent to try using it I discovered it did not fit the needs I ...
2
votes
3answers
88 views

Responsibility of the small business logic: in a class or in a method?

I have separated business logic to many small blocks. Each block can be coded in small number of lines. Where should I put the block code? [A] in a method, grouped in the class by some same feature ...
-2
votes
0answers
22 views

NullPointerException in clojure recursive function [migrated]

I'm learning Clojure and try to loop on a list using a recursive function. I manage to go all the way down the nested calls of the recursion but I have a java.lang.NullPointerException when it starts ...
1
vote
1answer
51 views

Send more data, or do client processing?

I have a conceptual problem that I want feedback on. First and foremost, the layout of my system. It contains a server, with many clients connected to it. The clients get fed data from the server at ...
-4
votes
0answers
59 views

What should I prefer for complex standalone Java desktop application [on hold]

I have a requirement. I need to build a bit complex standalone desktop application in java. It is complex in terms of functionality you can say hundreds of things can be done including database ...
2
votes
2answers
79 views

Delivering source code - refactor for clean up?

I'm in the middle of developing an asp.net webforms application to a customer, i've been using DataAccess and BusinessLogic layers in a folder structure within my application, in which my DataAccess ...
0
votes
4answers
152 views

Maximizing the amount of work not done in Agile? [duplicate]

Here's a quote from "Agile Principles, Patterns, and Practices in C#" By Micah Martin, Robert C. Martin Simplicity the art of maximizing the amount of work not done is essential. Agile teams ...
-2
votes
0answers
18 views

Which framework (if any) should I use with React/Flux? [on hold]

So I am coming from Angular. I have built a couple React components, but I have never used the Flux architecture. I am hoping to figure out if I am going about this correctly before I write any code. ...
0
votes
0answers
15 views

Starting off with Grunt in an eclipse webapp project

I've been developing a webapp for some months now using struts2, jQuery and sitemesh to decorate my pages (JSP's mostly). My dependencies are managed by Maven and I've had a fun time learning as I'm ...
0
votes
1answer
32 views

Flux Pattern dispatcher broadcast

I'm trying to get a better understanding of the flux pattern Facebook introduced a while ago. From what I understand the dispatchers dispatches every payload to all registered callbacks. Does anyone ...
17
votes
1answer
1k views

Why do arrays in .Net have Length but other collection types have Count? [on hold]

In C# for example, arrays have Length property. But other collection types like lists, etc. have Count property. Is there a reason why these two are different? If so I would like to know.
22
votes
6answers
2k views

Explaining new or uncommon syntax in comments [duplicate]

As per the title, should I be explaining syntax that I use in my code when I have a reasonable expectation that a developer looking at my code in the future will not be familiar with it? Short caveats ...
2
votes
1answer
109 views

C# try/finally for state cleanup

Is there any reason (for instance: performance) against moving state "cleanup" code in a finally state? Example: this.state.InProgress = true; // logic here this.state.InProgress = false; With ...
0
votes
0answers
4 views

Could not send form data in PHPUnit? [migrated]

I am new to PHPUnit with Symfony 2. I have a problem sending form data to client. I have login details needed to log in the page. so i send it as array. Every time i run test i got Error Message as: ...
-2
votes
0answers
45 views

Builder Design Pattern : Accessing/Passing model data in/to Concrete classes [on hold]

First of all Sorry for question if its completely wrong, i am new to Design Patterns. I asked this question here also ...
2
votes
5answers
79 views

What is a URI Scheme?

I have searched for this question, but I haven't found a good answer. Even the Wikipedia Article on URIs does not explain it thoroughly. I thought it was the protocol for accessing a web page. e.g. ...
-2
votes
0answers
49 views

What's the lhs/rhs equivlent of a single parameter? [on hold]

Typical operator overloading conventions go like this: MyObject operator+(const MyObject& lhs, const MyObject& rhs) { return MyObject(lhs.my_value + rhs.my_value); } What would be the ...
2
votes
1answer
134 views

How do you troubleshoot an issue that you simply can't duplicate? [on hold]

I have a client that keeps reporting a certain issue that users are experiencing with a public-facing site written in MVC and hosted on Azure. It seems to happen at random, but for the life of me, ...
0
votes
0answers
21 views

Should an API specification include roles?

I'm considering options for specifying an API in a code library (e.g., XML or JSON) that can be consumed by various clients. In addition to the standard kinds of input/output specifications, I'm ...
1
vote
3answers
123 views

How can I create an abstract parent class which uses data from an inherited class?

I'm getting my feet wet with Android app development and tying to find a good way to manage database interactions across multiple similar objects. My goal was to have a structure like: public ...
2
votes
1answer
54 views

Algorithm for determining transactions among weekly data series?

I'm trying to develop a small reporting tool (with sqlite backend). I can best describe this tool as a "transaction" ledger. What I'm trying to do is keep track of "transactions" from weekly data ...
4
votes
0answers
29 views

Do classes in a JRE library support observable and/or asynchronous reads from external/non-JRE assemblies?

How can I implement my cross-platform library (e.g. on JRE) to operate in a thread-safe manner on object references, so that native front-ends on other platforms can observe the object and take ...
-5
votes
0answers
24 views

Are there example implementations of JSON-API servers that I can use as a learning tool? [on hold]

JSON API has been getting quite a bit of attention lately. I'd like to get a feel for the API, but I don't want to have to write my own backend service implementing it. Are there some JSON API ...
-4
votes
0answers
48 views

Spring's @Configuration - main() method required? [on hold]

When you're coding for a .jar file, and you're using Spring, you can code an @Configuration class that defines your beans, using the @Bean notation. So far, so good. Do you need a separate class ...
3
votes
1answer
63 views

Designing a ticketing system where the User and Administrator have similar but different functionality

I am designing a simple ticketing system in Laravel 4. The system will simply allow a User to create a ticket, and an Administrator to answer it. The User will be able to: View a list of his ...
0
votes
0answers
42 views

Repository pattern with service layer - too much separation?

I have an MVC site which uses the repository pattern. I don't feel like I'm using the MVC style enough, so I'm getting ready to re-architect some of it. But I'm also wanting to do it so if the ...
7
votes
2answers
134 views

How much should a view know about model?

I am building an application in python with a python wrapper for WPF and with DAG support. I am currently at a point where I have to decide a consistent way of interacting between the data and the ...
-5
votes
0answers
89 views

Bad project structure? [on hold]

OK, so first I'll start with an introduction. Recently, I've met a friend of mine whom I haven't seen for quite some time. He said he works as a C++ developer for a huge company (they make software ...
2
votes
2answers
167 views

Should the ternary operator be used outside of assignment statements? [duplicate]

Edit This isn't a question of whether or not the ternary operator is harmful. It's about whether or not there's a consensus about whether or not it should be used outside of assignment statements. ...
-6
votes
0answers
33 views

What does it mean by state information? [on hold]

I'm doing some research, I've read about state information and I'm not all that sure what it is. What is used to maintain it? Cookies, query strings, local variables, and databases? I can understand ...
-5
votes
2answers
75 views

Does CPU need local cache if Intel and Micron 3D XPoint is used? [on hold]

As Intel and Micron stated, the new 3D XPoint RRAM is 1,000 times faster than NAND. See link here. From speed perspective, does CPU still need L1 cache if Intel & Micron 3D XPoint RRAM is used as ...
-5
votes
0answers
21 views

Is CEF3 a feasible framework for supporting HTML5 audio and video on a desktop chat application? [on hold]

Our team is in the concept and design phase for a desktop VoIP / Chat / Video application. We'd like to use CEF3 because of its success with Brackets and Steam client but it looks like there may have ...
2
votes
4answers
89 views

Should create and edit be two separate user stories?

I often come across situations where creating and editing actions are very similar, but they are not exactly the same story. So should they be handled as separate user stories, or as one? For example, ...
-4
votes
0answers
45 views

Merge a single file edited by multiple collaborators after fetching to local branch [on hold]

After fetching a remoter repo to my new branch I have to merge my master branch to this new branch which contains a file that is edited by the collaborators and I have also edited that too in the ...
0
votes
1answer
58 views

Is wrapping a message queue in a web service a bad pattern? [on hold]

We (our team) have a web app that was periodically polling a web service. The web service was querying a database (MySQL). Then, we considered using a message queue (like RabbitMQ) instead of the ...
4
votes
2answers
84 views

What document/artifact should alert me when an old requirement changes the scope of new one?

I developed a software application a year ago, I delivered it with a simple documentation. For example, it has an special and complicated login system as requirement. Now the customer calls and ask ...
-2
votes
0answers
49 views

Paxos consistency [migrated]

I'm looking at the paxos family of protocols for solving consensus in a network of unreliable processors. I'm working through scenarios where processors fail, and I know I'm wrong, but I don't know ...
0
votes
3answers
95 views

When estimating with a fresh team on a new project, is there a reason not to use default velocity for estimating?

Generally when estimating using an Agile points system on an experienced project team, the points have meaning relative based on past experience - that take into account: understanding of the ...
2
votes
0answers
61 views

Seperate settings and implementation class hierarchies

We use XML serialization to store class settings. Each setting-class has (but doesn't reference) corresponding implementation-class. Therefore we can easily make a "settings dll" without any ...
1
vote
1answer
77 views

Pattern for passing in a field as a parameter

I'm writing a Rails app which uses ActiveRecord ORM and a Postgres DB. I've got two attributes which are similar but are separate fields in the database. The assignment and saving of these is kinda ...

15 30 50 per page