Questions tagged [implementation]

Deals with various issues of implementation.

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

2196 questions
7
votes
3 answers

Implement common behaviour in alternative to abstract base classes?

In C#, I have a class hierarchy with a couple of abstract base classes near the top and a fair number of derived classes. A few these concrete classes have some common properties and methods that are implemented identically. It strikes me as…
DaBozUK
  • 590
  • 1
  • 8
  • 24
7
votes
4 answers

How to specify what "list" the product was added to cart from? Enhanced Ecommerce

Trying to implement Google Analytics Enhanced Ecommerce tracking for my website. How to specify what "list" the product was added to cart from? Here is the standard tracking code for adding the product to basket: // Called when a product is…
7
votes
0 answers

ASP.NET/Paypal: PayPal Integration Wizard?

I'm currently trying my luck to integrate PayPal in ASP.NET (I'm just starting to know more about PayPal, okay?) PayPal Integration Wizard. Hmmm. Does this even work? What are your thoughts/comments/suggestions about it? Any good implementation (in…
abramlimpin
  • 5,027
  • 11
  • 58
  • 97
7
votes
2 answers

How can I implement the same behavior as Dictionary.TryGetValue

So, given then following code type MyClass () = let items = Dictionary() do items.Add ("one",1) items.Add ("two",2) items.Add ("three",3) member this.TryGetValue (key,value) = items.TrygetValue (key,value) let c =…
pblasucci
  • 1,738
  • 12
  • 16
7
votes
1 answer

JVM String methods implementation

String class has some methods that i cannot understand why they were implemented like this... replace is one of them. public String replace(CharSequence target, CharSequence replacement) { return Pattern.compile(target.toString(),…
marcolopes
  • 9,232
  • 14
  • 54
  • 65
7
votes
2 answers

XPath 2.0 : Open implementations

I find it very difficult to find an XPath 2.0 implementation outside of Saxon. What are the XPath 2.0 options in other languages ? Note : This blog post made an interesting summary of the situation in 2007.
glmxndr
  • 45,516
  • 29
  • 93
  • 118
7
votes
1 answer

difference between MediaPlayer.create and setDataSource implementation

I'm using several media player objects to loop some tracks and I want to know that is the difference between using the MediaPlayer.create(resId) versus manually programming the different states, using setDataSource(FileDescriptor) ect.. I'm still…
7
votes
2 answers

How does a mutex know what data to lock (and what data not to)?

I am curious how does a mutex know what data to protect and what data not to protect. I've been using mutexes (mutices?) in Qt, and a QMutex does not specify any particular members to be locked. One idea that comes to my head is that the mutex…
user2341104
7
votes
2 answers

Trove Library Queue implementation

I am using trove 3.0.3 library in java project. All classes in gnu.trove.queue (TByteQueue, TDoubleQueue ...) are all interfaces. Where I can find implementation of Queue classes?
cdkrot
  • 279
  • 1
  • 2
  • 8
7
votes
3 answers

Why is access to protected member in Java implemented as it does?

The question about access to protected member in Java was already asked and answered a lot of times, for example: Java: protected access across packages But I can't understand why it is implemented this way, see explanation from "Java Programming…
TT_ stands with Russia
  • 1,785
  • 3
  • 21
  • 33
7
votes
1 answer

Which Erlang implementation of OpenId should I use, if any?

I'd need an Erlang implementation of the OpenId protocol. I found the following, but it seems to be a project on its early stage. http://code.google.com/p/erlopenid/ Any hint or suggestion on what should I use?
Roberto Aloi
  • 30,570
  • 21
  • 75
  • 112
7
votes
1 answer

How would you implement a functional programming language?

In functional paradigm, a function is a primary 'control structure'. For eg., the + operator is also treated as a function and you can pass them around like any other 'objects'. I was wondering that if i had to implement a toy functional language,…
badmaash
  • 4,775
  • 7
  • 46
  • 61
7
votes
4 answers

Binary serialization in pure C/C++

I'd like to implement the binary serialization on my own, without using Boost or any other third-party library. In C++ the simpliest way to achieve it is to use ofstream and then send a binary file over network. But is there any other stream class…
Secret
  • 2,627
  • 7
  • 32
  • 46
7
votes
3 answers

Simple Database Implementation for Educational Purpose

I would like to learn Database systems implementation in Depth. Is there an open-source simple implementation of database for educational purpose that I can go through the code? Like there are a lot of OS implementation (Minix, Pintos...). I am…
Alfred Zhong
  • 6,773
  • 11
  • 47
  • 59
6
votes
2 answers

How are debugger breakpoints implemented efficiently?

Sometimes I accumulate a large mass of breakpoints from different debugging sessions in different places in my code. How does the debugger efficiently know when to stop for a breakpoint? It can't possibly be stopping at every single line to check…
skiphoppy
  • 97,646
  • 72
  • 174
  • 218