30. June 2007

Programming Knowledge by Experts

UNIX is simple. But It just needs a genius to understand its simplicity.
–Dennis Ritchie

Good judgment comes from experience, and experience comes from bad judgement.
–Fred Brooks

Theory is when you know something, but it doesn’t work. Practice is when something works, but you don’t know why it works. Programmers combine theory and practice:Nothing works and they don’t know why.

It’s hard enough to find an error in your code when you’re looking for it; it’s even harder when you’ve assumed your code is error-free.
-Steve McConnell Code Complete

If builders built buildings the way programmers wrote programs, then the first woodpecker that came along would destroy civilization.
-Gerald Weinberg


The Six Phases of a Project:
Enthusiasm
Disillusionment
Panic
Search for the Guilty
Punishment of the Innocent
Praise for non-participants

Good code is its own best documentation. As you’re about to add a comment, ask yourself, ‘How can I improve the code so that this comment isn’t needed?’ Improve the code and then document it to make it even clearer.
–Steve McConnell Code Complete

The trouble with the world is that the stupid are cocksure and the intelligent are full of doubt.
–Bertrand Russell

No matter how slick(efficient) the demo is in rehearsal, when you do it in front of a live audience the probability of a flawless presentation is inversely proportional to the number of peoplewatching, raised to the power of the amount of money involved.

One of the main causes of the fall of the Roman Empire was that, lacking zero, they had no way to indicate successful termination of their C programs.
–Robert Firth

Fifty years of programming language research, and we end up with C++?
–Richard A. O’Keefe

C programmers never die. They are just cast into void.

If debugging is the process of removing bugs, then programming must be the process of putting them in.
–Edsger Dijkstra

You can either have software quality or you can have pointer arithmetic, but you cannot have both at the same time.
–(Bertrand Meyer)

There are two ways to write error-free programs; only the third works.
–Alan J. Perlis

Measuring programming progress by lines of code is like measuring aircraft building progress by weight.
–Bill Gates

Before software can be reusable, it first has to be usable.
–Ralph Johnson

The first 90% of the code accounts for the first 90% of the development time. The remaining 10% of the code accounts for the other 90% of the development time.
–Tom Cargill

Programmers are in a race with the Universe to create bigger and better idiot-proof programs, while the Universe is trying to create bigger and better idiots. So far the Universe is winning.
–Anon

As soon as we started programming, we found to our surprise that it wasn’t as easy to get programs right as we had thought. Debugging had to be discovered. I can remember the exact instant when I realized that a large part of my life from then on was going to be spent infinding mistakes in my own programs.
–Maurice Wilkes discovers debugging, 1949

I did say something along the lines of “C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do, it blowsyour whole leg off.”
–Bjarne Stroustrup

It has been said that the great scientific disciplines are examples of giants standing on the shoulders of other giants. It has also been said that the software industry is an example of midgets standing on the toes of other midgets.
–Alan Cooper About Face

Computers are useless. They can only give you answers.
–Pablo Picasso

If the code and the comments disagree, then both are probably wrong.
–attributed to Norm Schryer

Even if you’re on the right track, you’ll get run over if you just sit there.
–Will Rogers

Einstein argued that there must be simplified explanations of nature, because God is not capricious or arbitrary. No such faith comforts the software engineer.
–Fred Brooks, Jr.

As we said in the preface to the first edition, C “wears well as one’s experience with it grows.” With a decade more experience, we still feel that way.
–Brian Kernighan and Dennis Ritchie

Simplicity is prerequisite for reliability –Edsger W.Dijkstra

I’ve finally learned what “upward compatible” means. It means we get to keep all our old mistakes.
–Dennie van Tassel
(P.S: just like revision changes for hardware or new version release
for software)

Rules of Optimization:
Rule 1: Don’t do it.
Rule 2 (for experts only): Don’t do it yet.

-M.A. Jackson

Most software today is very much like an Egyptian pyramid with millions of bricks piled on top of each other, with no structuralintegrity, butjust done by brute force and thousands of slaves.
–Alan Kay

Every program has (at least) two purposes: the one for which it was written, and another for which it wasn’t.
–Alan J. Perlis

Technology is dominated by two types of people: Those who understand what they do not manage. Those who manage what they do not understand.
–Putt’s Law

Copy and paste is a design error
–David Parnas

Any code of your own that you haven’t looked at for six or more months might as well have been written by someone else.
–Eagleson’s law

The primary duty of an exception handler is to get the error out of the lap of the programmer and into the surprised face of the user. Provided you keep this cardinal rule in mind, you can’t go far wrong.
–Verity Stob

What happens When You Google ?

Click for Larger Image

15. June 2007

Google Recruitment Paper– Reason why Google Freshers are Highly Paid

Try out this google recruitment paper
 
Try solving these..
Do u know the reason why Google is paying so much for freshers..
This is the recruitment paper for freshers @ google.
1. Solve this cryptic equation, realizing of course that values for M
and E could be interchanged. No leading zeros are allowed.

WWWDOT - GOOGLE = DOTCOM

This can be solved through systematic application of logic.  For
example, cannot be equal to 0, since .  That would make , but , which
is not possible.
Here is a slow brute-force method of solution that takes a few minutes
on a relatively fast machine:
This gives the two solutions

777589 - 188106 == 589483
777589 - 188103 == 589486

Here is another solution using Mathematica’s Reduce command:
A faster (but slightly more obscure) piece of code is the following:
Faster still using the same approach (and requiring ~300 MB of memory):
Even faster using the same approach (that does not exclude leading
zeros in the solution, but that can easily be weeded out at the end):
Here is an independent solution method that uses branch-and-prune techniques:
And the winner for overall fastest:

2. Write a haiku describing possible methods for predicting search
traffic seasonality.

MathWorld’s search engine
seemed slowed this May. Undergrads
prepping for finals.

3.    1
     1 1
     2 1
  1 2 1 1
1 1 1 2 2 1

What’s the next line?
312211.  This is the “look and say” sequence in which each term after
the first describes the previous term: one 1 (11); two 1s (21); one 2
and one 1 (1211); one 1, one 2, and two 1’s (111221); and so on.  See
the look and say sequence entry on MathWorld for a complete write-up
and the algebraic form of a fascinating related quantity known as
Conway’s constant.
Read Complete contribution …

09. June 2007

Programmer Vs Non- Programmer

A non-programmer thinks there are 1000 bytes in a kilobyte.

A programmer is convinced that there are 1024 meters in a kilometer.

/***************************************************/

Ramu : I’ve just become a member of Rotract Club.

Somu : public member or private?

/**************************************************/

Ramu : Hey.. My submarine is not sinking into the water!! What could be
wrong?

Somu : may be u have used float instead of double in the software.

/**************************************************/

THIS ONE IS TOO GOOD!!!

PS : Hey Bull, Can you do me a favor? Can you pass on these 500 rupees to
Suthi..?

Bull : Sure.. Why not? But tell me one thing. Tell me whether its pass by
value or pass by reference.

/***************************************************/

Ramu : I am very very sure that the guy who just talked to me is a software
engineer…

Somu : how do you say that?

Ramu : he asked my physical address instead of my home address!

/***************************************************/

Ramu : why people are beating that SW engineer black and blue?

Somu : it seems, he asked one of them that whether “vande mataram” is new
kind of RAM in the market!

/**************************************************/

Ramu : Hey.. I think that SW engineer is very very naive..

Somu : How do you say that?

Ramu : He believes that there is an Arabian Sea++ next to Arabin Sea.

/**************************************************/

Ramu : Hey…. whats time now?

Somu : System time or local time.

/**************************************************/

And dont miss the last one, it’s THE BEST !

4 Easy Steps from dummies to Transfer Files in Windows!

Right click the mouse on the file to transfer and select cut option.

Disconnect the mouse from that PC, take that mouse carefully and connect it
to the other PC where you want to copy that file and try to paste it
there….!!!!!!!!!

24. May 2007

Bill Gates and Steve Jobs ( PC vs Mac) Fighting Video


02. May 2007

An Apple a day keeps …. away

apple.PNG

« Previous Entries   Next Entries »