Training, Open Source computer languages

PerlPHPPythonMySQLhttpd / TomcatTclRubyJavaC and C++LinuxCSS

Search our site for:
Home Accessibility Courses Diary The Mouth Forum Resources Site Map About Us Contact
Cardinal numbers and magic numbers
A cardinal number, in computing terms, is a term that's sometimes used to refer to a fixed condition - in other words, you might call a function with one parameter should of the usual number, and the final value will be assigned a cardinal number that can't occur there in reality. For example, you might call a function into which you input the number of children a person has, and if no value is entered the value could be set to a cardinal 999 that's checked for by the code. Should work, shouldn't it? After all - no-one could have 999 children. And it would work fine until the local headmaster, with a role of 1 short of 100 students, runs it on his hordes

A magic number is formed of certain bytes at the start of a file which signify the content type in the file. For example, the first three bytes of a .gif image file are GIF. The Unix and Linux file command uses magic numbers to identify content type.
(written 2006-12-14 16:48:54)

 
Associated topics are indexed under
A101 - Web Application Deployment - Linux -An Introduction For Users

Back to
Blessing in Perl / Member variable in Ruby
Previous and next
or
Horse's mouth home
Forward to
Equality in Ruby - == eql? and equal?

Some other Articles
You should think you're first in a hotel room
Ruby v Perl - interpollating variables
puts - opposite of chomp in Ruby
Equality in Ruby - == eql? and equal?
Cardinal numbers and magic numbers
Blessing in Perl / Member variable in Ruby
Notes from the white board
Finalist reception - Wiltshire Business of the Year
Street Scene
Empty seats, Nodding Donkeys and buses
1636 posts, page by page
Link to page ... 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33 at 50 posts per page


This is a page archived from The Horse's Mouth at http://www.wellho.net/horse/ - the diary and writings of Graham Ellis. Every attempt was made to provide current information at the time the page was written, but things do move forward in our business - new software releases, price changes, new techniques. Please check back via our main site for current courses, prices, versions, etc - any mention of a price in "The Horse's Mouth" cannot be taken as an offer to supply at that price.

Link to Ezine home page (for reading).
Link to Blogging home page (to add comments).

© WELL HOUSE CONSULTANTS LTD., 2008: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • FAX: 01144 1225 707126 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho