0
votes
0answers
17 views

Is this a well-known problem?

I have some vague recollections from my algorithms courses, but nothing specific comes to mind. let S be a multiset of things we are interested in. As input, we get T, s1, s2, ... sn, all ...
2
votes
2answers
130 views

Can a Java Boolean be used for ternary logic?

I'm trying to make a basic cache of a boolean value, and I did it like such: private Boolean _valueCache = null; private boolean getValue() { try { if (_valueCache == null) { // if cache ...
0
votes
2answers
42 views

How to ensure a new Unit Test is for the correct Test Case?

When writing a unit test for a scenario believed to be already covered, ie, the first run of the test would be green, what is a good guideline to ensure that it is in fact testing the proper test ...
2
votes
1answer
30 views

Advice on new git / deployment workflow

I work with a small team that until recently didn't use source control. I'm working on the layout of our development/deployment workflow with git. I would appreciate and advice or insight you might ...
0
votes
0answers
12 views

how does test-driven development prevent us from type errors?

I heard (from Robert C. Martin) an assertion that since dynamic languages don't have static typechecking, people should write unit tests to prevent us from type errors. I'm not sure if I'm following ...
1
vote
2answers
43 views

OOP implementation doubts with databases

I was starting a project today and after designing the database structure and how the data would be stored etc, I started the implementation. I am doing this on php, but the language isn't really ...
2
votes
4answers
141 views

Way to toggle debugging code on and off

I was programming a manchester decoding algorithm for arduino, and I often had to print debug stuff when trying to get things working, but printing to serial and string constants add a lot of ...
0
votes
2answers
568 views

For asp.net mvc is this a three tiered solution?

I am a asp.net mvc programmer and if I want to start a project I do this: I make a class library named Model for my models. I make a class library named Infrastructure.Repository for database ...
1
vote
1answer
25 views

Avoiding std::forward and Rvalue References

I recently read the Google C++ Style Guide and especially one part catched my eye. The part about Rvalue References discourages from using std::forward in general and using rvalue references in other ...
2
votes
2answers
119 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 ...
-1
votes
0answers
5 views

knapsack problem using greedy [on hold]

I have a code for knapsack problem using greedy but is is not the best optimal option and does not work very well. Can someone give me an optimal idea for this? #include <iostream.h> int o[50]; ...
19
votes
0answers
2k views

How to help a junior developer that refuses help? [migrated]

In my team, I am the person with the most experience. We lack a strict junior/medior/senior split so we are all equals. I have been involved with this project from the start and because of that I have ...
6
votes
0answers
57 views

Haskell build and artifact environment similar to Maven

I used to be a Java developer for a long time, but recently, I joined a Haskell team. In the java world, if you have a large project, with several teams working on it, a common approach is to use an ...
-5
votes
0answers
40 views

Find all permutations of a set of 6 numbers

I'm trying to find all permutations of a set of 6 numbers given the following limitations. The set contain 6 numbers The sum of the set equals 111 A number is in the range 1 to 36 inclusive I need ...
-2
votes
0answers
17 views

PHP ADLdap - security considerations when moving from intranet to internet [on hold]

I have an application developed using PHP. Authentication is handled via our intranet using the ADLdap library. I've been asked to make this application public facing. It currently runs on a CentOS ...
3
votes
3answers
125 views

Calling Web API vs adding reference to underlying dlls

This is more of an Architecture question, and I want to know all the possible pros and cons of the approach. In my org, we have an ASP.NET Application say "A", a Web API Project say "W", and ...
-6
votes
2answers
54 views

Why C=A.append('1') doesn't work in Python

A=['1'] C=A.append('1') print C Why is the above code return None but not ['1', '1'] in Python ?
0
votes
1answer
99 views

How/Why do we design “Data abstraction” and “Abstract Data Type”?

I learnt that Data abstraction is a barrier between "representation" and "use". I learnt that Abstract Data Type is some collection of selectors and constructors, together with some behaviour ...
-4
votes
0answers
20 views

CKEDITOR and angular version conflict [on hold]

I am trying to embed ng-ckeditor in my angular app. However, I kept on getting an error message stating the module could not be instantiated. While I am sure I have injected ngCkeditor to angular's ...
0
votes
2answers
242 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) , ...
1
vote
2answers
2k views

Tips and Tricks on Web Page Design on ASP.NET MVC (Razor Syntax)

I am a newbie in web development and have started studying ASP.NET MVC. I noticed that cshtml replaces aspx when using Razor syntax and design view is not supported. Now designing ASP.NET MVC webpages ...
0
votes
0answers
40 views

Extension of native prototypes, good or bad practice?

Today I stumbled upon this page on the Mozilla Developer Network. In it, not only it is stated that it's a bad practice to extend native prototypes, but also that there is only one exception to this, ...
0
votes
0answers
39 views

Calculate the time remaining until a subscription [migrated]

I have a subscription that can be subscribed to every month, every two months or every 3 months. That's represented as a subscription_frequency of 1, 2 or 3. I then have a month_joined property (1 ...
1
vote
4answers
123 views
+100

What architecture/design to adopt when consuming a RESTful API? (iOS App)

TL;DR 1) I want to refactor the biggest part of the app on which I work - and it is pretty much spaghetti. It's a single class that makes the requests to the server, parses the JSON and saves the ...
0
votes
0answers
46 views

SQL: GROUP BY where a column is unique [migrated]

So I have this one giant table e.g. PROD_IDGEOG_IDTIME_IDVALUE1 1      MT     JAN    100    ...
1
vote
0answers
38 views

Hierarchical ViewModels and tracking IsDirty/PropertyChanged events

I have a set of ViewModels depicted like in the below picture. And, I have a couple of commands AcceptCommand, CancelCommand in the Top Level View Model that are bound to Apply, Cancel buttons ...
14
votes
7answers
3k views

Team member questioning moving from VBA to C#

Background Last year, I was asked to create a tool to be used for business planning for around 10 users. This was done on behalf of another IT team who "sub-contracted" the work to me, and due to the ...
0
votes
1answer
61 views

Agile: QA without dedicated test resource

I'm currently working in a small internal software development team of four people. Having had a lot of success with Agile in the past (which none of my colleagues have used before), I'm keen to try ...
-4
votes
0answers
36 views

What aspects do a programmer and language designer/implementer need to know about the syntax and semantics of the language? [on hold]

Do language designer, language implementer, and programmer of a programming language care about different aspects of the syntax and semantics of the language? What aspects of the syntax of the ...
1
vote
1answer
62 views

One commit in two branches: what happened?

I work on a project using maven and svn. Today after a svn update, the maven build was failing on the svn trunk. When I looked in the svn logs, I saw something strange: a commit affecting two ...
0
votes
1answer
62 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 ...
0
votes
1answer
274 views

Calculate reachability of one point from another

I have an array which stores a set of positive x coordinates in sorted way, say arr={1, 4, 5, 9, 12, 45} etc. And I have a maximum distance k which I can go from one point to another point let ...
0
votes
2answers
44 views

Version number for a pre release software that will be the second major release

If we have an app that is not finished already, but we release it, we use a version number like 0.x.x and when it is finished it will be published as 1.0.0. Now the app's latest version is 1.2.6 and ...
-2
votes
0answers
19 views

Is it possible to build a heavily personalized handrwiting recognition system delivering services through the cloud? [on hold]

0 down vote favorite I plan on getting a team and building a Handwriting recognition software delivering solutions through the cloud for .say enterprise needs , I am not an expert in image processing ...
-3
votes
0answers
18 views

a free light and fast DICOM C/C++ tool [on hold]

I am looking for a free (free for be integrated in commercial product) licensed, light weight and fast DICOM tool, so that I can read the information (pixel intensity, header....) from DICOM file. ...
-1
votes
0answers
16 views

How to determine cut-off/threshold value for logistic regression using cross validation

I am wondering how to implement cross validation for logistic regression. The issue arises when you do not have a (predetermined) fixed cutoff value to binarize the regressor results. In general the ...
5
votes
3answers
193 views

OOP Practice: how to best handle dependent dependencies

I have a problem with the design shown in the picture. My Section class has some TextBlocks (or simply Blocks). The section should be drawn on a page (a Bitmap as device context). It sets the blocks ...
5
votes
1answer
287 views

What is the purpose of Code analysis and when do I need to use it?

I heard about Visual Studio's Code analysis but never used one. I've read MSDN, but still don't understand the real use of Code analysis. Isn't it the same as StyleCop? Somewhere, FxCop was also ...
0
votes
3answers
99 views

What do design and implementation mean?

The words "design" and "implementation" have been used widely. But I am not sure that I understand them. What do design and implementation of a computer-related system (e.g. a computer system, an ...
2
votes
2answers
37 views

Design: How to handle user permissions across a system

My team is currently working on a massive refactor of a medium-sized application in PHP. We are doing our best to refactor our code on a module (Orders, Users, Products) basis. The issue that I am ...
-2
votes
0answers
62 views

How to deal with utilities with same name but behave differently between Unix and Linux? [migrated]

For some reason, I chose Macbook as my computer to managing remote Linux servers. Sometimes I will encounter troubles with those utilities which have the same name but behave differently between ...
0
votes
1answer
28 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, ...
0
votes
1answer
34 views

Linux deployment environment including local and AD users

My current situation: company with AD infrastructure at least 3 considered linux application servers SLES11 no AD logins for linux on each exists one local user every developer uses this user to ...
0
votes
0answers
28 views

Connecting desktop APP directly to DB or through a proxy (WCF)

First of all, I am not a programmer anymore but like to stay in touch with development. I would like to develope a simple system for my teammembers to log their work and additional data. Basically, I ...
-6
votes
0answers
40 views

Programming languages: syntax and semantics, with design and implementation and with paradigms [on hold]

Since a semantics of a programming language maps its syntax to its model of computation, is implementating a programming language mostly (if not all) about its semantics? Is designing a programming ...
-3
votes
0answers
11 views

How can i create contact button,like Archive button shown in SuiteCRM outlook plugin [on hold]

i want to add a contact button,like Archive button shown in SuiteCRM outlook plugin,and also i want to add an action for the contact button,so that on click of the contact button the current selected ...
0
votes
0answers
15 views

Android: Different interpretation of sp/dp on different devices?

I have a design problem with the app I'm working on, and I'd like some more general/conceptual advice rather than actual coding advice. I noticed that objects I size in sp/dp look very different on ...
35
votes
6answers
4k views

Releasing open source software too soon [on hold]

What is the moral responsibility of releasing open source software too soon? For instance, a close-to-complete product that hasn't been fully tested. What is the expectation of the programmer? Wait ...
1
vote
2answers
63 views

How to organize code which converts from one type to another

If I have a DateRange class, and I want to translate a DateRange into SQL (e.g. some_col >= '2015-3-5' AND some_col <= '2015-3-5'), where should I put the method that does the translating? ...
-1
votes
0answers
19 views

Object Oriented Design Principles [on hold]

This may not be the right place, but can anyone point me towards a source of information as to why one would choose a way of implementing a piece of functionality? For example, why you would use a ...

15 30 50 per page