Questions tagged [implementations]
The implementations tag has no summary.
110 questions
14
votes
10
answers
4k
views
Is Dependency Injection useful when implementations are never expected to change?
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 ...
-2
votes
1
answer
221
views
Vanilla interface implementations. What should I call it? [closed]
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 ...
22
votes
11
answers
9k
views
How is Agile model more flexible than the Waterfall model?
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.
...
1
vote
3
answers
250
views
How robust should an interface/implementation be?
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 ...
3
votes
1
answer
395
views
How are interfaces implemented behind the scenes in the Go language?
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?
...
1
vote
1
answer
372
views
Gradle/Maven project splitting: interfaces and implementation
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,...
1
vote
2
answers
5k
views
Recommended way of hiding implementation details?
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 ...
-4
votes
2
answers
86
views
What are some workflows that one engineer may use to implement a software specification?
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 ...
2
votes
4
answers
2k
views
Confused about inheritance and correct usage. Should I avoid using members in base class?
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 ...
0
votes
1
answer
165
views
Understand implementation of exponential moving average (in case of unix load average)
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 ...
3
votes
1
answer
4k
views
What is the currently best C# implementation for a Producer/Consumer scenario?
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 ...
2
votes
2
answers
291
views
How do modern JS engines terminate unresponsive scripts?
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 ...
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?
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 ...
-2
votes
3
answers
115
views
Behaviour that depends on two sides
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) ...
0
votes
1
answer
286
views
How to implement FNV-1(a) in SQLite?
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,...
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?
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 ...
0
votes
1
answer
279
views
How does Packet Loss affect Ping (RTT) calculation?
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% ...
0
votes
1
answer
2k
views
Class structure: How should a binary tree and it's node class be implemented in Java in terms of class files?
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?...
2
votes
3
answers
5k
views
What is the definition of implementation in programing languages? What is CPython?
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 ...
-3
votes
3
answers
172
views
Does the implementation of GDPR compliance per site make sense in terms of good practises?
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 ...
0
votes
2
answers
2k
views
Use case for interface
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 ...
0
votes
1
answer
521
views
How to write a for loop using Automata
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) ...
39
votes
3
answers
33k
views
Implementing DDD: users and permissions
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 ...
0
votes
2
answers
381
views
Is implementations not being interchangeable and having to cast often a code smell?
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):
...
-2
votes
1
answer
120
views
Design implementation for a project
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 ...