KodefuGuru
Name: KodefuGuru
Score: 3,781.41
Last Seen: 22 days, 14 hours, 25 minutes ago
Member Since: 9 June, 2009
DotNetShoutout
atom rss
5
Shouts

Getting Started with Windows Phone 7

published 965 days, 12 hours, 12 minutes ago posted by KodefuGuruKodefuGuru 965 days, 19 hours, 6 minutes ago
Thursday, September 30, 2010 4:54:55 AM GMT Wednesday, September 29, 2010 10:01:15 PM GMT
Microsoft has a video series to help developers get started with Windows Phone 7. Here’s the first by Nancy Strickland. This video gets you set up with the developer tools and shows you how to build your first application. If you’re familiar with Visual Studio, it’s amazingly simple to build and debug WP7. If you haven’t seen it yet, the coolest thing in my opinion is the windows phone emulation. As explained in the video, the grab handles are slightly larger than the visuals because it represents the... (more)
category: Screencast | clicked: 0 | comment | | source: www.kodefuguru.com
tags: Windows Phone 7, WP7, Windows Phone 7 Development, Windows Phone 7 Series
5
Shouts

Major Drops for Windows Phone 7 and XNA

published 976 days, 2 hours, 53 minutes ago posted by KodefuGuruKodefuGuru 978 days, 19 hours, 56 minutes ago
Sunday, September 19, 2010 2:14:31 PM GMT Thursday, September 16, 2010 9:11:26 PM GMT
Microsoft has release all kinds of goodies today: Windows Phone 7 Developer Tools, Training Kit, WP7 Ad SDK, and the full XNA Game Studio 4.0! (more)
category: Metro | clicked: 0 | comment | | source: www.kodefuguru.com
tags: XNA, Windows Phone 7, WP7
4
Shouts

Continuation-Passing Style Overload

published 1000 days, 5 hours, 28 minutes ago posted by KodefuGuruKodefuGuru 1001 days, 2 hours, 47 minutes ago
Thursday, August 26, 2010 11:39:36 AM GMT Wednesday, August 25, 2010 2:20:24 PM GMT
I wrote about continuation-passing style in a post a couple of months ago, and I’ve had time to ruminate over it since. One consideration I had is whether to return a type or not. This is easily handled by overloading the method. I also describe how I created an executable with Func (more)
category: How To | clicked: 0 | comment | | source: www.kodefuguru.com
tags: CPS, C#, Func, functional, continuations
5
Shouts

Visual Studio LightSwitch Resources

published 1007 days, 2 hours, 13 minutes ago posted by KodefuGuruKodefuGuru 1007 days, 19 hours, 12 minutes ago
Thursday, August 19, 2010 2:54:21 PM GMT Wednesday, August 18, 2010 9:55:30 PM GMT
To celebrate the release of Visual Studio LightSwitch on MSDN, I am posting the resources of which I am aware. This is a list for you lucky few with an MSDN subscription who can download LightSwitch Beta 1 today. More resources and information will be released on Monday, August 23rd, along with the public beta... (more)
category: How To | clicked: 0 | comment | | source: www.kodefuguru.com
tags: LightSwitch
5
Shouts

Is That Closure or Inheritance?

published 1014 days, 5 hours, 3 minutes ago posted by KodefuGuruKodefuGuru 1015 days, 3 hours, 40 minutes ago
Thursday, August 12, 2010 12:04:44 PM GMT Wednesday, August 11, 2010 1:27:37 PM GMT
In response to my previous story, a commenter asked if the code I posted works due to a closure relationship rather than inheritance. The argument is that the field can be accessed by a nested class, and it wasn’t actually passed as a member to the other class. The reader of the story states that the field would still be accessed in Java even if Employee didn’t inherit from Person. Then, the question is asked if it’s different in C#. I’m not familiar enough with Java to speak about how it works, but I ... (more)
category: How To | clicked: 0 | comment | | source: www.kodefuguru.com
tags: C#, OOP
5
Shouts

Are Private Members Inherited?

published 1015 days, 2 hours, 48 minutes ago posted by KodefuGuruKodefuGuru 1016 days, 3 hours, 57 minutes ago
Wednesday, August 11, 2010 2:19:45 PM GMT Tuesday, August 10, 2010 1:10:28 PM GMT
On one level, it would appear that classes don’t inherit private members. Public and protected members are accessible by the subclass, but those pesky privates seemingly can’t be accessed. Of course, they’re there, otherwise calls to the exposed methods would not work. Then, there’s always reflection to access them. But I’m not really concerned about reflection or lower-level activities such as memory access; I’m more interested in the higher level concept of inheritance. Is the private member passed on ... (more)
category: How To | clicked: 2 | 1 comment | | source: www.kodefuguru.com
tags: Inheritance, C#, OOP
7
Shouts

Remove Generic Parameter Refactoring

published 1019 days, 2 hours, 35 minutes ago posted by KodefuGuruKodefuGuru 1020 days, 34 minutes ago
Saturday, August 07, 2010 2:32:10 PM GMT Friday, August 06, 2010 4:33:38 PM GMT
I needed to remove an extraneous generic parameter from two classes in a 2008 project. Since I didn't have a tool for doing so, I created a find/replace regex for the task. (more)
category: Agile | clicked: 1 | comment | | source: www.kodefuguru.com
tags: Generics, Refactor, Refactoring, Regex
9
Shouts

Free ebook: Petzold’s Programming Windows Phone 7 (Special Excerpt 2) - Microsoft Press - Site Home - MSDN Blogs

published 1019 days, 2 hours, 35 minutes ago posted by KodefuGuruKodefuGuru 1022 days, 2 hours, 15 minutes ago
Saturday, August 07, 2010 2:32:10 PM GMT Wednesday, August 04, 2010 2:51:50 PM GMT
Just in time for VSLive in Redmond, here’s a second draft preview ebook of Charles Petzold’s upcoming Programming Windows Phone 7! The first preview ebook contained six chapters. This one contains eleven chapters (and 265 pages): (more)
category: Metro | clicked: 0 | comment | | source: blogs.msdn.com
tags: Silverlight, XNA, Windows Phone 7, Windows Phone
7
Shouts

Visual Studio LightSwitch 2010

published 1021 days, 7 hours, 29 minutes ago posted by KodefuGuruKodefuGuru 1022 days, 21 hours, 29 minutes ago
Thursday, August 05, 2010 9:37:51 AM GMT Tuesday, August 03, 2010 7:38:31 PM GMT
I’m a hardcore coder who is into design patterns and best practices. But sometimes, you just needs to crank out a simple little application for someone to manage a database of employees or orders… maybe both! Recently, some of use have turned to ASP.NET Dynamic Data for scaling websites, but websites aren’t always the best solution. What if your client really wants a desktop application with rich functionality like exporting to Excel? Introducing the next wave of application scaling: LightSwitch! (more)
category: Metro | clicked: 0 | comment | | source: www.kodefuguru.com
tags: Visual Studio 2010, LightSwitch
3
Shouts

Review: Visual Studio 2010 Ultimate Edition

posted by KodefuGuruKodefuGuru 1023 days, 14 hours, 52 minutes ago
Tuesday, August 03, 2010 2:15:10 AM GMT
Choosing the right edition of Visual Studio 2008 for your organization depends on your job role. This sounds like a simple process, but it’s complicated for IT pros who have multiple job roles. This is not an issue in Visual Studio 2010. In Visual Studio 2010’s simplified tier structure, each tier — aside from Test Professional (which is the only role-specific version left) — adds features to the previous tier. (Common components are discussed in my previous reviews of Visual Studio 2010.) In this arti... (more)
category: How To | clicked: 0 | comment | | source: blogs.techrepublic.com.com
tags: Review, Visual Studio 2010
6
Shouts

First Look at the Razor CSharp HTML File in MVC 3

published 1023 days, 4 hours, 48 minutes ago posted by KodefuGuruKodefuGuru 1024 days, 1 hour ago
Tuesday, August 03, 2010 12:19:31 PM GMT Monday, August 02, 2010 4:07:07 PM GMT
The day before I left for IEEE ICCSIT 2010, there was a huge announcement about a new view engine for ASP.NET: Razor. It was old news by the time I returned, but I couldn’t help but sit down and play with it. I skimmed a few a blog postings on it, but I wasn’t getting anything good. So, I downloaded the ASP.NET MVC 3 Preview 1 and began playing with it myself. After installing the preview, I created a new ASP.NET MVC 3 Razor application. I then proceeded to open the Views/Home/Index.cshtml to see what i... (more)
category: Web Dev | clicked: 3 | comment | | source: www.kodefuguru.com
tags: MVC3, Cshtml, Razor
6
Shouts

Unpack and Transform Tuples with CPS

posted by KodefuGuruKodefuGuru 1028 days, 3 hours, 26 minutes ago
Thursday, July 29, 2010 1:41:45 PM GMT
The tuple class made its debut in the .NET framework along with a language that supports it well: F#. But being a first-class citizen of the framework means other languages have access to this data type as well. Unfortunately, neither C# nor VB obtained any language support for tuples, and it ends up being treated as a dumb, generic data container instead of the powerful data class that is oftentimes found in functional languages. Accessing the elements of a tuple is rather bland, as each piece is named... (more)
category: How To | clicked: 0 | comment | | source: www.kodefuguru.com
tags: CPS, extension method, Tuple
5
Shouts

Summation Functions

published 1029 days, 4 hours, 2 minutes ago posted by KodefuGuruKodefuGuru 1030 days, 4 hours, 8 minutes ago
Wednesday, July 28, 2010 1:05:43 PM GMT Tuesday, July 27, 2010 12:59:46 PM GMT
Creating a summation function in C# isn’t difficult in itself. After all, it is perfectly reasonable to create functions that consist of more than one line. What is interesting is abstracting it so that any function can become a summation function. (more)
category: How To | clicked: 2 | comment | | source: www.kodefuguru.com
tags: Extension Methods, VB, C#, query expressions, Func
6
Shouts

Call a Function to Infinity

published 1030 days, 7 hours, 15 minutes ago posted by KodefuGuruKodefuGuru 1031 days, 2 hours, 56 minutes ago
Tuesday, July 27, 2010 9:52:03 AM GMT Monday, July 26, 2010 2:11:28 PM GMT
What if the resulting value of a function was used to feed the parameter of the same function? It easy enough to call a function, get its result, then pass it back in. However, I wanted to abstract this and make it work for anything whose generic parameter type is the same as the generic result type. If it’s abstracted, there must be some arbitrary end point… right? How about infinity? (more)
category: Agile | clicked: 1 | comment | | source: www.kodefuguru.com
tags: C#, Func, extension method, Recursion
3
Shouts

Monadic Comprehensions Presentation at IEEE ICCSIT 2010

published 1035 days, 2 hours, 9 minutes ago posted by KodefuGuruKodefuGuru 1036 days, 3 hours, 5 minutes ago
Thursday, July 22, 2010 2:57:55 PM GMT Wednesday, July 21, 2010 2:02:23 PM GMT
Here is the slide deck from my talk at IEEE ICCSIT 2010. The preparation for this conference and my research into monadic comprehensions and functional composition happened to coincide, so I decided I should make that my presentation. China has been an adventure, enjoy the code I created to go along with it! (more)
category: Agile | clicked: 0 | comment | | source: www.kodefuguru.com
tags: C#, query expressions, Monads, functional composition
5
Shouts

Maybe as an Extension Method

published 1053 days, 2 hours, 31 minutes ago posted by KodefuGuruKodefuGuru 1056 days, 3 hours, 1 minute ago
Sunday, July 04, 2010 2:36:02 PM GMT Thursday, July 01, 2010 2:06:40 PM GMT
A frequent question I received concerning the Maybe static class was “why didn’t you make extension methods?” I am a proponent of extension methods, so it would seem that I would prefer “42”.ToInt32() over Maybe.ToInt32(“42”). However, I immediately created a static class for this despite my previous criticisms of helper classes. Why? Semantics What does it mean when someone writes Request.QueryString[“index”].ToInt32()? It’s not obvious that ToInt32() returns a Nullable (more)
category: How To | clicked: 0 | comment | | source: www.kodefuguru.com
tags: Extension Methods, Convert, String, extension method, Parsing
8
Shouts

TryParse vs Convert

published 1061 days, 5 hours, 11 minutes ago posted by KodefuGuruKodefuGuru 1063 days, 5 hours, 5 minutes ago
Saturday, June 26, 2010 11:55:47 AM GMT Thursday, June 24, 2010 12:02:08 PM GMT
Since I’ve been coming out against out params, I sometimes get asked about the TryParse pattern. My typical response is that the most egregious offenses of out param usage occur when there is more than one, but even one should be avoided. However, I was recently presented with a more specific question: “lets say you had to pick up a query string param in WebForms/ASP.NET and make it an Int32... would use Convert or TryParse?” This is a very practical question, and given the choices it is interesting to e... (more)
category: How To | clicked: 1 | comment | | source: www.kodefuguru.com
tags: C#, Declarative, Parsing
6
Shouts

Down the Functional Rabbit Hole

published 1073 days, 6 hours, 29 minutes ago posted by KodefuGuruKodefuGuru 1075 days, 19 hours, 51 minutes ago
Monday, June 14, 2010 10:38:05 AM GMT Friday, June 11, 2010 9:16:26 PM GMT
In the comments to “Get Rid of out Parameters,” a reader mentioned a technique that I neglected to cover: the functional continuation-passing style. Here’s how Ram presented it.static void Main() { Div(16, 3, (quotient, reminder) => { Console.WriteLine("quotient: {0}", quotient); Console.WriteLine("remainder: {0}", reminder); }); } static void Div(int dividend, int divisor, Action (more)
category: Agile | clicked: 0 | comment | | source: www.kodefuguru.com
tags: lambda
5
Shouts

Get Rid of out Parameters

published 1076 days, 6 hours, 48 minutes ago posted by KodefuGuruKodefuGuru 1077 days, 2 hours, 52 minutes ago
Friday, June 11, 2010 10:18:48 AM GMT Thursday, June 10, 2010 2:15:16 PM GMT
An anachronism of the procedural world, out parameters have no place in object-oriented or functional APIs. Here are three ways to rid yourself of them... (more)
category: How To | clicked: 0 | comment | | source: www.kodefuguru.com
tags: dynamic, C#, Parameters, Tuple
10
Shouts

C# Ninjitsu

published 1078 days, 5 hours, 57 minutes ago posted by KodefuGuruKodefuGuru 1080 days, 2 hours, 49 minutes ago
Wednesday, June 09, 2010 11:09:54 AM GMT Monday, June 07, 2010 2:18:26 PM GMT
C# is no longer a purely object-oriented language. It is no longer just an imperative, class-based, component oriented discipline. It is also a generic, declarative, functional discipline. I will introduce new principles in the context of the classic object-oriented and SOLID principles and show you how to master the C# language to be more declarative, more fluent, and more functionally cohesive. (more)
category: Agile | clicked: 2 | comment | | source: www.kodefuguru.com
tags: demo, SlideDeck, presentation