2
votes
1answer
161 views

Hidden dependencies - why not?

Hidden dependencies: function __construct($dep_registry){ $this->db = $dep_registry->get('db'); $this->request = $dep_registry->get('request'); ... } Not so hidden: function ...
2
votes
1answer
47 views

Structure project based on platform or design?

I have a medium sized project (~10,000 lines) that runs on Windows and Linux. However it is only specific components of the program that are platform dependent and are located in a folder called ...
0
votes
0answers
52 views

What are the different types of whitespace referred to by Perl? [migrated]

I am trying to find the Java equivalents of the Perl regular expressions not supported by Java. These are, as listed in the Java Documentation: \h A horizontal whitespace \H A non horizontal ...
-3
votes
0answers
8 views

AngularJS $http.get JsonResult [migrated]

I am building a dx-chart inside of an AngularJS file. I would like to use $http.get inside of my ng-controller. Here is the AngularJS file. However, when I try to use $http.get I still display the ...
3
votes
0answers
68 views

Is there a performance benefit to using the method reference syntax instead of lambda syntax in Java 8?

According to the Java Tutorial on Method References: Sometimes... a lambda expression does nothing but call an existing method. In those cases, it's often clearer to refer to the existing method ...
-3
votes
0answers
36 views

Mail exchange software [on hold]

I need to allow users of my site to write emails to each other, without revealing their email addresses. Here’s an example: user1@gmail.com sends an email to user2-alias@mydomain.com, ...
-1
votes
0answers
19 views

Tools for data modelling [on hold]

I am refactoring a one year old web applications. My first few steps to gain a bigger picture is to "draw" all the models I would need or already there. Is there a tool out there which helps me with ...
0
votes
0answers
21 views

Atlassian Bamboo package from multiple repositories

We're currently developing a server/client application. The server is a maven Java EE project. The client interfaces are in HTML5. We use Stateless REST interfaces to communicate with each other. As ...
0
votes
1answer
76 views

Is Erlang really an actor model language?

I was reading this article: http://www.doc.ic.ac.uk/~nd/surprise_97/journal/vol2/pjm2/ And it mentions that: ...in the actor model even an integer is represented as an actor... Wikipedia ...
3
votes
3answers
60 views

Approach to designing a workflow web app that contains some automation

I have been tasked with creating a web application which will provide end-users with a self help workflow, asking them questions and skipping to another part of the workflow depending upon the ...
23
votes
3answers
3k views

Dynamic Code Evaluation in Java - Clever or Sloppy?

I am trying to create a flexible ACL framework in Java for my application. Many ACL frameworks are built on a whitelist of rules, where a rule is in the form of owner:action:resource. For example, ...
1
vote
0answers
22 views

Can't get path-dependent types to work in scala enumerations [migrated]

I'm trying to spin my head around the path-dependent types in Scala's enums while making a Reads/Writes for Play2. Here is the code I have so far, it works, but with an asInstanceOf: implicit def ...
0
votes
1answer
54 views

FP: Capturing the characteristics of a process which blocks, causes side-effects, and may fail

I have a driver function modifyFile that interacts with many sources in the outside world (e.g. HTTP, filesystem). Let's say the code is as such: def downloadFile(from: String, to: String): Try[Unit] ...
-3
votes
0answers
51 views

Creating a simple Window program [on hold]

so I am new to programming I am using mainly the console do program.And since I am a beginner I was wondering how can I make a simple window program with Text?I am sorry for my newbie question but I ...
-2
votes
1answer
61 views

Why does Golang expect a right bracket in the middle of a for loop? [on hold]

When I try and run my Go test file, I get some errors. This is the test file: package rb_database import ( "system" "testing" "time" ) func TestGetBinContentsResult(t *testing.T) { ...
1
vote
1answer
35 views

DataThread class that doesn't extend Thread, poor naming?

I created a DataThread class that doesn't extend a Thread, but has one as a member variable. Favor composition over inheritance, is a rule that I heard of, but I am thinking that the name of the ...
-2
votes
0answers
32 views

Get from object or use variable [on hold]

Which one is better //somewhere here i have Test test = new Test(); object String name = "default"; if(test.getName() != null) name = test.getName(); or String name = "default"; String ...
0
votes
0answers
31 views

what is the relationship between CORBA, JMS and MDB?

In the context of my previous fuzzy question on microservices, please help me break down the terminology involved in these technologies: CORBA JMS MDB Utilizing JNDI, I believe it's possible to do ...
0
votes
3answers
317 views

Who should write the Technical Design Document? The BA or the Developer? [on hold]

I work as a Snr. BA in a large Manufacturing company and I've just implemented a new Requirements Management Process. We have a large range of internal developers who in the past have never been ...
-6
votes
1answer
56 views

in c programming i need custom atoi code [on hold]

i want to subtract two 64 bit hex numbers(in c programming), 0x0000888888888888 -1st hex value - 0x00000000839DDB7A -2nd hex value = 0x0000888804EAAD0E =(need the above result in hex) The 1st ...
0
votes
2answers
37 views

Examples of operating systems capable of serving http-requests that does not support direct slash for directory separator

My php framework uses DIRECORY_SEPARATOR constant instead of /. Can there be any other options for a directory separator?
-2
votes
1answer
50 views

Any error will ocurr in this statement? ((a)*(b)) [on hold]

#define Product (a,b) ((a)*(b)) I assume "a" and "b" is an integer or a real number. Here are the errors I could think off If the programmer for some reason and apply string or ...
0
votes
1answer
39 views

Any good data structure to perform efficient lookup and modification operations about what are the shapes containing the current cursor position

I think I'm facing a pretty common issue but cannot remember which solution is the most suitable one. Let's put it that way: I can, in a, certain, given, language get some events anytime the user is ...
1
vote
2answers
73 views

Is storing data that rarely changes in-memory a good candidate for a singleton/cache?

I have a class called DataPoint that is defined like the following. Currently, it goes through each property on an object and based on the DataPoint, it does some formatting like padding, trimming, ...
-1
votes
1answer
29 views

What's the best way to implement a real time show board to show results from concurrent result producers in Java?

I'm making a load test tool that launches multiple thread to simulate load on the target server. Each thread executes a predefined set of commands in the structure of TestSuite - TestCase- TestStep ...
3
votes
3answers
123 views

Development Time: sql in UI code vs domain model with datamapper

First, sorry for my English guys. Currently this is my first programming job. I am labeled as the most incompetent programmer in my company that's because they measure the performance and ...
-1
votes
0answers
14 views

WebAPI to source Location Satellite Images [on hold]

I am developing an ASP.NET web application that calculates a percent score of an algal bloom from a satellite image. I'm looking for a WebAPI that will allow me to access a recent satellite image ...
0
votes
2answers
91 views

Beginner Decorator Pattern Question

I came across this article: http://sourcemaking.com/design_patterns/decorator After reading it, I am having a little bit of difficulty understanding a concept. If you look in the Structure section in ...
-3
votes
0answers
35 views

Social Bookmarking for Programmers? [on hold]

I am a new programmer, really just getting started. I don't know too many people who program around here so I am not sure where to take this question. I will try to express it as a proper question and ...
0
votes
4answers
62 views

What's the best way to handle slightly different exceptions?

My code right now looks something like this: void throw_illegal_part_of_input_exception(char c) {} void throw_invalid_input_length_exception(int position, int length) {} void ...
-3
votes
0answers
59 views

Does a computer science major need any certificates after completing their major? [on hold]

assuming one were to do well academically, and build up their portfolio also during their free time (hobby and such), would a programmer/software engineer need certs, like IT pros do? or is it enough ...
0
votes
1answer
51 views

How to search for patterns on a (game)board?

Assume a gameboard with two kinds of pieces. Let the task be to find a common patterns of pieces, namely the patterns that lead to winning. The problem is general, but the game in question is ...
-3
votes
0answers
35 views

Help On My First Website! [on hold]

This is my first go at things and the webpage looks good on my computer but looks wayyy different on others in terms of alignments. Is there some sort of coding I can do to make the page universal to ...
-1
votes
0answers
51 views

How to approach code review with limited resources [on hold]

I've been given the following task: A company is giving source code for its product (comprising over 1 million lines of C++, Java, with some assembly) for my review. The code will be loaded ...
0
votes
2answers
50 views

How is the best way to work with step by step documentation to software maintenance [on hold]

I'm working on a web project in java and I have a problem with the documentation we are making. The goal is to has step by step how to do some basic stuff for system maintenance, like add fields to a ...
1
vote
1answer
31 views

Clojure NameSpace Design

I am new to Clojure and trying to get a handle on organizing a project's namespaces. I am working on a solver for the knapsack problem. Currently, I have broken the modules into files, but everything ...
0
votes
0answers
71 views

To KISS or not when coding? [duplicate]

I don't consider myself "ninja" but I don't think I'm bad dev either. Anyway, after many years of development I tend to keep it simple more ofthen than before. For small projects there is no need to ...
-4
votes
0answers
24 views

Mobile development experience using Kony? [on hold]

I have an opportunity to "level up" at my job in enterprise IT/development by moving from front end/back end web development to a mobile development team which will be developing apps on the Kony ...
4
votes
0answers
53 views

Using advertising with free app is a commercial app? [on hold]

I have a simple question: if I publish a free app (iOS, Android, ...) and implements advertising in the app, does it's considered a commercial app? I'm asking this question because I don't know if I ...
1
vote
1answer
31 views

Object Storage where Object Type is variable

From time to time, we come across a problem where we must store an object, but we don't know in advance what kind of object we're going to store. I'm going to give a very simple example. Requirement: ...
1
vote
1answer
50 views

Non-fixed-size Fenwick Tree implementation

I'm planning to implement a non-fixed-size Fenwick tree. That is, a Fenwick tree that allows interleaving range queries with adding/removing elements. All implementations and samples I've seen so far ...
1
vote
1answer
106 views

Using exceptions as regular objects [duplicate]

I have views that handle different errors in my application. For example error 404, 403 and such, giving my errors a more user-friendly presentation. By assumption, they get passed in an exception, so ...
2
votes
1answer
42 views

Peculiar architecture interfacing .NET to AutoCAD out-of-process

I have written a set of classes to interact with AutoCAD from an out-of-process .NET assembly, but it seems like my class architecture and interactions are unusual. I am struggling to find a better ...
0
votes
1answer
53 views

What happens to database design process when ORM tools are used?

I have learned about database design, including normalization during my undergraduate course. When we have to model a database for a system, we can start with an ER model and then convert it to the ...
-4
votes
0answers
21 views

Inserting file_path into database using Codeigniter [on hold]

I am new to Codeigniter, so having some confusing on this proccess: I have a form field where user can upload any jpg|png|gif file ,the uploaded file is successfully sent to a uploads directory and a ...
0
votes
0answers
14 views

Is the ProtectedData class still an acceptable method to store passwords? [migrated]

I'm writing a piece of software which will have to store a users password to allow authentication with a 3rd Party service. Unfortunately, this service currently requires the use of a password rather ...
2
votes
1answer
287 views

How should I handle database failures in a web application? [duplicate]

I'm developing a simple RESTful API using Go's Goji framework (although this question is language-agnostic), in which parameters from the URL are queried against a PostgreSQL database. Here's how it ...
-2
votes
0answers
36 views

Java Web Framework for Functional Reactive Programming [on hold]

Given Java intricate relationship with web applications it appears to have shaped the design applied to how developers create web based applications. From Java 1 through Java 7 from around 1999 the ...
1
vote
3answers
122 views

Are project naming conventions more important than language naming conventions? [on hold]

I'm working on a project with a senior developer and he doesn't really abide by the naming conventions of the language that we're using. The project is in Go and he uses underscores for everything. ...
5
votes
3answers
172 views

Implementing common logic in base class

Background In the documentation of a project I'm working on I came across the following sentence which immediately triggered an alarm for me: when having several concrete classes that inherits ...

15 30 50 per page