0
votes
1answer
156 views

Should I force “composition over inheritance” rule to class members?

As I know, according to "composition over inheritance" rule, we should avoid reuse a method by inheritance, but how about class members? Suppose I have parent and child classes: public class Animal{ ...
-3
votes
0answers
18 views

connecting java application to mysql server 2014 [on hold]

Please I want the driver name for connecting java application to mysql server 2014. This is what I am doing. I get the error class not found import java.sql.Connection; import java.sql.DriverManager;...
0
votes
0answers
51 views

Free Applicative Functor Performance

It is well known that the Free Monad has poor performance when compared to using standard mtl. However I think a Free Applicative Functor opens the doors to full static analysis. For a computation ...
58
votes
10answers
6k views

Where is the line between unit testing application logic and distrusting language constructs?

Consider a function like this: function savePeople(dataStore, people) { people.forEach(person => dataStore.savePerson(person)); } It might be used like this: myDataStore = new Store('some ...
0
votes
1answer
59 views

Divide java web app into smaller web app

I'm not sure if I should ask here or stackoverflow. Please let me know. I've a web application that consists of 3 main technologies: JSF, jax-rs and websocket. All three are coupled together with the ...
0
votes
1answer
134 views

How Common/Acceptable is it for a .NET developer to abstain from WebForms as a rule? [on hold]

I work at a mostly .NET shop. A coworker has more of a background in open-source MVC (think RoR and Spring MVC). She seems to really enjoy .NET MVC, but she practically refuses to work on Web Forms, ...
0
votes
2answers
43 views

Standard for implementing GUIs for command line utilities

I wrote a command-line utility and I want to develop a GUI for it. I saw that almost every tool on linux comes command-line, and it eventually has a GUI which interacts with the command line utility ...
0
votes
0answers
19 views

Best way to handle multiple environment specific sql scripts in source control

I am maintaining an app that uses a lot of sql server 2008r2 stored procs, views etc. The problem that I have is that certain stored procedures/views have code that is specific to the environment: ...
-3
votes
0answers
25 views

What should I learn to be an authority on JDE E1 and general web application development in my new role? [on hold]

This is my first post as I have gotten tired of trying to scour the internet to put together a good answer for my question. I'm 1 year out of college for MIS and have landed a job as an IT Programmer/...
0
votes
1answer
78 views

What is the difference between running two blocks of code on the same thread and running them on two synchronous threads?

Suppose I have two blocks of code, A and B. A is to be executed before B. As I understand, I can do one of two things: 1) Put B in a separate thread that is to be executed after A's thread, or 2) Put ...
6
votes
4answers
210 views

Is it too verbose to always have 'modified' time stamps on all entities within a database?

The question can be summarized as: In a database (regardless of type), would it be considered a good practice to always include updated, created (and possibly deleted) properties, for all entities,...
0
votes
1answer
25 views

Securing Amazon DynamoDB from Over-the-web attacks

I'm in the process of building out an architecture that will heavily leverage DynamoDb. My organization is considering the possibility of storing sensitive data (config info) in DynamoDb, as well as ...
8
votes
5answers
826 views

Techniques for ensuring cross-platform compatibility (C++)?

I was finishing one of my earliest C++ projects which is (according to the framework) supposed to be cross-platform. I developed the project fully in Windows and Visual Studio, thinking that since the ...
1
vote
0answers
32 views

What are the methods to accurately test the accuracy of a parts of speech tagger?

I know that most of the pos tagger algorithms measure their accuracy token wise I.e. whether the token is tagged correctly or not Some pos taggers provide sentence accuracy too. How is sentence ...
2
votes
2answers
95 views

Can a single Factory be used to create similar in purpose, but different in focus objects?

I am concerned about whether or not I am using FactoryMethod correctly. Background: I am refactoring legacy code and I have identified a pattern: there is a God Object that is created in memory,...
2
votes
0answers
110 views

What is a good way for a child to learn programming? [closed]

I learned to programme in Basic in the 80s, aged 7, on a BBC microcomputer. That computer was a good environment in which to learn - it was made with the specific intention of making programming easy....
4
votes
1answer
124 views

Why is it such a bad idea to share an interface between server and client?

I was reading the Spring Cloud Netflix documentation when I found out about a way to share an interface between an HTTP server and its client. They use this example for microservices, although there's ...
1
vote
0answers
13 views

Setup SVN repository with multiple applications and libaries while maintaining specific versioning per application

In our project team we have one SVN repository which holds multiple applications and libraries (all QT projects) /trunk/App_X/ /trunk/App_Y/ /trunk/App_Z/ /trunk/Lib_A/ /trunk/Lib_B/ /trunk/Lib_C/ ...
1
vote
2answers
97 views

Data structure to hold Excel column names with their values

I am learning how to read Excel workbooks in Java and want to know what a good Data Structure will be for holding Column names with the values under them. Example: I want to be able to call a ...
1
vote
1answer
59 views

Strategy for Binary File Format Description to C++ Implementation

I am dealing with a lot of legacy, reverse engineered binary file formats, often with lost source code and reading/writing these files needs to be recoded in C++. I am wondering if there are good ...
0
votes
1answer
29 views

Real-time collaboration via tmux / screen

As I'm sure most of you are aware; tmux and screen have features that allow the sharing of a concurrent terminal session with a remote host. At first this seems great, and for some purposes it is, ...
-1
votes
0answers
49 views

Writing efficient JS for website

Just a question really about best practice and to get a better insight in how to code in a more efficient manner. Currently when working on a website I'll have my custom.js file that usually looks ...
0
votes
0answers
93 views

What language are Visual Studio solution (.sln) files written in?

I suppose that maybe what made me ask this question is, that every time I do a commit in Git the .sln files comes up whenever there were changes. So, as a person who reviews all my changes when I do ...
0
votes
0answers
23 views

perfect isolation or train with polluted data for better OCR results

This is an (in my opinion) interesting thing I'm struggling with. I am building this app which should be capable to read utility meters. As with any OCR application this means I have to isolate the ...
0
votes
4answers
272 views

If of loops or loop with if

Assuming the compiler is smart enough to only evaluate the if in the second example once, which version should one (semantically) use and why? if (b) { for (auto a : as) { foo(a); } } else { ...
0
votes
0answers
31 views

Does Windows Task Scheduler and smartphone alarms use polling?

I've been wondering, does Task Scheduler and phone alarms use polling? If not how does it work? And if they do poll to check the time, why isn't it cpu intensive and battery draining?
0
votes
0answers
65 views

How to convince teammates to start separating database queries into one single layer

We are using ORM with bunch of database models and those ORM database queries (and models, of course) - are literally all over application from top to bottom. And when change in model structure ...
-2
votes
0answers
14 views

django module not found error while running manage.py [on hold]

I'm using Ubuntu 16.04LTS dual-booted with Windows 10. I just started getting familiar with Django framework and setup a virtual environment for the tutorial project. I followed djangogirls tutorial ...
-1
votes
1answer
78 views

Controllers and Separation of Concerns: discussing possible strategies

I've been working on a project based off of this tutorial. Unfortunately, the controller classes in this are quite dense and have terrible separation of concerns. I should have realized this ...
0
votes
6answers
407 views

Is it easier to read and maintain code using “!” characters, or implying “Not” in the method name?

I often find that "!" characters (meaning "not" in C-based languages) are easy to overlook. So I sometimes create methods that return the inverse result. For example, instead of doing this: if (!...
-1
votes
0answers
9 views

reprogramming bluetooth for android

i am trying to understand why only mac software is the only thing that can apperently pair to multiple bluetooth speakers at once and canfigure them as one output. I am having this issue because I ...
2
votes
1answer
100 views

Are promises functional

Functional programming is often explained to agree with lazy evaluation. As far as I know lazy evaluation means that a method gets called if the evaluator/browser/etc. thinks that is the next best ...
1
vote
0answers
37 views

Who should be reliable for permissions check in a web app?

I am working on a project where you have controllers that expose an API and services that implement some logic. In this project, each service* checks for the user's permissions to use the service. ...
0
votes
0answers
20 views

Is there a way to group branches from separate Git repositories [using Visual Studio]?

At my job we are migrating from TFS to VSTS Git, though the VCS types probably don't really matter as much as how we're using them. We use VS2015 for development usually, in case that matters. The ...
0
votes
2answers
84 views

How to remove circular reference when there is inter-dependence

I made an extensive research in previousv related questions, but since my questions is somewhat peculiar, I decided to create this new one. I am implementing a visualisation application (in JS). ...
-2
votes
0answers
18 views

how to graph values calculated by Xcode in OS X? [closed]

I have programs that have calculated some mathematical models which gives values that needs to be ploted, the plots are 3 dimensional. I was wondering how is this usually done, I'm not looking for an ...
-2
votes
0answers
64 views

Is LaTex markup? [closed]

Yeah so I guess the question really is what would make a {} in latex a beginning and end tag, while a {} in C java etc, is a closure? Either way the demarcation provides logical structure and we seem ...
0
votes
2answers
60 views

Parallel testing API based mobile application

The setup So we have a RESTful JSON API. There are iOS and Android applications that consume the said API (one of each). The code for the applications is such that the endpoints are hardcoded to "...
0
votes
1answer
30 views

designing a data warehouse: action or status based

I am designing a data warehouse for a sales platform. There exists a group of users that offers and group of users that demands entities. The production data base holds two sources of information: ...
6
votes
3answers
200 views

When to commit work in git?

When I'm working on a project, I tend to write a lot of code. A lot of code means alot of bugs. If I commit my work early on , I have to edit that commit when I encounter a bug and fix it. This is why ...
0
votes
1answer
56 views

Are there pitfalls to consider when integrating with third parties?

In many of my personal and professional projects inevitably comes the moment where we have to weight pros and cons of integrating third parties versus developping a home solution. I've always been a ...

15 30 50 per page