c# Programming Glossary: intuition
Order of LINQ extension methods does not affect performance? http://stackoverflow.com/questions/10110013/order-of-linq-extension-methods-does-not-affect-performance the third person. This should now give you the necessary intuition to tell when order does matter for performance reasons. The..
Singleton double-check concurrency issue http://stackoverflow.com/questions/10281044/singleton-double-check-concurrency-issue the barrier after the assignment If that is what your intuition is telling you then it is wrong . You see memory barriers are..
Why do both the abstract class and interface exist in .Net? http://stackoverflow.com/questions/1028285/why-do-both-the-abstract-class-and-interface-exist-in-net distinction for inheritance. It never gives me as good an intuition about what to do as just playing around with different ideas..
How do I find the lat/long that is x km north of a given lat/long http://stackoverflow.com/questions/1125144/how-do-i-find-the-lat-long-that-is-x-km-north-of-a-given-lat-long these calculations should work but I'm running off pure intuition here but the logic does seem to hold true. Edit As pointed out..
How to determine if a string is a valid variable name? http://stackoverflow.com/questions/1829679/how-to-determine-if-a-string-is-a-valid-variable-name determine if a string is a valid variable name. My first intuition is to whip up some regex to do it but I'm wondering if there's..
Lock-free multi-threading is for real threading experts http://stackoverflow.com/questions/2528969/lock-free-multi-threading-is-for-real-threading-experts ensuring correct load store ordering . Contrary to one's intuitions CPUs are free to reorder memory reads writes they are very.. you start to do multi threading on multiple cores. Your intuitions will break down just because an instruction is earlier in your.. and make better use of their cache. Now it is sure against intuition that a sequence of code does not flow top down instead it runs..
Why does this simple .NET console app have so many threads? http://stackoverflow.com/questions/3476642/why-does-this-simple-net-console-app-have-so-many-threads I was expecting the process to just have one thread and my intuition was backed up by this Without the debugger the process has only..
Why does this generic constraint compile when it seems to have a circular reference http://stackoverflow.com/questions/3783321/why-does-this-generic-constraint-compile-when-it-seems-to-have-a-circular-refere to intuitively understand. 2 It does not map well to my intuition of what a generic type represents . I like classes to represent..
Why do assignment statements return a value? http://stackoverflow.com/questions/3807192/why-do-assignment-statements-return-a-value the key insight here and I think perhaps the cause of your intuition that assignments should be statements and not expressions. Ideally..
Why are C# number types immutable? http://stackoverflow.com/questions/3981827/why-are-c-sharp-number-types-immutable t2.Integer.Value Would output 11 This seems to defy intuition that the line t2.Integer t1.Integer would simply copy a value..
C# optional parameters on overridden methods http://stackoverflow.com/questions/8909811/c-sharp-optional-parameters-on-overridden-methods AAA interface nearby . The compiler's behaviour matches my intuition which is why when first reading the question it seemed to me..
|