conceptual Questions

3

Solved

I have a piece of C# 5.0 code that generates a ton of network and disk I/O. I need to run multiple copies of this code in parallel. Which of the following technologies is likely to give me the best...

5

Solved

This question is about optimal REST API design and a problem I'm facing to choose between nested resources and root level collections. To demonstrate the concept, suppose I have collections City, ...
Electrotherapy asked 13/10, 2013 at 0:8

5

The Task Parallel Library is great and I've used it a lot in the past months. However, there's something really bothering me: the fact that TaskScheduler.Current is the default task scheduler, not ...

2

Solved

I have the following simple console application: class Program { private static int times = 0; static void Main(string[] args) { Console.WriteLine("Start {0}", Thread.CurrentThread.ManagedThr...
Roentgenology asked 9/7, 2013 at 22:52

6

Solved

Well, i have a very conceptual question. A lot of things look like fabrics, where i'm not sure where the great benefit is. As example public class MyObject { public MyObject() { } public s...
Ferrous asked 26/6, 2013 at 13:38

3

Solved

I've been reading Eric Lippert's blog for a while now (it's excellent, you should check it out) and In the comments of one of his posts, he mentions that he had no intention indexing a sequence of ...
Lahnda asked 11/5, 2013 at 10:9

2

Solved

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 ...
Sexology asked 21/4, 2013 at 23:41

4

Solved

Having passed a series of Edward Tanguay's questions refractoring the usage of MVVM for WPF app which can be found in Linked sidebar of his Fat Models, skinny ViewModels and dumb Views, the best MV...
Boser asked 19/4, 2013 at 9:20

2

Solved

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 Comman...
Tetter asked 17/4, 2013 at 11:58

4

Solved

I have searched around SO as well as the rest of the web for a good answer but I have't found one that I really understand. I am going to present this in a different way and hopefully the ans...
Hepler asked 11/4, 2013 at 23:40

2

I consider myself having intermediate knowledge of GoF design patterns. However, I get confused when it comes to classifying those patterns into structural and behavioral patterns. I do not have an...
Vashti asked 9/4, 2013 at 15:48

1

Solved

I'm confused. How can one or many Task run in parallel on a single thread? My understanding of parallelism is obviously wrong. Bits of MSDN I can't wrap my head around: The async and await keyw...

3

Solved

I'm new to databases and have been reading that adding an index to a field you need to search over can dramatically speed up search times. I understand this reality, but am curious as to how it act...
Isleana asked 27/9, 2012 at 1:19

2

Solved

Am I correct that async/await itself has nothing to do with concurrency/parallelism and is nothing more than continuation-passing style (CPS) implementation? And the real threading is performed by ...
Dyarchy asked 17/9, 2012 at 9:5

3

Solved

If items are organized randomly, how does the table know where to start looking? In a non-random table items are organized according to some characteristic. (i.e. name). So if the table needs to l...
Hiddenite asked 2/5, 2012 at 15:2

3

Solved

How do i show the use of static methods in a UML class diagram? class A{ public static void test(){ } } class B{ public void b(){ A.test(); } } How would a class diagram look like, which s...
Jagatai asked 26/6, 2012 at 14:11

2

Solved

This is a conceptual question and I haven't been able to find the answer in SO, so here I go: Why instance variables are used to connect controllers and views? Don't we have two different objects ...
Doloroso asked 21/2, 2012 at 20:27

3

Solved

Why do we need Task.ContinueWith() method. Cannot we just write that "continuation code" inside Task body?

3

Solved

i have to generate random numbers for 3 different cases. i. 1 dice ii. a pair of dice iii. 3 dices my questions: 1. please suggest me sm good logic to generate random numbers for all the 3 cases. 2...
Hans asked 24/9, 2010 at 11:3

3

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"...
Piccolo asked 8/8, 2010 at 20:13

1

Solved

Thanks to Jeremy Miller's good work in Functional Programming For Everyday .NET Development, I have a working command executor that does everything I want it to (do heavy lifting on the thread pool...
Bachelorism asked 18/3, 2010 at 20:15

2

Solved

Approaching cmdlets in a conceptual way, How are they made? Are they compiled? Is it the equivalent of a batch file for PowerShell? Is it a script or a binary? What is the structure used for sto...
Kriegspiel asked 10/7, 2009 at 19:57

1

Solved

The following RoutedCommand example works. However, the handling for the button which executes the command is in the codebehind of the view. The way I understand MVVM, it should be in the ViewMode...
Awhirl asked 30/4, 2009 at 7:53

7

Solved

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 ...
Breakdown asked 27/4, 2009 at 5:55

3

Solved

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 ...
Suber asked 2/4, 2009 at 10:22

© 2022 - 2024 — McMap. All rights reserved.