0
votes
1answer
57 views

Ways to avoid using switches to map strings to classes

I have a C# solution that reads records from a db and processes them into another db. The records to be processed are essentially one long string that represents the data and then another string ...
4
votes
1answer
82 views

Why does SOP permit cross-origin form submissions?

Same origin policy does not prevent origin foo.bar from creating a form with action attribute set to another origin baz.duh and even allows to pragmatically submit this form without the user knowing ...
0
votes
1answer
33 views

How to implement a NavigationManager class without using singleton pattern

I'm practicing on writing testable code. One problem I have ran to (researched a lot too) is singleton pattern. It's global state nature makes it unreliable to test because singleton's property ...
-1
votes
0answers
31 views

Options for DB to use to store object with 200+ *searchable* attributes and ~500M records [on hold]

What is/are good options to store an object with about 150 plus attributes should be possible to add more attributes easily about 500M records all attributes need to be searchable it is possible to ...
-4
votes
0answers
21 views

what are the Practical ways to implement API in JAVA? [on hold]

I got the API from this url:"http://resources.arcgis.com/en/help/arcobjects-java/api/arcobjects/com/esri/arcgis/geoprocessing/tools/conversiontools/CadToGeodatabase.html" I don't know how to use it. ...
-4
votes
1answer
97 views

Do you tend to comment your code? If so, how? [on hold]

I have, until now, tried to make my code clear by using descriptives variables and function and methods names as well. I get told by some people that comment use really useful cause it can render ...
0
votes
1answer
35 views

How to Architect a solution to handle Project Subscriptions for Projects and Child Tasks Subscriptions that can overlap each other?

I am building a Project Management application with PHP, JavaScript, and MySQL . Here are some notes related to my question which is about how to implement a Subscription model for users to subscribe ...
-3
votes
0answers
22 views

Making Road System in Unity3D [on hold]

I wanted to make a road system in Unity which will allow the cars to follow a path similar like this, Is there any algorithm or technique that I should learn when I building a path for the cars? it ...
-3
votes
0answers
12 views

how to change form fields once you have submitted the form [on hold]

i wanted to add date to my date field after taking rest of values through a form but it is throwing integrity error repeatedly here are my code : error is : IntegrityError at /blogs/new_blog/ ...
4
votes
2answers
92 views

Should serialization and deserialization be the responsibility of the class being serialized?

I'm currently in the (re)design phase of several model classes of a C# .NET application. (Model as in M of MVC). The model classes already have plenty of well-designed data, behaviors, and ...
1
vote
1answer
341 views

JavaFX with or without Rich Client Platform

I'm starting to delve into JavaFX and have heard that one of the cons of java fx is that there isn't a mature rich client platform or application framework ala eclipse rcp or netbeats platform for it. ...
0
votes
1answer
147 views

Possible way to make java class builder more abstract by using interface required keys

I'm looking for a more abstract pattern for builders that handles required fields without the need of writing a validator that checks if all requried fields are set. I like this builder. But is ...
2
votes
3answers
187 views

How to reuse common code between presenters

In my application there are 2 views both have 70% common fields like name, icon etc. One view is about list( contains 2-3 fields). On clicking the list , the next view which is the details should be ...
-4
votes
0answers
35 views

E-olymp: Cake. Giving Wrong Answer [on hold]

Cake This is the question. While I am submitting in normal Gnu C++ then it is giving 27% accurate result and when I am submitting in Gnu C++ 4.7.1 then it is giving 8% accurate result?? What is the ...
-3
votes
0answers
16 views

softening binding in javascript [on hold]

Okay, another example from you don't know js... So this time, I have been spending lot of time on this one code as it really doesn't make any sense. I am really getting confused on the part where ...
0
votes
1answer
27 views

Implementing SEO for a Zend Framework/PHP/Angular.js application

A team has implemented a web application using MySql, PHP with the Zend framework and Angular.js on the client side. I am in charge of implementing the SEO for this application. I understand I have ...
47
votes
2answers
4k views

Why have hardware-accelerated vector graphics not taken off?

I'm working on an app that involves real-time manipulation of vector paths at 60fps, and I'm very surprised by how little information there is on the subject. At first, I tried to implement my idea ...
2
votes
2answers
170 views

How do I make this functional DSL written in an imperative language more efficient?

Suppose I create a simple functional Domain-specific language (DSL) using an imperative language, in this case C++. Here is a simple implementation of a DSL that can has the notion of a simple value ...
1
vote
1answer
34 views

Should MVVM models contain complex objects

Let us say that I have a Book class, a book can have an object of another class like an Author or other complex objects like a list of Genres. My question is, in an MVVM model should I make the ...
-4
votes
0answers
14 views

Front end development [on hold]

I want to make a website/social network. I am pretty good at back end development but I end up creating the weirdest themes. I cannot work easily on front end. Is there any place where I can visually ...
0
votes
0answers
62 views

How can I learn to write device drivers for linux? [on hold]

I've been searching around for good reading material, but unfortunately haven't found anything that seems to cover what I'm looking for. I've never developed drivers for linux before, so I'm looking ...
47
votes
7answers
5k views

How can I argue convincingly against duplicating database columns?

I've started working at a new organization and one of the patterns I've been seeing in the database is duplicating fields to make writing queries easier for the business analysts. We're using Django ...
-2
votes
0answers
20 views

Making a decentralized network of servers and clients in Java [on hold]

I'm working on a java assignment.So far I've written a simple SQL-like program in which a Server stores all the data and different clients can be connected to it with their username and password, to ...
-3
votes
0answers
30 views

generating java file from proto file using protocol buffer compiler

I have proto file in C:\Sooraj\Playdrone\android-checkin-master\src\main\protobuf\checkin.proto after unzipping protobuf the java related source code is in ...
1
vote
2answers
211 views

Big graph traversal with OOP

I'm trying to solve a algorithmic contest's problem. I have a matrix 2000x2000. I want to represent it as graph and traverse it with BFS/DFS. I have time limits on app running (2s). Simple vertices ...
1
vote
2answers
108 views

Composite Primary Key drawbacks

For website that I maintain (eCommerce) I now need to make a table that seems to require Composite Primary Key of 5 columns. I never used 5 column as primary key before, only 2 and rarely 3. I ...
0
votes
1answer
162 views

How much to encapsulate when objects being dealt with are pretty similar

As I have been answering questions related to object-oriented design and how to go about reducing the amount of classes to make sure that there is not a lot of "class clutter" and code repetition I ...
3
votes
1answer
98 views

Nested POJOs, exposing collections, detecting changes

I have a couple plain object classes to represent data read from a file. They look something like this: public class Command { private String name; private List<Message> messages; } ...
-3
votes
1answer
69 views

8 Queens Problem [on hold]

I am trying to improve my knowledge of data structures and algorithms, and have been solving programming problems to accomplish that means. This problem called "8 Queens" seemed like simple iteration, ...
4
votes
1answer
153 views

Does REST is only limited to optimistic concurrency control?

Context Due to the statelessness of the REST architectural style involving that each requests stands completely alone, leading server to never store any informations about client. Thus, pessimistic ...
0
votes
2answers
319 views

block access to area/controller's methods but allow inherited controller to run methods, asp .net mvc5

I am trying to find out how to block a whole area/controller from being accessed by typing url website.com/area1/basecontroller/method1 (this area also contains the views that will be displayed) , ...
0
votes
1answer
51 views

Agile development where customer collaboration is difficult

The agile manifesto states Customer collaboration over contract negotiation My question is how do you make this work effectively when there is distance between the developers and the users? ...
-2
votes
0answers
95 views

What is the meaning of manage c++? [on hold]

What is managed C++?. How does it differ from unmanaged C++?
0
votes
1answer
34 views

Step-by-step functional testing automation

I have a basic class in C# from which I create inherited classes for databinding scenarios. You can think of it as a substitute for .NET's DataRow class. I want to automate testing of a typical row's ...
1
vote
2answers
375 views

Generics in C# Test Class

I'm learning about unit testing in C#. Languages_Service and PlaceOfWork_Service are classes for SOAP services which Microsoft Navision generated for me. There are several methods that are very ...
1
vote
1answer
65 views

What's the quickest and most maintainable way to implement SQL querying of disparate C++ variables?

I've recently joined a team working on radar observations. The team has access to a repository of software (written in C++) used for dealing with these observations, but their work is focused towards ...
0
votes
1answer
78 views

Architecture: Validate polymorphic votes - Controller or Model?

I have a question because I don't want to do something wrong. I have a polymorphic relation called votes. Well, I want to save votes but I need to validate if a user already has voted. But even if, ...
-3
votes
2answers
42 views

In HTML and CSS what are the standard tab sizes? [on hold]

I searched on Google but couldn't find an answer. I'd like to know what are the standard tab sizes for HTML and CSS. Is it 2 or 4?
9
votes
8answers
438 views

How can a team apply the Scrum methodology without a clear customer? [duplicate]

Our team is trying to understand and adapt Scrum and other agile practices, but we can not figure out how to deal with customer feedback when there is no customer. Every document about the subject ...
-5
votes
0answers
29 views

What are the benefits of learning Sharepoint in terms of future job opportunities? [on hold]

I have been reading around about Sharepoint and I've seen a fair amount of negative comments on various mediums (blogs, SE, etc) about how it's a nightmare to use. I may have an interview with a ...
13
votes
3answers
989 views

How are generics implemented?

This is the question from compiler internals perspective. I am interested in generics, not templates (C++), so I marked the question with C#. Not Java, because AFAIK the generics in both languages ...
11
votes
3answers
346 views

Do binary trees serve a specific purpose in storing hierarchical data? What is their canonical use?

I understand the structure of binary trees and how to traverse them. However, I am struggling to realize their actual uses, purposes in programs and programming. When I think about 'real life' ...
27
votes
7answers
13k views

What is a “side effect?”

I haven’t clearly understood the concept of side effect. What is side effect in programming? Is it programming language dependent? Is there such a thing as external and internal side effects? ...
4
votes
2answers
123 views

What is a good design for allowing backwards compatibility of files between different versions of software?

What is a good design for allowing backwards compatibility of a file type between different versions of software? For instance, how does microsoft get word 2007, 2010 and 2013 etc... to all open docx ...
0
votes
1answer
38 views

Normalizing a numpy array

I checked a while back for questions relevant to my own about normalizing numpy arrays but couldn't find any. So I'll pose my question following this line of code: for i in ...
4
votes
1answer
159 views

Get license information for all used NuGet packages

To keep our house in order, I want to automatically assemble licenses for project dependencies in our documentation, rather than having to add them manually. Does anybody know a simple way to ...
1
vote
0answers
17 views

Programmatically trigger a deployment sequence independently from a build [migrated]

I currently use Team Foundation Server 2013 Update 3 and Release Management 2013 with Update 3. With Release Management one can start a deployment sequence, part of a stage, manually or automatically ...
0
votes
0answers
57 views

Should I attempt to learn web dev in a week? [on hold]

I need to write an application for managing files/records in a directory (the records themselves are related to patches/updates we send to clients [different clients have different versions of the ...
0
votes
2answers
111 views

Content delivery design

I'm designing a system where users can access files stored in an external content storage service such as AWS's S3. Here's a simple diagram: ------ ------------ ----------------- | User ...
9
votes
4answers
313 views

Reducing boilerplate in class that implements interfaces through composition

I have a class: A that is a composite of a number of smaller classes, B, Cand D. B, C, and D implement interfaces IB, IC, and ID respectively. Since A supports all the functionality of B, C and D, A ...

15 30 50 per page