- Topic goal: immediate goal at hand
- Relational goal: how I want to compare with the other person
- Identity goal: how I want myself to look like
- Process goal: what process I want to take in achieving my goal
February 5, 2011
Goals
There are four types of goals:
Labels:
conflict management,
goal,
identity,
process,
relational,
topic
January 3, 2011
October 17, 2010
True Love
Sometimes I feel "true love" doesn't exist. The ones seen are only in favorable circumstances, or are a forced continuation of simulation due to stubbornness.
Labels:
favorable circumstances,
love,
quotes,
simulation,
stubbornness,
Subodh,
true love
Relationship & Misunderstanding
No relationship is invulnerable to misunderstanding.
Labels:
misunderstanding,
quotes,
relationship,
Subodh,
vulnerability
Life & Death
Life is the beginning of Death. Death is the beginning of Life.
Labels:
Death,
Life,
Life and Death,
quotes,
Subodh
Advertising
While the fundamental intent of advertising was recognition, it continues to be deception.
Labels:
advertisement,
advertising,
deception,
quotes,
recognition,
Subodh
October 8, 2010
Puzzle Buddies - One puzzle a day: Tight Corner - Puzzles and Brain Teasers
Puzzle Buddies - One puzzle a day: Tight Corner - Puzzles and Brain Teasers: "Puzzle: A King asked one of his prisoners, 'State a sentence. If it is false, you will be hanged. If it is true, you will be shot to death.'..."
February 3, 2010
Events versus Methods
I found it interesting how events and methods compare.
A class can be viewed from the perspective of the provider or the consumer.
Provider (designer of the class)
A class can be viewed from the perspective of the provider or the consumer.
Provider (designer of the class)
- Implements methods
- Invokes events
- Implements events
- Invokes methods
January 19, 2010
Shattered Dreams
Shattered dreams! I'd never sort it out.
I'd never thought it would happen in my life.
Feeling sorry, wouldn't set it right,
Can't see how to make it by myself.
Then Jesus called me, "Come in here, oh my child. I've been waiting here for you for so long, to make up your mind."
And then He told me, "Now I give you peace of mind."
Oh what joy! Oh what peace! I cannot describe!
A time will come and I'd receive eternal life.
I'd never thought it would happen in my life.
Feeling sorry, wouldn't set it right,
Can't see how to make it by myself.
Then Jesus called me, "Come in here, oh my child. I've been waiting here for you for so long, to make up your mind."
And then He told me, "Now I give you peace of mind."
Oh what joy! Oh what peace! I cannot describe!
A time will come and I'd receive eternal life.
I'd never thought it would happen in my life.
Golden Rule
Rules are made with a goal in mind
Not the goal with rule
Rules just help achieve a goal
So do exceptions to the rule
Rules just play an intermediary role
Even dominate the scene
But follow rules at the cost of goal
And forget you'll ever win
Not the goal with rule
Rules just help achieve a goal
So do exceptions to the rule
Rules just play an intermediary role
Even dominate the scene
But follow rules at the cost of goal
And forget you'll ever win
January 14, 2010
Facts of Life
- While the fundamental intent of advertising was recognition, sadly, it continues to be deception.
- Life is the beginning of Death; Death is the beginning of Life.
- Nothing is smarter than learning from other people's mistakes.
- You deserve what you choose.
- Victory should come as a joy, but failure mustn't come as a shock!
- When words belie action, judge by motive.
- Only the sober should attempt the irrevocable.
- You only need to know the value of time in order not to pay for it!
- Only YOU can teach only YOURSELF!
- In business, there is no substitute for money!
- No relationship is invulnerable to misunderstanding.
- Your conscience wields your eyes!
- Behave, as you expect!
- You can't drive anyone to sainthood.
- Sometimes I feel, there is nothing called "true love" and that the ones seen are only in favorable circumstances, or are a forced continuation of simulation due to stubbornness.
- Never disclose your ambitions to those who have a habit of choosing it for others.
- Listen to all, believe some, but trust none.
January 13, 2010
Multiple Inheritance in C#
“Does C# support multiple inheritance?” is a question we have all come across at some time or the other. And the standard answer to it is "No", or “Yes, using interfaces”. That’s where it usually stops.
However, let me challenge you again with “How?”
Typically inheritance would mean the following:
· The derived class Inherits the members of the base class along with the implementation
· It can override one or more of them
· The base class can be substituted for the derived class
If these conditions are fulfilled, we can safely say there is simulated inheritance. In case of multiple inheritances the same some should hold true of the derived class for each of the base classes.
Can interfaces help us achieve these? Let us find out.
I guess an example would be in order.
Let us take three classes which are defined as follows:
At this point, since we already Alarm and Watch classes defined, wouldn’t it be a good idea to be able to inherit them into the CellPhone class?
Since C# doesn’t allow us the luxury of declaring
CellPhone: Alarm, Watch
...we have to find an alternative, that is interfaces.
CellPhone: Alarm, Watch
...we have to find an alternative, that is interfaces.
By the way, did you know that it is possible to re-factor a class in Visual Studio to automatically extract an interface?
Now our classes look like this.
We should now implement the interfaces in CellPhone which now becomes…
In the CellPhone class we used the Alarm and Watch classes to implement the interfaces for us.
Let us see whether we have achieved (read simulated) inheritance for both Alarm and Watch classes.
- The derived class CellPhone Inherits the members of both the base classes Alarm and Watch along with the implementation
- It is possible to override any of members of IAlarm and IWatch in the CellPhone class
- The base classes (interfaces in this case) IAlarm and IWatch can be substituted for the derived class
There! We have achieved (read simulated) multiple inheritance!
P.S. A lot of comments indicated that this is not inheritance. Yes, I agree. That is the very reason this blog was created to help developers simulate it artificially using interfaces.
P.S. A lot of comments indicated that this is not inheritance. Yes, I agree. That is the very reason this blog was created to help developers simulate it artificially using interfaces.
Labels:
C Sharp,
C#,
implementation,
interface,
multiple inheritance
January 5, 2010
Self Control

Lord, teach me howTo have fun without follyTo have self-respect without prideTo relax without laziness
Lord, teach me howTo be friendly, not fickleCheerfulness without vanityTo be strict, not be fanatic
Lord, teach me howTo economize, not miseryTo have seriousness without gloomTo have fun, not be silly
Labels:
cheerfulness,
economy,
fanaticism,
fickleness,
folly,
friendliness,
fun,
gloom,
laziness,
misery,
pride,
relaxation,
self-control,
self-respect,
seriousness,
silliness,
strictness,
vanity
Subscribe to:
Posts (Atom)
