Newest Questions
64,339 questions
1
vote
4
answers
186
views
A passive LRU cache with locks
Context
I'm working on a client-server-agent application, where server distributes tasks supplied by clients over agents. Server is passive, all communications are initiated by clients and agents.
...
3
votes
3
answers
194
views
Best Practices for Implementing a Heartbeat Feature in a Laravel App to Track Offline Status
I'm trying to implement a heartbeat feature for offline tracking that just sends an offline message to the server once the web browser app (Laravel-based) is offline. Ideally it will ping the app's ...
0
votes
1
answer
133
views
Optimal way to avoid iterating through each row in a dictionary of data/arrays?
I have an excel macro that imports daily share price files, and finds the highest price for a share after a given date.
Each of these daily stock price files has ~1000 rows of data. Currently I have ...
1
vote
1
answer
201
views
Elegant solution to a graph problem
Given a line in a 2d coordinate system, we can create a dependency graph like this:
The black nodes represent a logical graph that is a-cyclic and therefore "stable" in the sense that if we ...
0
votes
2
answers
133
views
What are the trade-offs of recursively invoking an extension method as extension vs static?
When using recursion in an extension method, there are two different ways to invoke the method from within itself.
Option 1: As an extension method
internal static class MyExtension
{
public ...
5
votes
2
answers
197
views
Tree model in Domain Driven Design
A site is composed of pages.
Each page is either a root page or the
child of another page, forming a parent–child hierarchy.
The page tree has a fixed maximum depth.
When relocating a subtree:
The ...
1
vote
1
answer
222
views
Internal data representation in firmware
I'm developing firmware for control system.
That system will collect data from different sensors (using ADC, GPIO, I2C temperature sensors, etc.), process this data and generate some control signals.
...
0
votes
3
answers
193
views
Is JSON Schema-based runtime validation more practical than static type hints in real-world Python applications?
Question Body
I'm currently developing a Python coding standard for use in enterprise-level internal systems. Our typical use cases include:
API input/output validation
Reading from databases, ...
2
votes
6
answers
521
views
Is OOP really beneficial for enterprise-scale business software compared to procedural languages like ABAP or COBOL?
I'm currently drafting a Python coding standard for internal enterprise use, primarily targeting business applications that involve heavy data access, reporting, and transactional logic.
In this ...
1
vote
3
answers
463
views
Should I include the header of the source file always in C/C++?
I have a source file that is used by other sources so it has a header file. If in the header, there are types used that needs inclusion of other headers, I'm better to include this header in its ...
0
votes
0
answers
49
views
How to connect to SFTP using Apache Spark 3.5 with Scala 2.12 for parallel file transfers?
I am working on a project where I need to transfer thousands of files (each sized between 50-60 MB) every hour from an SFTP server to local storage or AWS S3. I am using Apache Spark 3.5 with Scala 2....
0
votes
3
answers
171
views
Tracking data change in GUI form
Problem: our application allows users to close a form window after certain changes without any confirmation, instead of pressing the Save button. This makes them complain they have to start afresh.
We ...
2
votes
1
answer
138
views
How to Build a Polite, Per-Domain Rate-Limited Web Crawler with Airflow and Celery?
I'm designing a "polite" web crawler using Airflow with the Celery Executor, PostgreSQL for metadata and actual content used by the crawler, and Redis as the Celery broker. My goal is to ...
0
votes
0
answers
67
views
Turborepo: Docker dev-container (hot-reload and breakpoints) for Turborepo-project
I need a guide to make dev-container for my monorepo.
I use Turborepo with two applications ("api" and "web") and one package "shared" between them:
my-project/
|-- apps/
...
0
votes
1
answer
115
views
How can I scale an embedded Java DB to support multiple processes or nodes?
I’m using JetBrains Xodus—a transactional, append‑only embedded Java database—inside a single JVM process and it meets my performance needs there.
Now I need to:
Allow multiple JVM processes on the ...