Geek Humor

Geek humor: If you take a close look at the form Google filed with the Securities and Exchange Commission, the exact value of its planned offering is $2,718,281,828 dollars, which some would immediately recognize as the mathematical constant e.



Notes on Programming in C by Rob Pike

The following data structures are a complete list for almost all practical programs:



array

linked list

hash table

binary tree



Of course, you must also be prepared to collect these into compound data structures.

Rob Pike

Just to check

char p[]={0x4F,0x20,0x52,0x20,0x53,0x65,0x6E,0x74,0x68,0x69,0x6C,0x20,0x4B,0x75,0x6D,0x61,0x72,0x61,0x6E,0x00};

used man ascii and learnt some...

lucubration

lucubration \loo-kyoo-BRAY-shun; loo-kuh-\, noun:

1. The act of studying by candlelight; nocturnal study; meditation.

2. That which is composed by night; that which is produced by meditation in retirement; hence (loosely) any literary composition.

Programming Humor



  • "The primary purpose of the DATA statement is to give names to constants; instead of

    referring to pi as 3.141592653589793 at every appearance, the variable PI can be given

    that value with a DATA statement and used instead of the longer form of the constant.

    This also simplifies modifying the program, should the value of pi change."

    - FORTRAN manual for Xerox computers

  • "Programming graphics in X is like finding sqrt(pi) using Roman numerals."

    - Henry Spencer

  • Real programmers are surprised when the odometers in their cars don't turn from 99,999 to A0000.

  • Any sufficiently advanced bug is indistinguishable from a feature.

  • COBOL programmers understand why women hate periods.

  • Computer interfaces and user interfaces are as different as night and 1.

  • If God had intended humans to program, we would be born with serial I/O ports.

  • There are two ways to write error-free programs; only the third one works.



Swapping variables without dummy

This seems to be Old Programming School Practise. Came to know from Ariya.



a ^=b;

b ^=a;

a ^=b;



In C Programming, ^ stands for Exclusive OR.



Lets expand this expression and denote an and bn for new values of a and b then,



bn = b xor ( a xor b) = b xor a xor b = a

an = a xor ( b xor a) = a xor b xor a = b



Unix and Internet Fundamentals HOWTO

ESR's HOWTO on Unix and Internet Fundamentals is very good. It was crisp and effective.

Will give a good start for any beginner and also may bridge the gaps when you have a rough idea.

This was not just about Unix and Internet, but about Computers, OS and all the basic things one needs to be aware of.



Read the Linux Reading List HOWTO also by the same author.





FOLDOC entry to edit:clause

FOLDOC entry to edit: [Yuanqing Zhu [drinking201ATyahoo.com.cn]: clause]




This is a logic programming thing. Needs a bit more explanation I think.



------- Start of forwarded message -------

From: Yuanqing Zhu [drinking201ATyahoo.com.cn]

To: Denis Howe [dbhATdoc.ic.ac.uk], Yuanqing Zhu [rinking201ATyahoo.com.cn]

Subject: clause

X-Host:

X-Url: sendnew

X-Browser: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)

Sender: Denis Howe

Date: Fri, 26 Dec 2003 07:31:53 +0000



clause



definition of clause:the disconjuction form of literals reference:Microsoft Computer Dictionary



------- End of forwarded message -------



--

Denis Howe

Free On-Line Dictionary of Computing

http://www.foldoc.org/




Need to Complete this by 7 th of May.

As before, you are welcome for discussion on this topic.

fourth generation language

I was given a oppurtunity to edit a FOLDOC entry.

I am happy to see it published now. You may enjoy reading the definition about 4GL.




Here is format I submitted sometime December last week of 2003.( It was during /on Christmas)



fourth generation language



(4GL) An "application specific" language, one with built-in knowledge of an application domain, similar to {SQL} having the built-in knowledge of database domain.

The term was invented by Jim Martin to refer to {non-procedural}{ high level languages} built around {database} systems.

The fourth generation language (4GL) was designed to be very close to natural language to ease the programming process and with the idea that certain applications could be generalised by adding limited programming ability to them.



The fourth generation language are called Report Generated languages, because when fed a description of data format and the report to generate,they turned that into a {COBOL} ( or another 3GL,which actually contained the commands to read and process the data) and placed the results on the page.



Some examples of 4GL are : {SQL}; {Focus}, {Metafont},

{PostScript}, {S}, {IDL-PV/WAVE}, {Gauss},

{Mathematica}; and {data-stream languages} such as {AVS},

{APE}, {Iris Explorer}.




Enjoy the Formal entry here: 4GL

Thanks!

BTW, FOLDOC really great and helping me improve my knowledge in Computer Science.

Thanks Denis Howe!