7
votes
4answers
846 views

Should Objects with lots of fields be broken up? [duplicate]

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
35 views

Querying large number of timestamps [closed]

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
49 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
58 views

How to do simple video processing with PHP? [closed]

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 ...
0
votes
1answer
59 views

behaviour of SQL BETWEEN operator [closed]

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
22 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
200 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
92 views

Responsibility of the small business logic: in a class or in a method? [on hold]

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 ...
2
votes
2answers
82 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
164 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
29 views

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

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
21 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
38 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 ...
19
votes
1answer
1k views

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

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
133 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
50 views

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

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
84 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
51 views

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

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
148 views

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

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
22 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
128 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
2answers
104 views
+50

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
35 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 ...
-4
votes
0answers
50 views

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

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
72 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
2answers
127 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 ...
8
votes
2answers
240 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
94 views

Bad project structure? [closed]

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
181 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. ...
-5
votes
2answers
84 views

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

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 ...
3
votes
4answers
107 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, ...
0
votes
1answer
59 views

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

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
93 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
101 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
65 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
80 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 ...
1
vote
1answer
47 views

Does ReaderWriterLockSlim provide thread safety and speed efficiency (compared to a traditional lock) when using a List?

I have a list, to which I write once in every update Loop and then I spawn some tasks which create read that List and create a duplicate to manipulate that data. More or less it's List.ToList() call ...
0
votes
0answers
21 views

.Net MVC 5.0 Website using Asp.Net Identity

I have a newly configured website using web api 2.2 and the latest version of asp.net Identity. I have the authorization working great for users that login and navigate the site. I'm trying to ...
1
vote
0answers
56 views

Detecting surface faces of a huge 3D mesh/grid

I've written a module in my application that creates a mesh from existing coordinate and face data. The number of vertices in the mesh could easily exceed 10 million and the same goes for the faces. ...
-3
votes
0answers
39 views

die() or try/catch when interacting with MySql database in PHP? [closed]

A lot of tutorials and books I have been over and read have used the die() method to catch an exception when interacting with a local MySQL database For example: mysql_connect($dbhost, $dbuser, ...
-3
votes
0answers
17 views

Using regular expressions in Python to parse LaTeX code [migrated]

I am trying to write a Python script to tidy up my LaTeX code. I would like to find instances in which an environment is started, but there are non-whitespace characters after the declaration before ...
1
vote
1answer
78 views

How to create a re-usable, command based messaging system

I am having trouble writing a simple command based system for a chatroom. I want users to be able to do chat actions such as /j myChatRoom or /join myChatRoom /w user12 Hello or /whisper user12 ...
-1
votes
0answers
53 views

Backpropagation in layman terms [closed]

I've been studying neural networks, and I'm beginning to understand the basics. I know what the backpropagation algorithm does. It feeds sample input and calculates an error against a given output. ...
1
vote
1answer
35 views

Should “special” roles exist in an ARO system?

Right now we're implementing a (honestly overly complex) role-based permissions system where users will be assigned to roles and those roles will be granted permissions on some combination of ...

15 30 50 per page