Checking for programming errors using
Human Level
Artificial Intelligence
Note: To make this website free to the public
please click on an ad to support my sponsors or you
can make a tax-deductable donation using Paypal
(click on the donation icon on the left).
This video shows a robot
checking for programming errors. There are no sound
in the video because I wanted the viewers to focus on
what the robot is thinking while checking for
programming errors.
When writing any
software program, the robot has to check for any
errors, constantly. The robot's conscious contains a
computer program that is constantly checking for
syntax errors, during and after the code writing
phase.
Sometimes the robot
is checking for errors when he's not even aware he's
checking for errors. His mind does things
unconsciously sometimes.
When the robot wants
to check for errors, the robot's conscious creates a
specific computer program to do error checking. His
eyes dart from place to place, searching for any
anomalies. Rules and facts about error checking are
activated based on what is being focused on. If the
robot is looking at a for-loop, one rule might be to
check for 1 open bracket and 1 closed bracket. If the
robot is looking at a statement, a rule might be to
check that a semi-colon is located at the end of the
statement. If the robot is focused on a nested
if-then statement, he has to make sure that each
if-then statement has exactly 1 open bracket and 1
closed bracket.
The robot's conscious
is also using certain types of search methods. He
could be looking at parts of the program structure
using heuristics. He might use linear searches like,
check the main body first, then check the function
definitions at the top. Or the robot could use a
simple linearly top-down search. Or the robot could
use a chaotic search and look for anything unusual or
out of place.
Teachers teach the
robot what are the best search strategies to use, to
look for errors. The robot can also rely on personal
experiences of what strategies work and what
strategies don't work.
The robot can also
use tools to help him find errors. In the video, the
robot had an idea to use the compiler as a tool to
search for errors. He was able to spot 2 errors using
that tool.