Geeks With Blogs

News

Currently Reading

CLR via C#m

Under The Influence(of code) Abhijeet Patel's blog November 2008 Entries
Interfaces Vs. Delegates
This is a constant battle I fight in my head when I'm designing something. MSDN has an answer: When to use Delegates Instead of Interfaces, but it is nowhere as complete as I thought it should be. Good Object Oriented Design dictates using interfaces to decouple contracts from implementations.The premise is to enable substituting different implementations of an interface.Nothing new here just plain old good design guidelines. With the introduction of delegates in .NET 2.0 and lambdas in .NET 3.5 ......

Posted On Monday, November 24, 2008 9:52 PM

C# Method overloading trivia
The overload resolution rules in C# can be a bit tricky. Following is a code snippet which finds the Max between 2 numbers. using the System.Math libraries. public double Max(double d1, double d2) { Console.WriteLine("In Max(double,double)"); return Math.Max(d1, d2); } public int Max(int i1, int i2) { Console.WriteLine("In Max(int,int)"); return Math.Max(i1, i2); } public T Max<T>(T t1, T t2) where T : IComparable<T> { Console.WriteLine("In Max<T,T>"); return t1.CompareTo(t2) > ......

Posted On Thursday, November 20, 2008 9:43 PM

PDC 2008 wrapup
I finally decided to write a post about attending PDC. There are so many great posts out there about PDC that do a great job of describing the overall experience. Bill Wagner has a great post on his blog, and so does Rick Strahl. The overall experience was really great and the quality of the sessions were very professional and the presenters did an excellent job in delivering the most information in the alloted time.There are still a bunch of sessions that I wish I could have personally attended ......

Posted On Monday, November 17, 2008 11:28 PM

Visitor.. What's in a visit anyways...
Recently I was reading Judith Bishop's C# 3.0 Design Patterns. The book has been a good read so far.The Visitor pattern implementation in the book however is implemented "classically" wherein each element of the structure being iterated over has an Accept operation which accepts an instance of a Visitor type. When the client invokes the operation on the Visitor which is supposed to kick start the visiting,the Visitor iterates over each element of the structure in some way and invokes the Accept operation ......

Posted On Wednesday, November 12, 2008 10:48 PM

The beginning....
Welcome to the very first post of Under The Influence (of code). I am Software Design Engineer based in SF Bay area. I have a deep and keen interest in Computer Science and Software Engineering. I've been wanting to start blogging for a long time now, but haven't been able to do so either due to schedule pressures an/or personal commitments and/or the lack of motivation thereof. I tend to do a lot of code prototyping and recently I was in need to some stuff I had proptotyped a while back, I searched ......

Posted On Tuesday, November 11, 2008 10:10 PM

Copyright © Abhijeet Patel | Powered by: GeeksWithBlogs.net