ZX-News #11
29 октября 1996
  Юмор  

Humor - The theory of errors.

<b>Humor</b> - The theory of errors.
                   Humor



     Prepared for publication in ZxNews

                Ilya Fomin



              Error analysis

 Errors as inexhaustible as the atom.


   Axiom. In any program there are bugs.

   The law of proportionality. The more essential is the 
program, the more webite.


    Consequence. Errors are not only totally unnecessary 
program. 


   Fundamental law of the theory of errors. On
error learning.

    Corollary 1. The programmer who wrote
program becomes a scientist.

    Corollary 2. The more a programmer
makes mistakes, the faster it becomes
scientists.

    Corollary 3. Prominent scientist-programmer never wrote the 
correct program. 

    Note. That's why he and a scholar.


  Specifying a novice programmer.

   If you are the first time managed to write a program in 
which the translator is not found a single mistake, please 
inform This system programmer - it is correct

errors in the compiler.



       Law of the inevitability of mistakes.


   The programmer can detect an error
only in a foreign program.

    Consequence. Error does not care who it
detect.


  Council novice programmer.

   Do not fix bugs, since this would entail the emergence of
unknown number of unfound. It is better to describe them in the 
accompanying documentation as a feature of the program.




               Language errors


   Definition. We call the rules of language errors, bypassing 
that write programs. 


   Errors can follow each other.


   On the permutation of two equivalent error does not change 
the result (commutativity equivalent errors).



   Two consecutive errors can unite into a single, more serious.


   Similar mistakes do not necessarily
anew each time, enough to make one and then refer to it as 
needed from anywhere. 


   Errors may form cycles. The most stable of them - endless.


   Errors can call each other and themselves
itself (recursive errors).


   Errors allow for multiple attachment
each other.


   Two identical nested error is called even bugs and errors 
are not. 


   Property of the parity errors. If you write a program worked 
correctly, then it means that during its operation was executed

even number of errors or the programmer did not understand the 
job. 


   The wording of the above properties,
intended for policy makers.


    Mistake, repeated twice, stops
be a mistake.



     Interaction with basic errors

          operating system.


   Errors during the execution of the highest priority.


   Abort execution errors can only
another, more active fault.


   Queries the operating system errors
errors can be ignored.


   When you work with files mistakes can use the file system 
underlying OS and its errors.



   On a computer with the right architecture can
run a few mistakes at the same time.



           System Program


   System programs make it easier to
writing application programs and their mistakes.


   Definition. Testing - a process
finding errors in the test. A good test
must contain errors, compensating them
shortages in the test program.


   Language editor, designed to protect
programmer from syntax errors
allows you to make the program very clever bugs that can not 
find any compiler or debugger. Plain text editor such 
opportunities does not provide.



   Program-translator designed
to transfer programs from a language of high
level computer language, the translation generates the error. 
Errors that were contained in the original description, 
translated correctly. 


   Final advice to those who before him
reached.

  Before the start of the project should be
carefully consider all the errors
and links between them. This will greatly simplify the work on 
the bugs in the project. 


          __________________________






Other articles:

Iron - digitize the music on ZX: General Sound, AY-scale, COVOX, Sound Drive - how they work.

Games - An overview of new programs: Shadow Danger, Song in Lines 5. Description of the game "Poker dice."

News - Firm "Scorpion" released SMUC (Scorpion & Moa Universal Controller) - to connect to the ZX hard drive, Hayes-modem connection CMOS-clock and NVRAM (nonvolatile RAM).

From the authors - How to prepare the newspaper.

Letters - A letter from the Army.

Advertising - Advertisements and announcements ...

List BBS - A list of current BBS in the city of St. Petersburg.

Hit Parade - the top 10 programs on the basis of sales of firm Welcome.

Humor - The theory of errors.


Темы: Игры, Программное обеспечение, Пресса, Аппаратное обеспечение, Сеть, Демосцена, Люди, Программирование

Similar articles:
Likbez - Batteries. Results of experiments with different batteries.
Interview - Kano.
Pro-overview - CC1 music or 'it was in the evening ...' - Gas 13 vs Nik-O.

В этот день...   29 April