JotD / QotD Ελληνική Λίστα Ανεκδότων (JotD)


Θέμα: Fixing Bugs Algorithm...



(nil): Andrew Floros (floros(@)wcl.ee.upatras.gr)
Ημερομηνία: Παρ 11 Απρ 1997 - 06:51:15 EEST

EVERY PROGRAM STARTS OFF WITH BUGS.

Many programs end up with bugs as well. There are two corollaries to this:
first, you must test all your programs straight away; & second, there's no
point in losing
your temper every time they don't work. The general plan can be illustrated
with this algorithm: (translated from flowchart)

-- Start
-- Write program with as few bugs as possible
loop
-- test the program
if( program works perfectly )
done;
else
-- keep your hair on
-- Find the bugs
-- Fix them, introducing as few new ones as possible.
endif
endloop
--------------------------------------------
           Andrew Ch. Floros
  Electrical & Computer Engineer
     Wired Communications Lab.
                 Audio Team
      University of Patras, Hellas
E-mail: floros(@)wcl.ee.upatras.gr
-------------------------------------------


Γραφτείτε και εσείς στην Ελληνική Λίστα ανεκδότων (JotD) και στείλτε τα ανέκδοτά σας!!!

Επιστροφή στον κεντρικό κατάλογο αυτού του αρχείου