0
votes
0answers
18 views

Hierarchies and Inter-process communication between microservices

I have an interesting problem. I have a micro-service which manages corporate hierarchy. A user in the hierarchy has permissions to nodes, which cascade down to children of those nodes. Now, the ...
1
vote
1answer
85 views

“Best Practices” when designing large applications with multiple functions

A little background first. I have been tasked with rewriting our gun software into VB.Net (converting the code from BBJ). This software incorporates many different inventory management functions, such ...
12
votes
9answers
603 views

What can be the cause of new bugs appearing somewhere else when a known bug is solved?

During a discussion, one of my colleagues told that he has some difficulties with his current project while trying to solve bugs. "When I solve one bug, something else stops working elsewhere", he ...
4
votes
1answer
411 views

Is this a good implementation of the builder pattern? [closed]

I'm trying to design an SQL builder in PHP. I'm trying to make it so that the system could work with different database systems (e.g. Oracle, MySQL, MSSQL). Here's what I've got so far. First, I have ...
2
votes
1answer
184 views

Feeding std::streambuf for Non-Blocking std::istream Read

I want to write small library to guide a child process for a specific needs (not trying to reinvent bicycle here). My needs includes reading from child stdout and stderr. I want to implement this as ...
0
votes
1answer
135 views

Function pointers vs. Derived classes

So I have a Signal class and a client class which manages a list of Signal objects. The class provides a bunch of interfaces, one of them is an update()-function. The update()-code is completely ...
2
votes
1answer
51 views

How to write tests for browser automation script

I have a couple of scripts (two in Python, one in Java) that use Selenium to drive a browser and download files from a website. I need to do some major refactoring before I do a major expansion, so I ...
-4
votes
0answers
30 views

Summing elements in a certain range without a loop

I have two arrays, A(N,N) and B(N,N,N), having ranks 2 and 3 respectively. I want to sum over the first index of B in some range (from 1 to some integer Nfix) and assign the resulting rank-2 array to ...
2
votes
1answer
82 views

How to handle a client app that connects to a TCP server and sends/receives text data bidirectionally?

I've got a conceptual question (which is probably better posted here than on StackOverflow?). I want to develop a client application that maintains a persistent connection to a server, and exchanges ...
-5
votes
0answers
20 views

Several alternatives to render image from STL files [on hold]

Can anybody here put some light on this post by giving some information of possibilities to render STL files into image? I am looking several possibilites either using some Java library/Blender ...
5
votes
2answers
183 views

REST API design for web pages with wizards

I have a web page with wizard format. The submission button to the API will be in the 4th step of wizard. However I want the data entered to be stored in database before moving to the next step in the ...
3
votes
3answers
161 views

Unit Testing and 3rd party packages. Do I mock or not?

I'm just getting used to unit testing and on my new project I decided to adopt a TDD approach. My code below is to test the UserServices class which is responsible for creating a user, deleting a ...
1
vote
1answer
33 views

How to manage image uploads?

Earlier, when images were to be added to staging/production, they were committed to the git repository and our deploy script used to take care of uploading the images to CDN (S3 in our case). But as ...
2
votes
3answers
181 views

Objective-C Lesson in Class Design

I have the following classes: Teacher Student Class (like a school class) They all extend from KObject that has the following code: - initWithKey - send - processKey Teacher, Student ...
25
votes
13answers
2k views

Help in understanding computer science, programming and abstraction [duplicate]

Until now, I always believed that you should learn programming languages that make you do low-level stuff (e.g. C) to understand what's really happening under the hood and how the computer really ...
18
votes
5answers
625 views

Interested in a million things, have a million goals: how to choose what to focus on [on hold]

I am currently working as a Web Application developer using .NET Technologies. I am interested in learning more about the technologies that I work with, but I am ALSO interested in a million other ...
0
votes
0answers
25 views

Automated data processing in BPMN/BPEL?

In order to run complex simulations, I need to do preprocessing of data from various data sources. This is done by a bunch of Postgresql scripts. However, having only these is unsatisfactory, because ...
0
votes
2answers
162 views

How to reduce size of jar file?

I dont know how to reduce the size of jar file. When we normally code in Java Swing the jar file is created, is there any way to reduce the size of jar file? I can't remove the images and other stuff ...
1
vote
3answers
86 views

Are debug-build-only UI controls a bad practice?

Often, to simplify testing, I add UI controls that are only visible and enabled in debug build only. Or prepopulate mandatory input fields in debug build. Is this a bad practice? Assuming the release ...
0
votes
0answers
94 views

Interaction between code and user interface

I'm developing a desktop app that has many different algorithms implemented. Some algorithms require additional input from user, this info might not be known before algorithm has started. My ...
5
votes
2answers
2k views

How to avoid context switching while developing full stack web apps?

To give some context, I've been a Ruby & Rails developer for the past few years, and just recently started doing quite a lot of JavaScript to add more responsiveness to the apps. When programming ...
0
votes
1answer
91 views

Algorithm to get all possible forms of a word with varying suffixes

I'm writing an application in javascript where given a word, I need to get all the possible versions of the word with the suffix being the difference between each form. For example: "sponsor" should ...
0
votes
1answer
57 views

Managing a project on github in different repos or one? [duplicate]

An app I am working on (iOS) is being distributed to different businesses and each business needs a few customizations to said app before it is distributed to users on the app store. Most files will ...
-3
votes
0answers
30 views

Real time change of data in ajax [on hold]

I am trying to get data from the server using ajax.I want a situation whereby if data is changed in the database it also changes in the browser without page refresh. I have the script below but it is ...
-6
votes
0answers
45 views

Changing a platform programming language [on hold]

Simply - If we have a programming language and its compiler, how to move it from platform like windows to mobile phone? For ex. Python to Windows Phone?
5
votes
2answers
863 views

What are the software technologies behind real time web apps? [on hold]

What are some of the software technologies behind "real-time" web apps, like Twitter, Trello, or even Gmail? I know there's a webserver and probably a database on the backend, but what are the ...
3
votes
2answers
417 views

Why do we need a seed in Random Number Generators?

I want to know how Random number generator(RNG) works in any PL(Programming language). I know the random methods has short periods. i.e they start repeating the values after specific number of time. ...
0
votes
1answer
45 views

Raspberry pi computer cluster question?

I am wanting to have/ or make a program that runs on a (raspberry pi)computer cluster with one pi executing only video content while the other only handles music, etc under a main program like an AI. ...
14
votes
5answers
291 views

Splitting coding progress into meaningful commits without too much overhead

When working on a fix or a feature, I sometimes stumble over other tiny issues that can be improved on the fly in a matter of seconds. When I do them immediatly and then commit the finished ...
3
votes
1answer
35 views

Handling continuations within a priority queue

I am attempting to determine the best way to handle actions that must occur in passes. Many of these actions use objects that were created in a previous pass. The solution I have come up with is to ...
0
votes
0answers
43 views

Repositories, Gateways, Models and Architecture Questions

I am working with a Laravel project and I am looking for a way to solve the issue of bloated models and cross referencing between them. I had started extracting higher level methods to a repository ...
2
votes
6answers
739 views

Find pattern in a string

How would one approach the following question: We have two strings: a normal alphanumeric string and a pattern string. the pattern string can be composed by alphanumeric chars plus the char "?" ...
4
votes
1answer
127 views

MVP / MVC role of the Model (not anemic one) clashes with presenter / controller role (responsibilities in the right place, Model OR Presenter)?

Problem? I have been looking at MVP implementation and process to design a good domain model (not anemic). It says that the domain model should have its own behavior and not being a simple data model ...
10
votes
1answer
352 views

How does a skip list work?

For a homework assignment, I need to understand how a skip list works. I've been programming for a little over 2 years now (I know that's not that long in reality), and I have never even heard of a ...
0
votes
0answers
33 views

Visual Basic 2015 - Dynamic List of Controls

I'm working on an application that is supposed to take upwards of 30 parameters from the user; depending on which type of feature is used, this list of parameters will be different. For context, ...
0
votes
2answers
75 views

Guideline/best practices on what traits/categories to give to tests

Is there any standard on what traits/categories to give to tests? Here is an example: using Xuint; public class XUnitTest1 { [Fact] [Trait("Category", "CI")] public void TestMethodX1() ...
2
votes
4answers
268 views

Strategy pattern and “Is a” relationship

Imagine, I have class IAlgo which is an interface. I have derived from him and implemented his single method called matchCount in different implementations - AlgoA1, AlgoA2, AlgoA3, AlgoB1, AlgoB2. ...
0
votes
1answer
97 views

stack based vs heap based overflow

Why is it more difficult to perform a heap based buffer overflow than a stack based? (regarding x86 architecture) I thought it could be the fact that heaps are allocating memory dynamically. But is ...
1
vote
1answer
68 views

Multi-screen MVVM architecture/design - Should my “screen” ViewModels contain sub-ViewModels?

I'm getting beyond a simple MVVM program now, and I'd just like to sense check my current architecture and makes sure I'm going down the right path here. Everything is structured around screens, and ...
2
votes
3answers
568 views

Cache Json on disk with fast read back in java/android

summary: I need a way to cache a large JSONArray on disk, and be able to quickly read AND CONVERT it back to JSONArray at a later time. NOTE: my output MUST be a >>JASONarray<<, and not a ...
3
votes
2answers
361 views

Scheme/Design Pattern for allowing a certain outside class to set properties

I came up with a solution (in PHP) to a problem and am wondering if it is a named Design Pattern, and if it is good practice. I have a collection class and an item class. The collection class is the ...
-5
votes
0answers
58 views

Looking out of the box on mine [on hold]

I apologize in advance if my post can sound like a lament but, I am a little bit desperate. Problem is with my objectively point of view. I have been learning programming for 1,5 year, 10-12 hours ...
7
votes
5answers
5k views

Calculating last Sprint's Focus Factor

We have finished our Sprint in half the expected time and now we want to compute our focus factor to use in the next Sprint. Though, by doing the math by the book, we get an awful number. How are we ...
0
votes
0answers
45 views

Using PHP to grab an excerpt of contents in a file?

I want to grab a couple of paragraphs of one of my blogs and then contain a link to see more of it on my homepage which will take the user to the page with the whole blog. The way I do it is tedious ...
0
votes
0answers
16 views

Bluetooth - acl links

I have an embedded project with no OS. Bare metal. While reading the different bluetooth specification (v4.2) volumes, I get that I have to implement l2cap framework for low energy communications, as ...
-6
votes
0answers
28 views

How can I render Grid vs List view with css only? [on hold]

Requirements: Render both as grid (aka. tiled) and list view, as shown in this screenshot / jsfiddle, with just css Both should come from basically the same set of html markup Be able to order data ...
1
vote
1answer
96 views

What would I call this design pattern in which an overloaded function translates it's arguements type to call a main function? [on hold]

So, I've found I've been using this design pattern fairly frequently, but I'm not sure what to call it if it has a proper name. Essentially there is one "Heavy lifter" function that does some intense ...
1
vote
1answer
40 views

Data Structure for Form or Survey

I am planning an app which allows users to complete surveys/forms. I'm having trouble planning the data schema for the forms. I really want to have a data structure which can be mostly automatically ...
3
votes
1answer
67 views

PHI, NoSQL, and searching

I am working with a system that is using NoSQL (Azure Table Storage) primarily to house its data. Unfortunately, the work also involves billing and medical records - meaning the data itself will need ...
1
vote
1answer
39 views

Ring buffers for data with unknown maximum size

I see ring buffers are very useful with their speed and if you have a known maximum buffer length they make a lot of sense. Let's say in the scenario where you have streaming data, but the playing ...

15 30 50 per page