September 20, 2008

Instructions to keep in mind before developing an application

0 comments

1. Is it needed?
2. Where to start(Either bottom-up/top-down approach)?
3. Naming conventions
4. Is it extensible -- i.e., will it work for n
5. Reusability - can ur code will be used elsewhere?
6. Am i writing like a good programmer?
7. Performance issues - will it upgrade/degrade performance

September 19, 2008

Some Facts

0 comments

1. Honey is the only food that won't spoil

2.Bullet proof vests, fire escapes, windshield wipers and laser printers they have one thing common
----- they are invented by women
3. pig cannot look up into the sky

4. Butterflies taste with their feet

5.stewardesses is the only word that can typed with left hand

6. Rats multiply so quickly that in 18 months, two rats can have millions have of descendants

7. The ciggarette lighter was invented before the match box.

8. Elephants are only animals that cant jump

9.If a statue of a person in the park on a horse has both front legs in the air, the person died in battle.
If the horse has one front leg in the air, theperson died as a result of wounds received in battle.
If the horse has a all four legs on the ground, the person died of naturalcauses.

10. The strongest muscle in the body is tounge

Tips to remember

0 comments

The most important for a any programmer/software professional is
"knowing how to find what you need, when you need it"

C# - Access specifier for methods

0 comments

If you wirte a function in a class and dont specify any access specifier for that class, then the default access for that function is Private. Which implies that it is not accessible to any class(either child class or not) within that namespace or outside that namespace.

If you want everyone to access that function give it public access. If you want only child classes to access that function give it protected access.

Note:If you gave public access for that function and there default access for the containing class then you will not have access for that public function outside the namespace. This is because you have opened the room door(function is public) but u haven't opened the main door(class not public) for pupil outside the namespace

Display table data in reverse order

0 comments

Very rarely you can get into a situation where u want to show the table data in a reverse order i.e., last row displayed first, 2nd row will be last but one and so on....

The first thing that comes into mind for such a query is user order by with desc/asc.
But watch out baby in every case you cannot use order by. Even if u use, it might not show u the desired result.So what to do????????

Here is your solution


SELECT ROWID AS temp, * FROM emp ORDER BY temp DESC;


Dont forget to check out this stmt guyzzzzz

c# - Access levels within namespace

0 comments


Class Constructor Another Class
default default not accessible(cannot
create object)main door(class) is default opened
for others within namespace but not
the room door(constructor)
so they cannot open it.

default public accessible(can create object) - main
door(class) is default opened for others and you
have opened room door(constructor) also so
accessible.

public default not accessible - you made main door(class)
open not only for classes within the namespace but
also for others outside the namespace but you have
not opened the room doors so on one can access it.

public public accessible - Yep Congratulations you have
opened the main
door and also the room door so its accessible.

Caution: Be careful you can loose privacy in the last case

September 18, 2008

Hi

0 comments

This is my first experience writing something on the net n i m very nervous doing this.
Firstly i vud like to say "Hi" to everyone