Questions tagged [implementation]

Deals with various issues of implementation.

Deals with various issues of implementation of functions, features, languages, etc.

2196 questions
8
votes
2 answers

How are regular and composite indexes implemented in RDBs?

In databases like MySQL or Oracle, how are indexes implemented? I think regular indexes are stored as B-trees, but couldn't find anything about composite indexes that index on multiple columns. I'm looking for the names of the data structures used…
ulver
  • 1,521
  • 16
  • 29
8
votes
2 answers

Simple Delegate Example?

Ok, I'm programming in objective-C and using Xcode. I have read through the documentation on Apple's website and understand what delegate's are but when I come to the part where it talks about how to actually implement delegate methods into code, I…
Josh Bradley
  • 4,630
  • 13
  • 54
  • 79
8
votes
4 answers

Interfaces, what if not all implementations use all methods?

I'm fairly new to programming against interfaces and am trying to get it right as a major tool for developing test driven. Currently we have a lot of Manager classes that all implement a CRUD interface. However some Managers don't yet do updates…
Pete
  • 10,720
  • 25
  • 94
  • 139
7
votes
2 answers

RTSP video streaming implementation

I have to write an app in C#. The aplication is a video streaming client-server using rtsp protocol. It is dificult to me to start implementing because i never done before such a big app. If someone could give me some hints or a guideline I will…
andrew
  • 2,797
  • 3
  • 18
  • 16
7
votes
1 answer

C++: implementation of a class methods in a separated shared library

I figure out I can have the implementation of parts of a class in a shared lib, as far as the symbols are loaded when used. myclass.h --- class C { void method(); } main.cpp --- #include "myclass.h" int main() { //dynamically load mylib.so…
Ben
  • 165
  • 2
  • 5
7
votes
5 answers

Are java algorithms implemented in C or in java?

I know that python's implementation of sorting (timsort) is implemented in C to get better performance. Is that also the case for the java implementation, or are all java algorithms implemented in java?
sighol
  • 2,678
  • 6
  • 28
  • 34
7
votes
5 answers

Fastest implementation for All-pairs shortest paths problem?

I have a weighted graph 30k nodes 160k edges, no negative weights. I would like to compute all the shortest paths from all the nodes to the others. I think I cannot assume any particular heuristics to simplify the problem. I tried to use this…
Eugenio
  • 3,195
  • 5
  • 33
  • 49
7
votes
8 answers

C++ Getters-Setters in Implementation File

I'm relatively new to C++ and I think that my question may be understood best by example. In my header file, suppose I have class myClass{ public: double getVar1(); void setVar1(double newVar1); void copyVar1(myClass*…
A-A
  • 663
  • 1
  • 13
  • 17
7
votes
4 answers

Clarity in classes implementing multiple interfaces (alternative to delegation):

Let's say we've got the following: IFirst = Interface(IUnknown) function GetStuff: Integer; end; ISecond = Interface(IUnknown) function GetOtherStuff: Integer; end; TFirstSecond = class(TInterfacedObject, IFirst, ISecond) …
Vector
  • 10,879
  • 12
  • 61
  • 101
7
votes
4 answers

Should separation between API and Implementation be total?

Separation between API design and their implementation is often recommended in large software implementations. But somewhere, they have to be reconnected (i.e., the implementation has to be reconnected to the API). The following example shows an API…
Jérôme Verstrynge
  • 57,710
  • 92
  • 283
  • 453
7
votes
3 answers

Are local function declarations cached?

function A() { function B() { ... } B(); } Is function B created every time A is called or is there some caching on it. Is not making it local like : function A() { B(); } function B() { ... } A significant…
Raynos
  • 166,823
  • 56
  • 351
  • 396
7
votes
2 answers

appcompat-v7:27.1.1 conflicts with firebase-ads:15.0.1

I am working on a new app. Presently I am trying to add dependency implementation 'com.google.firebase:firebase-ads:15.0.1' Before insert row #38: After insert row #38: Any ideas how to best resolve this issue? P.S. classpath…
Volodymyr T
  • 102
  • 9
7
votes
3 answers

Besides singletons, what are some compelling reasons to use static methods in PHP?

I recently answered this question: What are good reasons to use static methods in PHP? The first thing to come to mind, of course, was a singleton. With little exception, the other answerers provided the same singleton example. But that got me…
Stephen
  • 18,827
  • 9
  • 60
  • 98
7
votes
11 answers

What are clever ways to output a list of n items with (n-1) separators inbetween?

Let's say that we have an array with n elements (n > 0). We would like to output a list of those elements, with a separator between them. A common approach to this problem is: foreach item ( output item output separator ) trim last…
Benoit
  • 76,634
  • 23
  • 210
  • 236
7
votes
5 answers

C# split List of interface by implementations

I need to split List to get lists of concrete implementations of IInterface. How can I do it in optimal way? public interface IPet { } public class Dog :IPet { } public class Cat : IPet { } public class…
AsValeO
  • 2,859
  • 3
  • 27
  • 64