2
votes
2answers
78 views

Different Number Base Systems

I am doing a summer assignment for AP Computer Science. For this I am learning about different number base systems and how to convert them. These topics led to me wondering about why programmers use ...
1
vote
1answer
55 views

How do two (programming) methods for capping daily rep stack up?

I wrote a supersuccessful answer to a question on an SE site that got (at least) 21 upvotes in a 24-hour period. In theory, I should have gotten 210 rep points, but there is a daily reputation limit ...
-3
votes
1answer
84 views

What is 16 bit word's equivalent in decimal?

Question: For a 16 bit word with 6 bits for an opcode How many different instructions could I fit into the instruction set? What is the largest number that I could use as data? ...
0
votes
1answer
35 views

How to handle modification on MIT Licenced project

i'm about to work fork an MIT licenced project, i'm planning to use it as a starter. I was wondering how i have to handle the licence. What I understand When I will mimifie my javascript ...
4
votes
2answers
64 views

Overlapping subproblems in immutable languages

Whenever I solve a problem with overlapping subproblems, I reach for memoization because it's so simple to implement. However, memoizing in an immutable language that doesn't have built-in support for ...
0
votes
0answers
37 views

Alternatives to side effecting functions in a Ruby script

I'll try to be as general and specific as possible in this question- I know that side effects are generally viewed as a code smell and recently got some feedback that this was an issue on a code ...
-3
votes
0answers
48 views

Develop a python project from 2 different operating systems on the same machine? [closed]

Can I work on a python project from 2 different operating systems on the same machine? I have a python 2.7 project I am developing with a virtualenv that lives on my HDD (with win7) that I have as a ...
0
votes
1answer
120 views

What's the OOP way of dealing with a flow control heavy application?

I'm refactoring a huge WPF application whose complexity stems from the way it deals with flow control. It has a lot of "tiny business rules" that make it really difficult to make a modification ...
-1
votes
0answers
133 views

Is it possible to turn an entire project to a single class file? [closed]

I'm using Visual Studio 2013 Ultimate and I need to know if it is possible to turn an entire project (including settings, all classes, references...) to a single class (.cs file). you may be wondering ...
0
votes
0answers
22 views

Templating changes in Spring boot 1.3

I am currently studying java using Maven, Spring boot, and SVN. I have been assigned the task of getting both the revision number and timestamp of the project to store in a text file and eventually ...
4
votes
2answers
116 views

Detecting breaking changes when modifying shared code

Currently we have about 20 solutions. The majority of these have multiple projects, including share utils projects, data access, etc. We've had a few problems where a contractor changed something in ...
2
votes
0answers
139 views

Is Nested Structure with Spread Responsibilities Not Logical?

Given the following code snippet in a Laravel Controller: $this->userRepository->saveByProject( $this->fileRepository->saveByProject( $this->metricRepository->...
0
votes
0answers
30 views

Store as much code as possible in single folder to allow easier upgrading

I have a rather large Python code with a structure that looks like this: my_code.py +-- packages/ |-- __init__.py +-- pack1/ |-- modu_11.py |-- modu_12.py +-- ...
2
votes
2answers
184 views

Class with methods that depend on a variable argument, but this variable is constant throughout large parts of the application

I am looking for advice on how to design the following scenario: I have a 3-dimensional vector class, the entries are of type double. I want two vectors to be considered equal if their corresponding ...
1
vote
1answer
26 views

In gitlab, should we close a merged MR?

In gitlab, there is Merge Requests (MR) like in github there is Pull Requests (PR). If the MR is rejected, sure, we close it. But what if the MR is merged ? In that case the button to close the MR ...
1
vote
0answers
66 views

Given a two-dimensional array what is there a good way to identify distinct regions of elements?

I am generating a 2D "world map" in Unity which I use C# and Perlin noise for. I have a Tile object that holds the graphic of the tile and position. There are a few more attributes to this class, ...
2
votes
3answers
203 views

Preemptive interfaces in Java - good, bad or “a matter of taste”

I frequently come across projects that strictly define an interface for each and every class. 90% of those interfaces feature only a single implementation. Proponents of these "preemptive interfacs" ...
1
vote
1answer
76 views

Algorithm for lines comparison

I'm working on the import of land-use data into Openstreetmap. Unfortunately I've encountered a problem that has delayed my time table. Take a look at the picture below: the red line is the main road ...
2
votes
1answer
96 views

When are requirements good enough for implementation

I've been recently thinking about the following question: When are requirements good enough for implementation? I'm trying to create a checklist of some sort that can at least semi-objectively ...
0
votes
1answer
97 views

Split k sets to 2 groups of sets

Given k sets ,each contain several elements . I want to split them to two groups , the first group contains m sets ,the second group contain n sets , m + n = k . Let w1 be the sum of the weights of ...
0
votes
0answers
49 views

Did we have an evolution from detached entities to CQRS?

Let's say you have a software solution that has a data layer that accesses a SQL server. It can do this either directly and also over a HTTP connection. In both cases Datasets are used. Now when ...
0
votes
0answers
23 views

Javascript : Handling multiple API Requests (Adobe Analytics)

I have a requirement to build a enterprise dashboard where data from various digital assests (around 20 primary websites, mobile apps) of our company can be presented. This data is already stored in ...
0
votes
2answers
100 views

Named repositories in DDD

Today we are working with Stored Procedures to access the database. In order to allow unit testing, we implemented an interface for each group of related stored procedures, for example: ...
1
vote
0answers
107 views

Two way communication between applications

I am currently looking into re-architecture of some of my organization applications. Other questions aside, the one that I am currently trying to figure out the best approach for currently is the ...
0
votes
1answer
167 views

Script to protect code duplication [duplicate]

I want to sell my source code, it's written in PHP and CodeIgniter. And it's actually a CMS for personal website. My intention is to create only one license for one use only, if someone buy this code ...
3
votes
3answers
196 views

How to get started with Scrum when the team is bad at generating ideas?

I have a bit of a problem regarding implementing Scrum into a project. The team I'm working with is generally just very bad at coming up with ideas. I'm not sure if it's a matter of them not feeling ...
0
votes
0answers
89 views

How do I design a Service Layer in code?

I am currently rewriting one of my projects in Java and want to implement a service layer that will be used by different clients (CLI/GUI/Web) to communicate with my core application. For now it will ...
0
votes
1answer
39 views

Extract All Possible Paths from Expression-Tree and evaluate them to hold TRUE

This is a follow-up question of my previous one: http://stackoverflow.com/questions/38421950/better-class-structure-for-logical-expression-parsing-and-evaluation Brief introduction: rules as ...
-1
votes
2answers
144 views

Is there a way to refactor the given code snippet without using if statement? [closed]

I am very new to java programming and I recently learned that using too many if else condition statements is not a good programming practice, and I am wondering is there a way to refactor the below ...
-2
votes
0answers
48 views

How to read a remote txt file with Javascript and write contents to html document [closed]

After some research i've only come up with this HttpRequest with standard javascript. var txtFile = new XMLHttpRequest(); txtFile.open("GET", "http://www.suko.tv/Sounds/oh.txt", ...
4
votes
1answer
47 views

How to redistribute modified code under PSF license

I spent a few hours cleaning up a really old Python library, ProxyTypes. Two days from now will mark 10 years since it was updated. Today, I updated it to support the newer Python 3, and to be ...
0
votes
3answers
97 views

Compiling methods in interpreted programming language as standalone c++ app

I'm writing an interpreted implementation of a new programming language (just for fun). In this implementation language is first being compiled to an intermediate language, which is then interpreted ...
0
votes
0answers
26 views

Maintaining ASP.NET MVC Data Encrypted

I am working on an ASP.Net MVC Solution. It has some sensitive data that I am trying to maintain as secured as possible. on my data layer I am able to encrypt the data. Currently I have the controller ...
8
votes
2answers
274 views

Apollo-11: Using inclusion instead of a linker

Recently digitized and turned into a repo, the original Apollo 11 guidance computer source code has been made available for viewing on Github. In MAIN.agc, the repo author comments that they ...
-1
votes
0answers
48 views

Is this an appropriate use case for WCF? [closed]

We have a task to send messages and receive from a remote TCP service dealing with financial transactions (probably going to be very high throughput). We are not in control of that service, and at the ...
7
votes
3answers
316 views

Writing a good/readable constructor that needs a lot of calculation to fill its fields

I have a class that has several fields which can only be filled consecutively by a lot of calculation. The 1st field can be set very easily. To fill the 2nd field, we take the 1st field's content and ...
0
votes
0answers
128 views

What is the meaning of the different interface types in Ian Sommervilles's Software Engineering?

Reading Ian Sommervilles's Software engineering, he mentiones there are following interfaces: Paramater interface: data or functions are passed from one component to another Shared memory interface: ...
-2
votes
3answers
70 views

Most appropriate function naming for WPF's INotifyPropertyChanged implementation [closed]

Each time I was involved into a different WPF project over different companies, the INotifyPropertyChanged function implementations were named quite differently, either public void ...
0
votes
2answers
163 views

How should I architect my back end based on these needs?

I haven't started building my back end yet but I need to now. My needs are the following: Database needs to be holding millions of game information (just info that can be stored in a typical db ...
45
votes
9answers
8k views

Is having fixed delivery dates for elements an “Agile” way of working?

We keep being told we are going to be working in an agile way on a new project by senior management. They have set up stand-ups, sprint planning, retrospectives etc. etc. However, they have now come ...
1
vote
2answers
89 views

Create jar of a java application where entry point is an external program

I have a java plugin written for a software called icy. Since the entry point of program is when the plugin is activated from the software, I am having trouble about how to mention that in manifest.mf ...
0
votes
1answer
29 views

Secure communication between a mobile app and a microcontroller

I have a MCU-based design that essentially controls other hardware and this MCU is controlled through an app. I was hoping someone could help me figure out how to secure this communication between the ...
0
votes
1answer
39 views

Where do we need to include non business logic validations in Service Layer

Currently um working in an application and it has the following hierarchy WEB API2 Controllers (hilds the end points) Business Logic Layer (Dedicated for business logic handling ) Data Access Layer ...
0
votes
0answers
35 views

Discovery for Multiple Senders and Multiple Receivers

I am architecting a realtime system with multiple senders and multiple receivers. Each receiver will receive from multiple senders. The system needs to have as little latency as possible. The system ...
1
vote
1answer
152 views

Elevator design challenge [closed]

I need to strengthen my OOP skills and hence I thought to implement an Elevator simulator. At first what seem to be a simple design has grown into a complete mess and has left me confused about my ...
-4
votes
1answer
83 views

username exists in two database table [closed]

how to check if username exists in two database table? First database table; $username = $user->username; $userexist = Approval::where('username', '=', $username)->get(); Second database table; $...
-3
votes
0answers
32 views

How can i get two input simultaneously using scanner? [closed]

In my program i'm getting two input but it return one value another as null. i couldn't find out. please anyone clarify my error. Input: k 1 output: king of null public class Cards { ...
0
votes
0answers
74 views

How to detect global keyboard hook

It's incredibly easy to write Key-loggers in many languages. It makes me a little nervous because these small, unknown viruses won't get detected by most(read: all) antivirus'. I'm curious how to ...
-3
votes
1answer
44 views

Web framework to consume external API [closed]

I'm currently joining a project in which there's a core REST API already developed which is used for a mobile app. The next step will be to build a web app which should also consume the API. My doubt ...
1
vote
1answer
41 views

Reactive programming android app architecture

I am going to create a stock market android app. Stock quotes change every few seconds, so to keep the app updated I decided to implement a reactive functional design. My IDEAL design would be: ...

15 30 50 per page