KodefuGuru
Name: KodefuGuru
Score: 1,173.23
Last Seen: 33 days, 13 hours, 8 minutes ago
Member Since: 9 June, 2009
DotNetShoutout
atom rss
7
shouts

Reduce Chain and Extract Projection Refactorings

posted by KodefuGuruKodefuGuru 33 days, 13 hours, 8 minutes ago
Friday, February 12, 2010 11:04:49 PM GMT
One of the principles I introduce in my new talk is Strive for Functional Cohesion. My original article on the subject focuses on determining where the functionality belongs, then adding it to it’s appropriate place. In that scenario, I had complete access to the code. Sometimes, however, you don’t have access to the code to make the change, or the implementation belongs to an interface. If the functionality is assign appropriately, it makes the code much easier to read.var lines = File.ReadAllLines("fil... (more)
category: Agile | clicked: 2 | comment | | source: www.kodefuguru.com
tags: Refactor, Refactoring
6
shouts

The F# Survival Guide

published 36 days, 1 hour, 43 minutes ago posted by KodefuGuruKodefuGuru 37 days, 11 hours, 51 minutes ago
Wednesday, February 10, 2010 10:29:29 AM GMT Tuesday, February 09, 2010 12:21:37 AM GMT
Welcome to the F# Survival Guide by John Puopolo with Sandy Squires. We wrote this book to introduce mainstream developers to the world of functional programming through the lens of F#, Microsoft's first fully-supported multi-paradigm language. In the spirit of a survival guide, this book covers all of the essential elements of functional programming and the F# language. In this regard, the book i... (more)
category: Foundation | clicked: 43 | comment | | source: www.ctocorner.com
tags: Ebook, F#
9
shouts

Mapping Relationships using Fluent nHibernate

published 36 days, 1 hour, 43 minutes ago posted by KodefuGuruKodefuGuru 37 days, 11 hours, 53 minutes ago
Wednesday, February 10, 2010 10:29:29 AM GMT Tuesday, February 09, 2010 12:19:43 AM GMT
In my last post I went over the basics of mapping properties on a POCO object to fields on a database table.   If you haven’t already check it out here.  In this post I’m going to focus on mapping relationships, that is, what if we wanted our objects to contain concrete references to the objects with which they have relationships, rather than just foreign key properties.One To One Relationships Take a look at the way we set up the File object in the previou... (more)
category: Agile | clicked: 41 | comment | | source: www.mattlong.com.au
tags: Fluent NHibernate, Mapping
8
shouts

ASP.NET MVC Performance II: Optimizing resources

published 37 days, 22 hours, 32 minutes ago posted by gpeipmangpeipman 39 days, 2 hours, 37 minutes ago
Monday, February 08, 2010 1:40:11 PM GMT Sunday, February 07, 2010 9:35:04 AM GMT
In my previous posting about ASP.NET MVC performance I showed you how to combine resources like scripts, style sheets and images. In this posting I will show you how to minimize resources so we don’t waste the bandwidth we got. (more)
category: ASP.NET | clicked: 95 | comment | | source: weblogs.asp.net
tags: ASP.NET, MVC, optimizing, Performance
9
shouts

Top 5 Common programming mistakes .NET developers must avoid !!

published 37 days, 22 hours, 32 minutes ago posted by http://amazedsaint.blogspot.com/http://amazedsaint.blogspot.com/ 38 days, 3 hours, 15 minutes ago
Monday, February 08, 2010 1:40:11 PM GMT Monday, February 08, 2010 8:57:43 AM GMT
Some time back, I asked a question in Stackoverflow.com, about common programming mistakes .NET developers must avoid. The response was awesome, to say the least. I’m just listing down the top 5 developer crimes I picked, from the answers I received (regardless the votes). (more)
category: Foundation | clicked: 79 | comment | | source: amazedsaint.blogspot.com
tags: .NET, C#, programmers, Software Develeopment
2
shouts

Two Microsoft Research Projects to Start the Robot Apocalypse

posted by KodefuGuruKodefuGuru 44 days, 10 hours, 36 minutes ago
Tuesday, February 02, 2010 1:36:46 AM GMT
I started writing this article with code in mind. It wasn’t until I put the pieces together that I realized the repercussions. The two projects I write about allow one to specify and create the robots to start the robot apocalypse. Warning: you might need Robotic Studio as well! Microsoft Research has a tendency to release things that require several cups of coffee to wrap my head around, and the TLA Toolbox is no exception. With it, you write PlusCal algorithms (get it right, it’s an algorithm language... (more)
category: Foundation | clicked: 5 | comment | | source: www.kodefuguru.com
tags: Concurrency, Microsoft Research, PlusCALC, Robotics Developer Studio, SIGMA, TLA+
9
shouts

A Tale of Two Principle Violations

published 52 days, 1 minute ago posted by KodefuGuruKodefuGuru 52 days, 7 hours, 10 minutes ago
Monday, January 25, 2010 12:11:40 PM GMT Monday, January 25, 2010 5:02:32 AM GMT
When I decided to write the With statement in Fluent.NET, I never imagined that I would encounter a common bug and school myself in principles that I happen to present on. But that is what occurred, and I want to share it so others can avoid the same mistakes I made. With is a Fluent version of Add, only it returns the object or interface it is acting upon rather than void. This allows you to chain methods together in a fluid manner. Instead of calling strings.Add(“Hello”); strings.Add(“World”);, you ca... (more)
category: Agile | clicked: 38 | comment | | source: www.kodefuguru.com
tags: Fluent Interface, Fluent.NET, Liskov
10
shouts

Refactor Switch to Dictionary

published 54 days, 56 minutes ago posted by KodefuGuruKodefuGuru 56 days, 16 hours, 20 minutes ago
Saturday, January 23, 2010 11:16:12 AM GMT Wednesday, January 20, 2010 7:52:52 PM GMT
In my post on Z3, I created an extension method for proving an equation. This extension method used a switch statement to analyze a result and return a string. This is a bad practice: the mapping of one type to another is trapped in code. What if I wanted to move this mapping to a configuration file, a resource file, or a database? Even if I didn’t want to do that, I feel an imperative switch statement isn’t as readable as a declarative statement. Favor Declarative over Imperative. Below is the original ... (more)
category: Agile | clicked: 38 | comment | | source: www.kodefuguru.com
tags: Declarative, Refactor, Refactoring
7
shouts

New Release of Pex and Code Contracts

published 57 days, 2 hours, 31 minutes ago posted by KodefuGuruKodefuGuru 57 days, 14 hours, 29 minutes ago
Wednesday, January 20, 2010 9:41:33 AM GMT Tuesday, January 19, 2010 9:43:10 PM GMT
Microsoft Research has released new versions of Pex and Code Contracts. You are required to go to DevLabs to download the commercial evaluation of Pex and Code Contracts. You can retrieve the academic version of Pex and Code Contracts from Microsoft Research.Pex Pex v0.21.50115.2 has a few bug fixes in it, but there is a major change to the Stubs framework. It has been renamed to Moles framework. ‘Stubs’ is now named ‘Moles’ and ‘Beaver’ is now named ‘Behaved’. Due to this change, any existing .stubx fi... (more)
category: Foundation | clicked: 37 | comment | | source: www.kodefuguru.com
tags: Code Contracts, Pex
4
shouts

Code Camp Raffleboard

posted by KodefuGuruKodefuGuru 58 days, 10 hours, 59 minutes ago
Tuesday, January 19, 2010 1:13:42 AM GMT
I’m sure one of the most tedious tasks for any conference organizer is to give away hundreds of swag at the end of the conference. By that point, you’re tired and you’re ready to go home. But it’s an essential closer for many people, so we do it any; drawing ticket after blue ticket. There must be another way. There is. CodeMash 2.0.1.0 solved this problem with a cool app called raffleboard. Since we’re doing a Code Camp on January 30th, I really wanted this application to help me give away prizes. I... (more)
category: Foundation | clicked: 2 | comment | | source: www.kodefuguru.com
tags: Code Camp, Tool
5
shouts

Find and Replace Text with Regex

posted by KodefuGuruKodefuGuru 64 days, 13 hours, 52 minutes ago
Tuesday, January 12, 2010 10:20:57 PM GMT
A common scenario you may be faced with is displaying text to a user that contains identifying information such as social security numbers. This is a pretty simple task in .NET if you know the correct class and methods to use. The first thing you’re going to need is a regular expression pattern. Here’s a simple one for a social security number: \d{3}-\d{2}-\d{4}. The next thing you should do is add a reference to System.Text.RegularExpressions. Now, we can get to coding.string text = "garbage text 123-... (more)
category: Foundation | clicked: 5 | comment | | source: www.kodefuguru.com
tags: Regex
8
shouts

Solve SMT Problems with Z3

published 63 days, 23 hours, 55 minutes ago posted by KodefuGuruKodefuGuru 65 days, 9 hours, 4 minutes ago
Wednesday, January 13, 2010 12:17:38 PM GMT Tuesday, January 12, 2010 3:08:21 AM GMT
Microsoft Research has released Z3 2.4. Z3 is a Satisfiability Modulo Theories problem solver. This is the first time I’ve downloaded Z3 and the first time I’ve researched SMT problems, so I’m unfamiliar with them at this point. Being a little curious as to what implications this could have for the .NET framework, I opened up the dotnet example. The it has a simple cs file and a build.cmd, so I built it. When I ran the resulting executable, I’m not sure if I received the expected output because parser_e... (more)
category: Foundation | clicked: 37 | comment | | source: www.kodefuguru.com
tags: Microsoft Research, Z3
9
shouts

Speaking at Cairo Code Camp

published 63 days, 23 hours, 55 minutes ago posted by KodefuGuruKodefuGuru 65 days, 13 hours, 58 minutes ago
Wednesday, January 13, 2010 12:17:38 PM GMT Monday, January 11, 2010 10:14:22 PM GMT
On February 27th and 28th, I will have the honor of speaking at Cairo Code Camp in Egypt. It is my first international speaking destination, and I hope to make the best of it by presenting two topics I feel are important to designing better systems.RESTful Data I’ve given this talk in many locations, but I’m updating it for WCF Data Services in .NET 4. The gist of the presentation is that developers want objects, not relational data, so give it to them. In the process, you will design a distributed, mul... (more)
category: Agile | clicked: 33 | comment | | source: www.kodefuguru.com
tags: Code Camp, Community, Speaker
6
shouts

Null Coalescing Assignment Operator for C# 5

published 67 days, 23 hours, 43 minutes ago posted by KodefuGuruKodefuGuru 69 days, 14 hours, 14 minutes ago
Saturday, January 09, 2010 12:29:34 PM GMT Thursday, January 07, 2010 9:58:22 PM GMT
If you read my article on the null coalescing operator (??), you’ve probably got a good idea on how useful it is. It makes your code more declarative, which makes it easier to read. But I find one thing disappointing about it, which I hope can be corrected in C# 5 with the introduction of a new operator. One way to use the null coalescing operator is by check a variable against itself, and if it’s null assign another value. Besides eliminating imperative code, this is great when combined with factory me... (more)
category: Foundation | clicked: 42 | 1 comment | | source: www.kodefuguru.com
tags: C# 5, Operator
10
shouts

What’s the deal with AsEnumerable?

published 67 days, 23 hours, 43 minutes ago posted by KodefuGuruKodefuGuru 70 days, 13 hours, 58 minutes ago
Saturday, January 09, 2010 12:29:34 PM GMT Wednesday, January 06, 2010 10:14:15 PM GMT
There’s an odd LINQ method that appears to do nothing but is actually quite useful: AsEnumerable().Declarations When using LINQ in C#, we typically use the var keyword as it beats typing IEnumerable (more)
category: Foundation | clicked: 61 | comment | | source: www.kodefuguru.com
tags: Linq
9
shouts

Is Fluent.NET the same as Mono.Rocks

published 70 days, 2 hours, 14 minutes ago posted by KodefuGuruKodefuGuru 71 days, 19 hours, 17 minutes ago
Thursday, January 07, 2010 9:58:06 AM GMT Tuesday, January 05, 2010 4:55:33 PM GMT
I came across a comment on dotnetguru.org about Fluent.NET that needs a response. rien de nouveau... Mono.rocks faisait déjà la même chose... http://www.mono-project.com/Rocks This translates to “nothing new… Mono.rocks was already doing the same thing.” I was aware of Mono.Rocks before I released Fluent.NET, so why did I bother? The difference is the purpose in the libraries. Fluent.NET exists to make the .NET framework more fluent. Extension methods and classes are added only if they ... (more)
category: Agile | clicked: 62 | 2 comments | | source: www.kodefuguru.com
tags: Fluent, Fluent.NET, Mono.Rocks, Open Source
7
shouts

Office 2010 Developer Training Kit Labs Overview

published 71 days, 22 hours, 40 minutes ago posted by KodefuGuruKodefuGuru 72 days, 11 hours, 23 minutes ago
Tuesday, January 05, 2010 1:32:31 PM GMT Tuesday, January 05, 2010 12:49:46 AM GMT
The Office 2010 Beta Developer Training Kit has been released, and it’s chock full of interested presentations, links to videos, and most importantly, labs. Here’s a rundown of the labs, which you could probably use to make a full-scale Office 2010 application.Getting Started with Office 2010 Development Build and debug a small Word 2010 add-in. Learn how to customize the Office ribbon and use the ribbon designer. This C# lab utilizes the new dynamic keyword and uses WPF data-binding with the SharePoint... (more)
category: Foundation | clicked: 18 | comment | | source: www.kodefuguru.com
tags: Office 2010, Office Addins, SharePoint 2010
8
shouts

Fluent.NET 1.0.0.0 Released

published 72 days, 22 hours, 55 minutes ago posted by KodefuGuruKodefuGuru 73 days, 14 hours, 4 minutes ago
Monday, January 04, 2010 1:17:35 PM GMT Sunday, January 03, 2010 10:08:57 PM GMT
The first release of Fluent.NET is in the wild. It’s not a lot right now, but it is useful, and it will grow as I come across .NET framework methods that should be more fluent. So perhaps I should explain what Fluent.NET is. As an English speaker (a fair assumption since you’re reading my blog), you probably read from left to right. Why then do we as C# developers read and write code from the outside in?File.WriteAllLines("new.txt", File.ReadAllLines("old.txt")); Fluent.NET adds extension methods to gi... (more)
category: Agile | clicked: 90 | comment | | source: www.kodefuguru.com
tags: .NET, C#, Fluent Interface, Open Source
8
shouts

Pair Has Changed But Is Not Going Away

published 74 days, 23 hours, 21 minutes ago posted by KodefuGuruKodefuGuru 77 days, 13 hours, 29 minutes ago
Saturday, January 02, 2010 12:51:52 PM GMT Wednesday, December 30, 2009 10:43:29 PM GMT
I wrote earlier about creating a factory method for KeyValuePair similar to the factory method in the Tuple class. Like the KVP, a two element Tuple is known as a pair as well. But did you know there exists another Pair class in the .NET Framework? (more)
category: Foundation | clicked: 36 | comment | | source: www.kodefuguru.com
tags: .net 4, Pair, Tuple
14
shouts

Moses' Blog | KiGG Design And Architecture – Part 3 The Core

published 77 days, 21 hours, 59 minutes ago posted by https://me.yahoo.com/mosessaur#7fe0dhttps://me.yahoo.com/mosessaur#7fe0d 79 days, 13 hours, 19 minutes ago
Wednesday, December 30, 2009 2:13:47 PM GMT Monday, December 28, 2009 10:53:38 PM GMT
Introduction In part 2, we explored KiGG project structure. I gave a short brief and summary about each project in the solution. And briefly discussed the relation between them. In this part we are going to start going much deeper. Staring with the Core, and this might take several parts by itself as the Core is huge and contains lots of stuff that worth to be discussed. Namespaces Before starting it worth to mention that the core is free of any default implementation that depends on and external or ... (more)
category: Architecture | clicked: 144 | 3 comments | | source: mosesofegypt.net
tags: DotNetShoutout, KiGG
Previous 1 2 3 4 5 6 Next