Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.

Questions tagged [implementations]

Filter by
Sorted by
Tagged with
14 votes
10 answers
4k views

Dependecy Injection makes mostly sense when using interfaces, since one of DI's strengths is to switch out implementations. It also decouples classes, since the consumer of the dependency does not ...
Hans's user avatar
  • 572
0 votes
2 answers
431 views

I have a game server implemented in Python to which clients can connect and play against each other. I'd like to be able to reload configuration from a config file without restarting the server (as ...
luator's user avatar
  • 111
-2 votes
1 answer
221 views

Some may think I'm kidding, but I'm really stuck on this Suppose you have some UserDao interface that you want to implement What should you call it? Here are a few points I'd like to make I firmly ...
Sergey Zolotarev's user avatar
1 vote
5 answers
390 views

Consider that I've implemented SHA-256 hashing in C as incrementally updated IUF (init-update-finalize) working context and 3 subroutines. To use it in free-standing environment, or to efficiently use ...
DannyNiu's user avatar
  • 374
22 votes
11 answers
9k views

I know one of the differences between Agile and Waterfall is to do with more customer and user feedback, but I'm trying to wrap my head around what makes the Agile/XP model more adaptable to change. ...
mantot123's user avatar
  • 337
1 vote
1 answer
723 views

I'm writing my own dynamic programming language. So far I've been using a tagged union for all values. Since this boxes primitive types needlessly, I've begun researching tagged pointers which seem to ...
Matheus Moreira's user avatar
1 vote
3 answers
250 views

In a spare-time project of mine, I implemented RSA public-key cryptosystem. Because the official PKCS#1 standard specify key formats in terms of ASN.1 syntax and DER/BER coding, which is a coding with ...
DannyNiu's user avatar
  • 374
-1 votes
1 answer
67 views

I'm doing a project to teach myself more about MongoDB and ASP.NET development and I am stuck. The project is a mockup of a JobBoard website, where Companies would post offers for potential Employees. ...
AdrianIT's user avatar
3 votes
1 answer
395 views

I have read this article which indicates a double tuple structure, but it is unfortunately light on implementation details, which is what I am looking for. So... how are interfaces implemented in Go? ...
SRNissen's user avatar
  • 161
0 votes
1 answer
280 views

I've been building a traffic simulation with C++ following the Intelligent Driver Model from this article: https://towardsdatascience.com/simulating-traffic-flow-in-python-ee1eab4dd20f To sum up my ...
silverfox's user avatar
  • 103
1 vote
1 answer
372 views

Assume we have a single large JVM project (the example is in Kotlin), containing code. As part of a refactoring effort, we are decoupling pieces of the code by splitting the code into multiple modules,...
Hidde's user avatar
  • 170
0 votes
3 answers
314 views

I was reading about LSP (Liskov Substitution Principle) in a book called Clean Architecture: A Craftsman's Guide to Software Structure and Design. I have a question regarding how this would be ...
Gooday2die's user avatar
1 vote
2 answers
5k views

I have a single *.h file. This file contains a single (more to come) function declaration. Now the implementation of that file is very complex. the corresponding *.cpp contains several function ...
user avatar
1 vote
3 answers
1k views

What we often see is that software companies create an internal API which is then consumed by their own user interface. And we were trying to find the benefits of those, other than it's easy/easier to ...
Jesse's user avatar
  • 223
-4 votes
2 answers
86 views

I've never implemented an entire specification before and wanted to know what a workflow may look like to do so. I have worked on code that was backed by such a specification, but only in maintenance ...
the_endian's user avatar
  • 1,152
-1 votes
2 answers
296 views

I've noticed that most AST tree implementations use classes for nodes instead of something like a vector. I want to ask, why do most people use classes? Are there issues to using vectors to make AST ...
StandingPad Animations's user avatar
2 votes
4 answers
2k views

I am using C++ , but as far as I understand most OO principles are cross language. In most of the articles that I have read and liked about inheritance the advice are about : not to use it for the ...
user3717741's user avatar
2 votes
1 answer
256 views

I'm studying Design Patterns book and I was trying to understand the Composition principle in Lexi's Compositor-Composition as explained in figure 2.5, as well as how to implement it. Where the ...
Christian H's user avatar
0 votes
1 answer
165 views

The UNIX load average gives 3 numbers over 1/5/15 minute time intervals. It's supposed to be an indicator of how busy a UNIX machine is. The global load average is an exponentially decaying average of ...
BMBM's user avatar
  • 337
13 votes
4 answers
6k views

The commonly endorsed, and considered the most reliable, way of evaluating the security of a program is through examining its source code. That is, this method is based on the fundamental assumption: &...
Al Berger's user avatar
  • 279
3 votes
1 answer
4k views

I have a relatively simple task where I need some 10 consumers to consume work to be produced into a queue, continuously. This is my first time implementing this design pattern, so I have been ...
Veverke's user avatar
  • 541
0 votes
0 answers
92 views

Introduction A customer of ours has embedded products with sensors and actuators. Now they would like to connect this device to the cloud so they can remotely monitor and configure it. It should ...
Kodiak's user avatar
  • 105
2 votes
2 answers
291 views

I'm trying to implement a safety feature that puts a timeout around a huge function call. Pretty simple, I thought, but it turned out much harder than expected; there's no built-ins for this in any of ...
Drathier's user avatar
  • 2,883
-2 votes
2 answers
104 views

First of all, I consider myself to be a power user, but wouldn't dare to call myself a software designer. I opened a feature request to add support for Windows' Precision Touchpad binding in the ...
Fabio Freitas's user avatar
3 votes
3 answers
1k views

Java interface design: where should I put a lot of duplicate code that will be used by all subclasses? interface Tuple { void method1(); } class Tuple1 implements Tuple { @Override public ...
Guo's user avatar
  • 177
-2 votes
2 answers
2k views

I'm working on a Gradle project that has several modules. The project is implemented in Kotlin. One of these modules is the main entry point to the project, which is the main module. Another module ...
Andrei's user avatar
  • 55
-2 votes
3 answers
115 views

I would like to have the following interface: Resource { public: void copyInto(Resource* src) = 0; } But in order to implement this, the implementation would need to know (or make assumptions about) ...
LeonTheProfessional's user avatar
0 votes
2 answers
104 views

Say I am creating an app which contains selectable components and a toolbar/action bar. Some tools work on selected components only, some work on all components together. Pretty standard stuff. I can ...
Yogev's user avatar
  • 23
0 votes
1 answer
285 views

Moved I originally posted this on SoftwareEngineering because that's where this related question was; but having looked into the Help in detail, I think my question is more on-topic for stackoverflow,...
LarsH's user avatar
  • 153
-4 votes
2 answers
78 views

How do you successfully adopt TDD in an organization? Training alone is not enough in my opinion as I feel it requires a change in process and mindset. If TDD has been implemented in your organization ...
Luly's user avatar
  • 1
0 votes
0 answers
140 views

Why in C# it is not important to know when the generation 1 was collected by GC while implementing the GCNotification? While reading the CLR via C# book I met the following excerpt: The ...
qqqqqqq's user avatar
  • 109
-3 votes
1 answer
76 views

Please let me know if this isn't the right SE site (or otherwise) for this kind of question, it's the best match I could find. I'm working on a humble interpreter written in C for a simple language I'...
Aviv Cohn's user avatar
  • 21.6k
0 votes
1 answer
279 views

I am storing my Ping records in a limited queue, and I also have a cumulative sum to get the average. I'm doing it like a window. My problem is this: Does it make sense that I have 5ms Ping with 98% ...
Ícaro Lima's user avatar
-4 votes
1 answer
142 views

Structure I have a structure like this: level 1 items represented by a capital letter (A, B, C, D,...) level 2 items represented by lower case letter (a, b, c, d,...) level 3 items repredented ...
basic-ph's user avatar
0 votes
1 answer
2k views

In implementing a binary tree in Java, should the node class be a separate class file independent of the BinaryTreeclass, or should it be a default class in the same class file as the BinaryTree class?...
aCarella's user avatar
  • 329
0 votes
2 answers
2k views

Not sure if this is an appropriate question for here, please let me know! In Scala, the ever so useful Option class has an apply method in its companion object that allows us to quickly wrap any ...
Derek Plautz's user avatar
2 votes
3 answers
5k views

I came across this word "implementation". CPython is one of the most common implementations of Python. What exactly is an implementation? I researched a bit on how a Python code runs. First, it is ...
Akshay Narwadkar's user avatar
5 votes
2 answers
3k views

Process VMs (such as the Oracle JVM, CPython, .NET CLR etc.) are usually stack-based or register-based. Are the "registers" in a register-based VM actually the registers of the underlying physical ...
Aviv Cohn's user avatar
  • 21.6k
-3 votes
3 answers
169 views

Although I understand privacy concerns, the measure has been imposed by politcians and I want to know what the proper way to put this into place would have been. Right now, each site has to implement ...
James P.'s user avatar
  • 1,223
1 vote
1 answer
150 views

I'm unsure about several things: I have a class that implements a NotificationDispatcher interface. This class I named WhatsappNotificationDispatcher, another implementation goes by ...
Hans's user avatar
  • 572
0 votes
2 answers
2k views

While going through some lecture video on interface. I noticed If we don't know about implementation, just requirement specification then go for interface. What can be the scenario? Though I've ...
Surya Bhusal's user avatar
1 vote
3 answers
2k views

I'm having a trouble with understanding how to implement and find the median of a threaded binary search tree in constant time. The tree consists of a worker's id and name. The given details are ...
BeginningMath's user avatar
0 votes
1 answer
521 views

I am interested to see how a for loop / while loop would be implemented as an automaton. I am having difficulty imagining how that would work. Say the while-loop did this: var i = 0 while (i < 10) ...
Lance Pollard's user avatar
20 votes
6 answers
4k views

This is a known pitfall for people who are getting their feet wet using LINQ: public class Program { public static void Main() { IEnumerable<Record> originalCollection = ...
Panzercrisis's user avatar
  • 3,213
39 votes
3 answers
33k views

I am working on a small application trying to grasp the principles of domain-driven design. If successful, this might be a pilot for a larger project. I'm trying to follow the book "Implementing ...
LittlePilgrim's user avatar
17 votes
6 answers
9k views

I am currently in the process of trying to master C#, so I am reading Adaptive Code via C# by Gary McLean Hall. He writes about patterns and anti-patterns. In the implementations versus interfaces ...
Marshall's user avatar
  • 289
0 votes
2 answers
380 views

I'm building a small game similar to chess. I'd like to be able to reuse the structure for another version of checkers too. I'm modeling the games with interfaces (showing only relevant ones): ...
garci560's user avatar
  • 267
-2 votes
2 answers
6k views

What is the meaning of separating interface from implementation in C++? And also what is implied by interface and implementation?
Abhyuday Singh's user avatar
-2 votes
1 answer
120 views

I have a question in regards to the implementation of a program that I am trying to do. I have a MySQL database with numerous users, and each have a task executed at a certain time. For each user ...
97WaterPolo's user avatar
1 vote
1 answer
125 views

I'm in the process of writing Doxygen comments for this library of mine; it's a header-mostly C++ library, but it does have some code which gets linked rather than included. For that code, which has ....
einpoklum's user avatar
  • 2,808