Thursday, March 20, 2008

ICloneable, IEquatable , IComparable

ICloneable:

A nice read on on deep , shallow copy and the interface implementation

IEquatable

IEquatable.Equals vs. System.Object.Equals

The IEquatable.Equals method is very similar to Object.Equals. However, IEquatable.Equals is type-safe and generic—requiring no boxing and unboxing.


IEquatable vs. IComparable

At first glance, the IEquatable interface appears very similar to the IComparable interface. But, whereas IEquatable returns a bool representing only whether the instances are equal or not, IComparable returns an inthow the instances differ—whether smaller, equal or larger. indicating

Via - CSharp-Online

ASP.NET
3/20/2008 7:29:40 PM (GMT Standard Time, UTC+00:00)  #  Comments [0] 

if else alternative
Cool alternative for nested if else using ternary operators



3/20/2008 6:46:51 PM (GMT Standard Time, UTC+00:00)  #  Comments [0] 
 Wednesday, March 12, 2008
 Monday, July 02, 2007

SQL Server Interesting Links

Interesting piece on SQL server Myths- Jason Haley

talk abt SQL server myths on truncate commands, where a sql table variable is stored, etc

SQL server error handling, and a must read

 


ASP.NET | SQL
7/2/2007 1:57:02 AM (GMT Daylight Time, UTC+01:00)  #  Comments [0] 

.Net 2.0 IsStringNullOrEmpty Bug

Beware using IsStringNullOrEmpty in .Net 2.0. This bug could easily slip out of the developers hands, as we use IDEs almost always.


ASP.NET
7/2/2007 1:10:52 AM (GMT Daylight Time, UTC+01:00)  #  Comments [0] 

SQL - Parsing delimited string

Here is a cool function to parse delimited string input to SQL stored proc.[thru Jason Haley]


SQL
7/2/2007 12:53:48 AM (GMT Daylight Time, UTC+01:00)  #  Comments [0] 
 Tuesday, April 24, 2007

How to name it?
I do not remember when the last time I had so much time in my hands. It gives me so much time to contemplate on the various things I have done over the recent past. Lots of time to move around. Things are a bit different here. Roads, malls, theatres, gas stations, all have subtle differences. I wonder if anyone even notices those. I have 1000 things in my mind, am not sure which one to write it down here.


General
4/24/2007 5:43:27 AM (GMT Daylight Time, UTC+01:00)  #  Comments [2] 
 Friday, April 20, 2007

Time - Out
There has been a lot of interesting things going on in my life, needless to say I am busy. Hence, I am off the blogosphere for a bit.



4/20/2007 12:30:55 AM (GMT Daylight Time, UTC+01:00)  #  Comments [1] 
 Sunday, March 25, 2007

Egoless programming

One of the things I learnt from my first job is, if you differ from your colleague(s) on anything, check if you are differing or your ego is. The "incident" that lead to this was an eye opener, it showed us(team) how different people could be and how pre-conceived false personal notions could be affecting communication. Also the things that lead after that "incident" proved that you don't lose anything by apologizing or offering a sorry for a mutual mistake. I know I am still not best at this. Also over the course of years I learned that an intern would have a better(uncorrupted) grasp of concepts than a guy who has worked on some technology for years.

Guys like Jeff Atwood, make me not blog. At any moment there are atleast 50 feeds that are waiting for me to read and If I am not working on something cool, the passion to blog is zero.

Having said this Jeff Atwood has compiled an awesome list of pointers that are worth a read for any programmer.  Let me try to give the links that I liked from his compilation, with my words and a couple of my rants. I know I am not perfect, but....

  • Understand and accept that you will make mistakes. Never take things personal.
  • Being Humble teaches you a lot than being head strong.
  • Ask Questions.
  • You are not your code. If someone judges you by your code, then GOD help him.
  • Treat people who know less than you with respect, deference, and patience, even if they are juniors to you.
  • The only true authority stems from knowledge, not from position or years of experience.
  • Don't try to dump your knowledge into someone who doesn't care. This is just an utter waste of time.
  • Fight for what you believe, but gracefully accept defeat. There is no harm in saying "I was wrong" or "I am sorry"
  • Share your knowledge whereever possible
  • Don't be the guy in the room.
  • Don't restrain yourself from raising red flags, you can never be a leader if you cannot speak your mind (this could be scope creep, staffing or lack of leadership/direction)
  • Make hard problems look easy(I know this is tough, at times, but still)
  • Dont over-analyze things, get your hands on.
  • Your colleagues are your best teachers
  • Some people are -------(add the adjective of your choice here).
  • NEVER fake being nice, friendly, honest.
  • NEVER EVER under estimate yourself. Everyone gets a chance to shine or to walk out of the door
  • SMILE  - It can do wonders to people you work with.

Credits : Dare Obasanjo, Omar Shahine, Michael McDonough, Andres Taylor

   


General
3/25/2007 6:24:19 AM (GMT Daylight Time, UTC+01:00)  #  Comments [0]