Fun Enclave
 
Search 






Not a member?
Register now!



The Ten Commandments for C Programmers

This is a discussion on The Ten Commandments for C Programmers within the Fun Stuff forums, part of the The Fun Zone category; 1. Thou shalt run lint frequently and study its pronouncements with care, for verily its perception and judgement oft exceed ...

Comment
SocialTwist Tell-a-Friend   > The Fun Zone > Fun Stuff
<!-- google_ad_section_start -->The Ten Commandments for C Programmers<!-- google_ad_section_end -->
The Ten Commandments for C Programmers
Published by Dogbert
3 May 07
News The Ten Commandments for C Programmers

1. Thou shalt run lint frequently and study its pronouncements with care, for verily its perception and judgement oft exceed thine.

2. Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end.

3. Thou shalt cast all function arguments to the expected type if they are not of that type already, even when thou art convinced that this is unnecessary, lest they take cruel vengeance upon thee when thou least expect it.

4. If thy header files fail to declare the return types of thy library functions, thou shalt declare them thyself with the most meticulous care, lest grievous harm befall thy program.

5. Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.

6. If a function be advertised to return an error code in the event of difficulties, thou shalt check for that code, yea, even though the checks triple the size of thy code and produce aches in thy typing fingers, for if thou thinkest ``it cannot happen to me'', the gods shall surely punish thee for thy arrogance.

7. Thou shalt study thy libraries and strive not to re-invent them without cause, that thy code may be short and readable and thy days pleasant and productive.

8. Thou shalt make thy program's purpose and structure clear to thy fellow man by using the One True Brace Style, even if thou likest it not, for thy creativity is better used in solving problems than in creating beautiful new impediments to understanding.

9. Thy external identifiers shall be unique in the first six characters, though this harsh discipline be irksome and the years of its necessity stretch before thee seemingly without end, lest thou tear thy hair out and go mad on that fateful day when thou desirest to make thy program run on an old system.

10. Thou shalt foreswear, renounce, and abjure the vile heresy which claimeth that ``All the world's a VAX'', and have no commerce with the benighted heathens who cling to this barbarous belief, that the days of thy program may be long even though the days of thy current machine be short.
Thread Tools
Show Printable Version  Email this Page 

Latest 5 threads
  #1 (permalink)  
By dragonball on 3 May 07, 07:12 PM
Default Re: The Ten Commandments for C Programmers

nice. thjankyou very much
Reply With Quote
Comment

SocialTwist Tell-a-Friend


Similar Threads
Thread Thread Starter Category Comments Last Post
Lightbulb Jokes XTerminator Jokers Club 1 24 Mar 08 10:11 PM
Cannibal Programmers Boka Jokers Club 0 24 Oct 06 02:42 PM
Programmers skylark Jokers Club 1 13 Oct 06 04:33 PM
Smart Programmers Safin Jokers Club 5 19 Sep 06 08:57 PM
How jews got their ten commandments Harsh Jokers Club 2 13 Aug 06 01:26 AM

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT +5.5. The time now is 11:54 AM.
Photo ShootsEmail ForwardsClean JokesIndia TravelSMS Jokes

Sitemap |  Lite Gallery
Privacy Policy |  Terms of Service |  Rules
About FunEnclave.com

FunEnclave is your gateway to fun and entertainment. FunEnclave is a buzzing, clean and safe community that offers jokes, funny forwards, wallpapers, games, a discussion portal, fantasy leagues and a lot more.
Enjoy your stay and have Fun!
Copyright ©2009 FunEnclave.com, All Rights Reserved.
Thread powered by GARS 2.1.9 ©2005-2006 Design © Private Ryan, For FunEnclave.
vBulletin, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd. LinkBacks Enabled by vBSEO © 2009, Crawlability, Inc.
no new posts