Thursday, February 12, 2009

Murphy's Law of Computer Programming

Here are some of the wittiest laws defined by Murphy for Computer Programmers:
  • Any given program, when running, is obsolete.
  • Any given program costs more and takes longer each time it is run.
  • If a program is useful, it will have to be changed.
  • If a program is useless, it will have to be documented.
  • Any given program will expand to fill all the available memory.
  • The value of a program is inversely proportional to the weight of its output.
  • Program complexity grows until it exceeds the capability of the programmer who must maintain it.
And here are some of the extended laws:
  • Undetectable errors are infinite in variety, in contrast to detectable errors, which by definition are limited.
  • No matter how many resources you have, it is never enough.
  • If Murphy's laws are so true then how come I can log onto this site and submi............
    [connection reset - error message 928 ]
  • A patch is a piece of software which replaces old bugs with new bugs
  • It's not a bug, it's an undocumented feature.
  • No matter what problem you have with your computer - Its Always Microsoft's fault
    Corollary: If its not their fault - Blame them anyway :-)
And the last one is by me: Whenever your program does not work or your code is not working as per your expectation then the simple solution is to restart your computer.

Corollaries are welcomed for the above law ;)