Questions tagged [implementations]
The implementations tag has no summary.
110 questions
101
votes
3
answers
140k
views
Why is Python written in C and not in C++?
In Python's tutorial one can read that Python's original implementation is in C;
On the other hand, the Python implementation, written in C, (...)
I'm very curious why was Python written in C and ...
96
votes
13
answers
13k
views
How to warn other programmers of class implementation
I'm writing classes that "must be used in a specific way" (I guess all classes must...).
For example, I create the fooManager class, which requires a call to, say, Initialize(string,string). ...
73
votes
5
answers
31k
views
Why are there so few C compilers?
C is one of the most widely-used languages in the world. It accounts for a huge proportion of existing code and continues to be used for a vast amount of new code. It's beloved by its users, it's so ...
63
votes
6
answers
29k
views
Why was C# made with "new" and "virtual+override" keywords unlike Java?
In Java there are no virtual, new, override keywords for method definition. So the working of a method is easy to understand. Cause if DerivedClass extends BaseClass and has a method with same name ...
57
votes
3
answers
33k
views
What's is the point of PImpl pattern while we can use interface for the same purpose in C++?
I see a lot of source code that uses PImpl idiom in C++. I assume Its purpose is to hide the private data/type/implementation, so it can remove dependence, and then reduce compile time and header ...
48
votes
2
answers
22k
views
Which Common Lisp implementation to use? [closed]
There seems to be an immediate problem with starting to develop in Common Lisp: choosing an implementation. What should one take into account, and how much weight should it bear when considering a CL ...
39
votes
5
answers
30k
views
Implementing an interface when you don't need one of the properties
Pretty straight-forward. I'm implementing an interface, but there's one property that is unnecessary for this class and, in fact, shouldn't be used. My initial idea was to just do something like:
int ...
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 ...
36
votes
2
answers
5k
views
What is the proper way to do REST?
Everybody nowadays does SOA, even if some don't actually understand what is all about. So they do it wrong. Using that as an analogy I know what REST is (or at least I think I do) and want to do some ...
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.
...
20
votes
6
answers
4k
views
What advantage was gained by implementing LINQ in a way that does not cache the results?
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 = ...
17
votes
6
answers
9k
views
What does the author mean by casting the interface reference to any implementation?
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 ...
16
votes
1
answer
7k
views
In general how do Event Handlers work?
This is a general topic, How do Event Handlers work?
This means behind the scenes - what happens when they are created.
I have a rough idea - but would like to have it confirmed.
15
votes
3
answers
2k
views
What is the difference between ref and out in runtime?
C# provides the ref and the out keyword to make arguments to be passed by reference. The semantic of the two is very similar. The only difference is in the initialization of the flaged variable:
ref ...
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 ...