All Questions

Filter by
Sorted by
Tagged with
0
votes
0answers
5 views

Debugging and blindspots

A bit of backgroung: I am a programmer with few years of experience. I have learned a lot back at the uni then I got into a job where I was only programmer in a team of programming statisticians. So ...
0
votes
0answers
6 views

Can a file descriptor ready for IO become unready before any IO operation is performed on it?

In The Linux Programming Interface, on p1327 in 63.1 Overview of 63 Alternative Models In effect, I/O multiplexing, signal-driven I/O, and epoll are all methods of achiev- ing the same result—...
0
votes
2answers
106 views

Is it a good practice to have an endpoint URL with path parameter accepting different type of values according to an indicator in the HTTP header?

Assume a resource URL in the context of REST API: /sites/<site id or site code>/buildings/<building id or building code> The value of the two path parameters, <site id or site code> ...
4
votes
3answers
102 views

How to map “mv” operation to HTTP verbs?

In designing a RESTful api the problem arises as to how best to allow resources to be moved between collections. Renaming a resource could be done by using PATCH but this is not the same thing as ...
0
votes
2answers
71 views

What are the 'practical' advantages of LR parser over LL parser 'in today'?

My English skill is poor because I'm not a native English speaker. Please understand. I write this article because want to discuss about this topic. I think LR parser has no 'practical' advantages ...
0
votes
1answer
19 views

Setting custom callbacks in a Javascript applet?

I'm designing a 3D visualisation applet in Javascript. When used, a Canvas will be created and placed inside an HTML element on a webpage, specified by the developer who is implementing the applet. ...
2
votes
2answers
2k views

How to handle concurrent updates for the same record in a distributed system

I'm trying to figure out the best solution for the below. Any help would be great. So basically I have a service (that can be scaled horizontally), which listens on a queue. Every message received ...
1
vote
2answers
308 views

Does OOP overemphasize the importance of noun and thus put action/verb in the less importance position ? [closed]

Steve yegge wrote an article called "Execution in the Kingdom of Nouns" back in 2006, 14 years later I still find the points he made valid. For example, "Action is what gives life its ...
-3
votes
0answers
28 views

Creating my own 2FA? [closed]

I'm looking to code my own 2 factor authenticator as a project for my computer networks class. I don't need anything too fancy or safe because this is not going to be used anywhere. I'm supposed to ...
0
votes
5answers
183 views

How should I work around a particular “chicken and egg” problem with entity construction?

I'm struggling to think of a concise way to phrase the question, but assume you were developing an application that managed employees at various company branches. You could potentially model this part ...
1
vote
1answer
36 views

If I have this condition, should I queue the listeners or the notification?

I'm trying to wrap my head around a Queue system. I have read many resources about it but I keep ghosted with this question. If I have listeners that loops over a collection of users, to send a ...
0
votes
2answers
52 views

What are the disadvantages to using this form of pure DI in Python?

I want to perform dependency injection in my Python application without using reflection. My position on reflection is informed largely by the "don't hide things" philosophy (I am unable to ...
-4
votes
0answers
24 views

Where does this echo server close its socket when reading end-of-file?

In The Linux Programming Interface, the echo server in 60.3 A Concurrent TCP echo Server is Since the client may send an indefinite amount of data to the server (and thus ser- vicing the client may ...
-2
votes
0answers
24 views

How to make my application (based on HWID Check) more secure?

Im doing first desktop program with HWID Check and I have a question. I want to do this in this structure: Program -> API -> Database. Is it good? What should I pay attention to? I literally ...
2
votes
1answer
47 views

Should a Web Application File URL Have Public or Private Access

I am debating whether to give my files a public url or a limited private one. I am hosting various files for a mobile/web application. These will include product images and videos. Currently only ...
2
votes
2answers
66 views

What's the best way to get GitLab Docker runners and Python tox to work together?

I'm trying to get a better understanding of how tox and GitLab CI (with docker runners) would work together, as they seem to have a bit of overlap in what each does. I think I may be missing something ...
1
vote
2answers
115 views

What's the use of a wide-column NoSQL db such as Cassandra over a K-V store or a document based db?

Say we're making a simple photo app. This link says that we can store the image in S3 and now have a URL. Great. Next, we need a mapping of a UserID to the many images they've created. For this, it ...
-5
votes
1answer
55 views

What is the best option between buying, building from scratch or implementing an open source ERP? [closed]

I was required to do a medium ERP with the inventory, Bill of Materials, and production modules. However, I do not know how long it would take me. I am calculating three months for the analysis and ...
10
votes
3answers
3k views

What makes Erlang suitable for cloud applications?

We are starting a new project and implementing on our corporations's instantiation of an openstack cloud (see http://www.openstack.org/). The project is security tooling for our corporation. We ...
1
vote
1answer
56 views

Upholding business logic and invariants in an event sourced CQRS architecture

My understanding of a CQRS architecture is that a micro-service is split to two servers each with its own database such that the first server handles all the writes and the second server handles all ...
44
votes
5answers
5k views

Should a github maintainer rewrite author's in pull requests?

I'm not a programmer by profession, but I do some coding and have used github some. I've run across what I find to be a surprising situation. I'm very familiar with git. There is a project which I ...
2
votes
2answers
79 views

Migrate an SVN repository (that was previously the merge of 2 repositories) to Git while retaining history

Background I am trying to migrate an SVN repository that was formerly 2 svn repositories (but within the same svn server, so sharing commit numbers), which was then combined. So initial state (two ...
0
votes
3answers
154 views

What are some methods of storing personal notes alongside code?

When exploring a new codebase, what would be some methods of storing personal notes or annotations alongside the code? If I were the only maintainer, I might consider added an actual code comment into ...
-3
votes
1answer
182 views

How do I make items disappear based on the size of it's members?

Consider a list of items (take a list of voice channels) where each item has these attributes System::vc: List of voice channels. System::on_join(member, before, after): On the event when a member ...
-3
votes
0answers
32 views

React one-way data binding vs Angular two-way data binding

After hours of reading blog posts, I understand that React has one-way data binding, and Angular has two-way. But I don't actually know what that means.... React import { useState } from 'react'; ...
5
votes
4answers
160 views

How to create a modular system of multiple .NET Core applications extending a single application?

So first of all let me explain what I want to achieve: I want to create a basic .NET Core console application which is responsible for loading external extensions (more on this later on), listening ...
0
votes
1answer
35 views

Properly testing UI presenters without duplicating tests of subcomponents

I am writing the embedded firmware for an effect pedal. The pedal's ui consists of a few knobs a few buttons and a few leds and it consists of various control modes each corresponding to a seperate ...
-3
votes
1answer
83 views

Does server farm change the design of the server program?

In The Linux Programming Interface Sec 60.4, it talks about design a server that handles multiple requests using multiple processes or threads, or pools of processes or threads. Then it discusses ...
-2
votes
0answers
45 views

Circular dependency with 1-to-1 relationship

I am developing a patient registration system where patients can book medical appointments either directly with my system or via online services. One same patient can come over time through different ...
2
votes
2answers
79 views

Strategies for introducing or enforcing new linting or other code quality tooling rules

I'm in a situation where there is a code base that has TypeScript and ESlint but: There are a lot of type errors (code compiles despite errors using Babel) There are a lot of lint warnings. We may ...
0
votes
1answer
46 views

How do I decide an initial in-memory cache size given my DB size and expected load throughput?

(Purely for learning purposes) Say the DB contains 1 billion rows with 200 bytes per row = 200 GB of data. The traffic at peak is 1000 requests/s, with each request asking for one DB row. What cache ...
0
votes
0answers
25 views

What is right way of using event aggregator/message bus

Recently I had conversation with colleague, who proposed that whole app could be driven through event aggregator (or message bus). I think this is really good pattern if someone wants to decouple ...
-1
votes
1answer
66 views

Using bats testing or “if statements” in an installation shell script?

Context After building an installation script called main.sh that is a shell script, I would like to write 1 or more unit tests for most/each line of code in that script. Partially by inspecting the ...
1
vote
3answers
63 views

Pattern for syncing databases with undo option

I work on a large and old application consisting of a server and a fat client. Part of what the application does is handle a large-ish (a few 100MBs) database of frequently changing data (~a dozen ...
1
vote
0answers
25 views

Maven dependencies with versions [0.0.0,999.999.999)

I have this situation where we have a couple of maven repositories. Some are frontend..ish (JSP, Spring Controllers etc.) meant to be deployed as war files and others are for the hibernate mappings ...
0
votes
0answers
16 views

Passing data from a Web API into a running process

Using something like SignalR hosted within a Console app, I am able to send commands and data from a web client into the running process on the server. If would like to use HTTP instead of signalR, ...
3
votes
3answers
3k views

Scheme Stream Implementation

After working my way through SICP I decided to work though some Project Euler problems using scheme. In this particular problem I am trying to generate an infinite stream of integers however I am ...
5
votes
1answer
403 views

Autosuggest at scale - trie sharding

While reading on the design for autosuggest implementation on large scale systems (like google), I'm able to understand the usage of trie and how top "n" terms are stored at each node to quickly ...
-2
votes
0answers
56 views

What should we consider when designing a load balancer with minimum cost

Given a set of processes running on a cluster of hosts, I'm designing a system that load balances the hosts through live migrations (carried out by an external service) of the processes. The goal of ...
2
votes
2answers
2k views

Does Go implicitly discourage getters and setters and encourage direct member access?

As the title says, is accessing public struct fields more idiomatic in Go than getters and setters? Wouldn't that lead to violation of data encapsulation, also public fields in other OO languages like ...
0
votes
3answers
86 views

Bug triage on a micro-services architecture

We do have a micro-services architecture with a team assigned to each micro-service considering it as a product on itself. The "real product" is a front-end that uses multiple micro-services ...
-1
votes
0answers
34 views

Specifying resources through dynamic attribute access: Term for this technique?

In languages like Python where it's possible for an instance to resolve instance.foo by applying a function to the string "foo", some libraries take advantage of this feature to let the ...
3
votes
1answer
237 views

How to populate view models

So let's say I have a view model, representing a student. The view model is corresponding to a student model, from which the data comes. What I am struggling with, is how to populate the fields in the ...
6
votes
1answer
2k views

Is there a reason Iterator and Stream do not implement Iterable?

The other day I was playing around with an experiment and I had a for loop something like so: for (Node node : children) { // do stuff with node ... } And then I changed it to do this: for (Node ...
10
votes
1answer
2k views

Combining GitHub and TFS / Visual Studio Team Services

I wonder if it's possible to combine Visual Studio Team Services and/or TFS with a GitHub repository. We think both products have their own advantages and would like to work on one repo within our ...
-1
votes
0answers
90 views

Do connection and message coexist in CSP / Pi calculus?

Berkeley Socket API has two different kinds of network sockets: byte stream sockets: connection-oriented and message-less datagram sockets: connection-less and message-oriented. In Pi Calculus (and ...
-4
votes
0answers
20 views

How Can I Use Interfaces to resolve circular dependency to access dbcontext database across libraries asp.net mvc core

The x class library contains the models needed to create the database table so x added to the y class library (contains database). The problem arises when the database in class library y need to be ...
11
votes
4answers
26k views

Practical size limits of a Hashtable and Dictionary in C#

What are the practical limits for the number of items a C# 4 Dictionary or Hashtable can contain and the total number of bytes these structures can reasonable contain? I'll be working with large ...
0
votes
2answers
71 views

Should there be a separate service for creating asynchronous job?

Say, our team owns 3 services, one is responsible for creating persons, other is responsible for creating buildings, and 3rd one is responsible for creating jobs. Also, we have one website, which is ...
-5
votes
0answers
88 views

How can we use `read()/write/send()/recv()` for datagram sockets?

In The Linux Programming Interface, Section 56.7 A typical datagram socket server creates a socket using socket(), and then binds it to a well-known address using bind(). Because datagram sockets are ...

15 30 50 per page
1
2 3 4 5
1160