Skip to main content

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
-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
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
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
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
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
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
-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
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
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
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
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
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
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
1 answer
286 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
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
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
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
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
-3 votes
3 answers
172 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
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
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
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
0 votes
2 answers
381 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
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