Conceptual questions involve programming problems which are not related to program code itself, but with algorithm logic and program architecture.
Questions tagged [conceptual]
364 questions
8
votes
4 answers
Does the Facade pattern violate SRP?
SRP principal say:
a class or module should have one, and only one, reason to change
I have some Facade class as my service layer classes. e.g SaleService, that it provide some methods e.g SaveOrder(), CancelOrder(), CreateOrder(), GetAllOrders(),…

Masoud
- 8,020
- 12
- 62
- 123
8
votes
2 answers
What is the difference between WPF Command and Event in WPF?
I was just googling the difference between WPF Command and Event in WPF. i landed on the following page of stackoverflow where the discussion is going on.
What is the difference between WPF Command and Event?
I am only able to understand following…
user1556433
7
votes
7 answers
Do objects encapsulate data so that not even other instances of the same class can access the data?
In Java,
Do objects encapsulate data so that not even other instances of the same class can access the data? Only when the keyword "private" is used? What are "accessor methods" in Java - methods like getName()?
Thanks

Devoted
- 177,705
- 43
- 90
- 110
7
votes
2 answers
General algorithm to solve a maze with n balls
I got asked the other day about "Outlining a general algorithm for solving a maze with n balls, where the goal is to get all the balls to a given position in the maze (the maze has no exit)". The only rules are that the algorithm must be effective…

Eric
- 117
- 7
7
votes
3 answers
What's missing from this strategy of choosing which C# collection to use?
Here's my strategy for choosing which C# collection type to use:
if number of items in collection is fixed, then use an array, e.g.:
string[] directions = new string[] { "north", "south", "east", "west" };
otherwise always use List
unless of…

Edward Tanguay
- 189,012
- 314
- 712
- 1,047
6
votes
3 answers
What are your strategies of binding the DataContext in MVVM?
These two 1-hour videos show step-by-step how to use the MVVM pattern to build simple quiz applications in both Silverlight and WPF:
Implementing Model-View-ViewModel in Silverlight
Implementing Model-View-ViewModel in WPF
What amazes me about these…

Edward Tanguay
- 189,012
- 314
- 712
- 1,047
6
votes
1 answer
How does JVM ensure platform independency across all processor architectures?
In my quest to understand the reasoning to use Java over C++ or vice versa for writing applications, I became stuck on this one point. I watched a video introducing me to Java and they said the reason there is a JVM is because it makes Java…

Lv99Zubat
- 853
- 2
- 10
- 27
6
votes
1 answer
Why let word added to servlet,applet,cmdlet?
Myself a history buff.I love to find out nuances behind naming.As a java developer we have come across servlet(Server side java component),applet(client side java component with gui),portlet(similar to servlet in portal environment).Now in…

prajitgandhi
- 483
- 1
- 5
- 20
6
votes
4 answers
What is the most efficient way to manage a large set of lines in OpenGL?
I am working on a simple CAD program which uses OpenGL to handle on-screen rendering. Every shape drawn on the screen is constructed entirely out of simple line segments, so even a simple drawing ends up processing thousands of individual…

e.James
- 116,942
- 41
- 177
- 214
6
votes
1 answer
Using FRP to model road network with jams
I am currently trying to understand arrows and FRP, and I came upon a question, which I cannot seem to map to FRP, namely how to model a road network.
I thought I could model a road network as Arrows, where each Arrow represents a road segment. It…

Martin Drautzburg
- 5,143
- 1
- 27
- 39
6
votes
1 answer
Why are Covariance and Contravariance named like that?
I was wondering why the terms Covariance and Contravariance are named like that in programming domain. Usually one hears these terms in Probability theory or Statistics indicating the spread of quantities being measured with respect to the…

zizouraj
- 473
- 2
- 11
6
votes
2 answers
WPF: How to trigger GUI behaviours in response to view-model events?
I'm developing a WPF/MVVM application and I have a listbox binding to data in a ViewModel. At various points I need the view model to cause the listbox to scroll to a given element.
How can I do this without creating a custom control and while…

Mark Feldman
- 15,731
- 3
- 31
- 58
6
votes
2 answers
What impact does using these facilities have on orthogonality?
I am reading The Pragmatic Programmer: From Journeyman to Master by Andrew Hunt, David Thomas. When I was reading about a term called orthogonality I was thinking that I am getting it right. I was understanding it very well. However, at the end of…

Sajib Mahmood
- 3,382
- 3
- 37
- 50
5
votes
3 answers
Is NULL a pointer?
So, I had an argument with my professor earlier defending that NULL is not a pointer, but he kept on insisting that it is because there is such a thing as NULL pointer. So, here I am now a little bit confused if NULL is really a pointer or not
I…

Joe
- 51
- 3
5
votes
2 answers
What is Injectable and Embeddable?
I have heard about both terms Injectable and Embeddable many times, but I am not getting actual meaning of it.
Please help me to understand both clearly.

NewDirection
- 116
- 10