-3
votes
0answers
17 views

Using regular expressions in Python to parse LaTeX code [migrated]

I am trying to write a Python script to tidy up my LaTeX code. I would like to find instances in which an environment is started, but there are non-whitespace characters after the declaration before ...
1
vote
1answer
76 views

How to create a re-usable, command based messaging system

I am having trouble writing a simple command based system for a chatroom. I want users to be able to do chat actions such as /j myChatRoom or /join myChatRoom /w user12 Hello or /whisper user12 ...
-1
votes
0answers
53 views

Backpropagation in layman terms [on hold]

I've been studying neural networks, and I'm beginning to understand the basics. I know what the backpropagation algorithm does. It feeds sample input and calculates an error against a given output. ...
1
vote
1answer
34 views

Should “special” roles exist in an ARO system?

Right now we're implementing a (honestly overly complex) role-based permissions system where users will be assigned to roles and those roles will be granted permissions on some combination of ...
-1
votes
0answers
20 views

Compromising performance for code readability and developer convenience [duplicate]

This could be a highly subjective topic without a definitive answer, which I am not looking for, only perhaps some anecdotal accounts as well as general guidelines that one might follow. ...
1
vote
3answers
212 views

Would combining enums with static strings in java be sloppy?

Currently my team has a number of constants defined as static final strings. I want to be able to iterate over these strings as if they were an enum in one location, but everywhere else they are used ...
4
votes
2answers
199 views

When is it appropriate to use expression bodied members? [on hold]

C# 6 introduces expression-bodied members, which allow for simplified code in methods and properties that only return the result of an expression: public override string ToString() { return ...
6
votes
4answers
220 views

How do you approach transitive dependency issues that are only known at run-time?

How do you normally approach transitive dependency issues that occur at run-time in large software projects? For the past three weeks, I have been trying to start a component of a large piece of ...
1
vote
0answers
103 views

Integrate C++ DLL with C# GUI asynchronously (design issue)

This is more a design than an implementation question. I am aware of how to integrate a C++ DLL within a C# main app that acts as GUI. Believe me that I've read all other questions on similar topics, ...
-1
votes
0answers
55 views

Design pattern for user-roles on MVC, following SRP [on hold]

I'm working on an application with 3 types of roles. Some roles may view the same data, and perform the same actions; but also differ in some other view or actions. Following SRP, I'm used to see a ...
0
votes
0answers
62 views

Open Source License But Maintain Prominent Attribution [migrated]

I'd like to release a program under an open source minimal restriction license but there are 2.73 bajillion options (give or take an order of magnitude). Basically our only requirements are: Don't ...
-4
votes
0answers
46 views

Why is console.log() not working inside module.exports? [on hold]

I am trying to export the functions so that they are executed when my /submissions endpoint is hit. In app.js I have app.use('/submissions', submissionbot) Why can I not use console.log from within ...
4
votes
1answer
227 views

How to make sure people call methods in the right order?

Situation I'm designing a database abstraction layer for sql (mysql, sqlite) and mongoDb. The goal is to give the user/developer a library which is able to create queries for different databases. ...
4
votes
4answers
231 views

Should an application configuration interface be broken into multiple interfaces to reduce feature creep?

My windows service is neatly separated into 5 components - each with their own interface and pulled together by a bootstrapper. One of my requirements is to provide configuration options in my ...
1
vote
1answer
84 views

What is the point of the dao layer? [closed]

With the current technologies which are pretty good (JPA, Hibernate, others), what is the point of the DAO layer? It's very rare for a project to switch its backend from one vendor to another, so it's ...
1
vote
2answers
62 views

REST autocomplete endpoint design

We're designing a rest endpoint for retreiving name autocompletion suggestions for hotel names. Currently it's defined like this: GET /suggest/:term, so that if you queried `/suggest/hil' you would ...
0
votes
1answer
25 views

Combining Fitnesse, .NET and RESTful APIs

I know there is Fitsharp for combining Fitnesse and .NET. And there is RestFixture to combine Fitnesse and REST. Is there a way to test a RESTful service with Fitnesse under .NET? If not, is there ...
7
votes
6answers
2k views

How to implement a property on class A which refers to a property of a child object of class A

Not a very large architectual decision, but nevertheless I would value your opinion. We have this code (rest of the code is left out) public class Room { public Client Client { get; set; } ...
-4
votes
0answers
47 views

Creating simple client to fuzz the VPN server [closed]

I downloaded an official open source implementation of OpenVPN. My goal is to create a custom client to fuzz the OpenVPN server. Is my idea correct: I need to figure out what message types the ...
-1
votes
0answers
94 views

How to triangulate a 3D polygon? [closed]

How can I create a set of triangles to fill a 3D polygon? The polygon is an ordered sequence of 3D vertices defining a single geometric contour (a closed path). Vertices are not necessarly coplanar. ...
-3
votes
0answers
41 views

Making a search engine to search from a large set of strings [closed]

I have around 10^6 collection of strings. and i have to make a text input gui, where the user will enter the string he wants to search for , and a dropdown should come for all the matching strings ...
1
vote
3answers
2k views

Linking two or more different programming languages

I would like to ask how optimizer software written in C/C++ can be linked to simulator software written in FORTRAN or any other language. I have copied the section of journal article of Singh and ...
6
votes
3answers
46 views

Support Multiple versions of Mobile apps

We are building a suite of native mobile applications to supplement our existing application that currently only supports a web interface to the server. The application can be installed and hosted by ...
0
votes
0answers
16 views

Design pattern for socket.io and Express

I have a Node.js Express RESTful HTTP server I will call server A and an Express socket.io server I will call server B. Server A responds to all HTTP requests by clients and server B listens to the ...
0
votes
0answers
35 views

User based licensing on web server

I'm developing a client-server software for an enterprise customer. I'm being asked to limit the number of user accounts to a number N. Each user logs in with it's own username/password combination, ...
1
vote
0answers
33 views

Saving and retrieving multiple cached json/txt data files

I am working on some numerical programming and need to generate the results for a model given a variety of input parameters. Since the model takes a while to run, I was planning to save the data to ...
3
votes
1answer
31 views

Defining and testing detailed user interface requirements

I am in the process of designing and building a small web app. While implementing a first prototype I discovered that I make many unwritten assumptions about the behaviour of the interface. For ...
0
votes
0answers
14 views

How should one model an ExchangeService object (in ews-java-api) for sharing MS Exchange connections?

I am creating an application which uses ews-java-api to connect to an MS Exchange server. Once the connection is authenticated, the api dictates use of ExchangeService object for searching mailboxes, ...
0
votes
1answer
134 views

What is the difference between “Wide character” set and “Unicode character set”? [on hold]

Today I was reading my favourite C++ Programming book (C++ Primer Plus) and the section which was about variables and character sets in C++, however I got really confused about Unicode and Wide ...
0
votes
2answers
130 views

Architectures for polling APIs on behalf of multiple users [on hold]

I'm in the planning stages of a project that will be mashing up data from multiple sources. The nature of this work is approximately similar to reputation management tools or IFTTT. Users will grant ...
2
votes
1answer
52 views

Is web sockets the best solution for my problem?

I have created a Slackbot that integrates with Submittable.com. For example, I can trigger a response that displays all current submissions in Slack. I now need my Slackbot to post in Slack whenever ...
0
votes
1answer
65 views

MVVM model vs viewmodel

I am trying to wrap my head around MVVM and "models should not have behaviour". If my getter depends on an environment variable, should it be in the model or viewmodel? Does it make a difference if ...
-5
votes
0answers
30 views

Constantly getting PHP error when I submit a form [closed]

I am constantly getting a PHP error which is You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Change) VALUES ...
-1
votes
0answers
17 views

Segmented file downloading potential gains vs excess overhead/problems

I'm writing a download manager, i want to get as much speed as i can from my downloads and I'm thinking about implementing segmented file downloading with conjunction to parallel download for each ...
0
votes
2answers
149 views

Ensuring program output is always the same [on hold]

I am working on a +10k LOC program, and I need to ensure its output is always the same for given input. The program consists of dozens of modules and classes, inherited by a MainClass. Initially I ...
0
votes
1answer
74 views

Should I separate the interface or use single one [on hold]

I'm developing a game, I will generate objects. I have create an interface called IObject which has the following properties: String tag // Tag for the object Vector3 position // Where the element is ...
0
votes
1answer
55 views

Can 32/64 bit version of Dart SDK have any effect on produced javascript code?

I just started collaborating remotely on a project. Project manager explicitly asked me to download Dart SDK 32bit version. Since I have 64bit machine I asked why to find out more about it. I was told ...
11
votes
2answers
598 views

DRY principle in good practices?

I am trying to follow the DRY principle in my programming as hard as I can. Recently I have been learning design patterns in OOP and I have ended up repeating myself quite a bunch. I have created a ...
-1
votes
0answers
36 views

How to model the best installation for a self-service restaurant? [on hold]

I'm looking for the best way to find an optimized installation for serving students in a self-service restaurant. My problem is that a large part of my script is dedicated to model the students ...
0
votes
0answers
56 views

Shared data in functional programming

I have been working on a project in JavaScript which requires a data structure (read only), to be shared between two functions. var mySharedData = ['hours', 'minutes', 'seconds']; Now I have two ...
1
vote
1answer
96 views

C++ Runtime and runtime-linking

I was installing boost and I came across an option named "runtime-link". After searching a bit, I came across yet another complex topic: "runtime system" that according to Wikipedia: The runtime ...
0
votes
1answer
63 views

Best Practices: URL Path Parameters [closed]

What's the current best practice around path parameters in URLs? For instance /artist/name A long time ago I might have made artist.html and then passed in a query parameter /artist.html?name=name ...
-5
votes
0answers
28 views

PHP - Condition and Loop [closed]

i am writing a PHP script and i want to check if a number is between two other numbers like 20< x < 40 but in a very higher Range like this : ...
-2
votes
1answer
30 views

set author name for a forked and changed source code

Here is the Makefile I found on the internet for using rf24 on raspberrypi: ############################################################################# # # Makefile for librf24 examples on ...
2
votes
4answers
231 views

Good practice for holding immutable data

I'm wondering what is the best practice for holding immutable data, more specifically in C#. For instance, lets say I have an immutable object called Foo. public sealed class Foo { public int ...
6
votes
1answer
141 views

Is **kwargs an antipattern?

We have a lot of code in our internal codebase that calls our libraries internally - these libraries often have a lot of arguments (think matplotlib) and our code is often doing only a specific task ...
0
votes
1answer
41 views

What is the most efficient way to discover devices on a network?

I've been programming a C web server from scratch as an interface for controlling ESP8266 WiFi modules that I plan to use to control appliances & lighting with relays. In an attempt to make a ...
0
votes
1answer
39 views

How to delete active sessions and enable different users to log out from the system without any clashes [on hold]

Currently been working on some few small scale web applications but still did not understand the logic behind on how to clear off a target session? For example, imagine a small web application that ...
0
votes
0answers
25 views

Harmony (and general language) Feature Adoption [duplicate]

Looking at the browser support for the let operator on developer.mozilla has led me to wonder if there is any data which might provide insight into programming language feature adoption rates and/or ...
-1
votes
0answers
31 views

Different variations of C [closed]

I've heard from a few sources that C is not too portable, because it is so close to the machine compared to higher level languages like Perl, Python, Java, etc. But, I was wondering how many ...

15 30 50 per page