Everything2
Near Matches
Ignore Exact
Full Text
Everything2

One character error

created by Agthorr

(idea) by Agthorr (2.5 y) (print)   ?   I like it! Wed Apr 12 2000 at 2:08:52

A particular type of programming mistake that can be incredibly difficult to find and fix. Since the error consists of only a single incorrect character, it can be extremely simple for the human eye to glance over without noticing.

An example in C:

int foo = 10;
while (foo);
{
   printf ("%d", foo--);
}

(idea) by MinaInerz (4.1 y) (print)   ?   I like it! Wed Apr 12 2000 at 2:35:48

I agree. I almost always put semicolons after my looping statements. Luckily, compilers are smart enough to tell me just how brain dead I am for making the same typing mistake about 50 times in my program. However, my biggest problem isn't the dread one character error problem. I usually rename my variables accidentally in my head, and it usually takes me hours to figure out exactly what it was that I did wrong.

For example, in Perl (note that the variables are usually not on the same screen):
$num_to_start = 5;
while ($num_to_start)
{
print $number_to_start++;
}

printable version
chaos

One of the most irritating things that can happen when talking One button off error use strict If I only had a brain
⋅ printf printf() Cookie Monster Munch
Japanese Character Encoding Formats foo debug Cheetara
Dormammu Nikola Tesla Final Fight Orientate
HTML While C int
kidney stone
Y'know, if you log in, you can write something here, or contact authors directly on the site. Create a New User if you don't already have an account.
  Epicenter
Login
Password

password reminder
register

Everything2 Help

Cool Staff Picks
Nodes your grandpa would have liked:
Classical Music Starter Guide
NSC-68
How to find something which has been lost
Oxford English Dictionary
War on Iraq 2003
The Bear FAQ
Valerie Solanas
Democracy in America
Arthur Schopenhauer
Wild at Heart
Aquatic Ape Theory
Peter Pan
Defending the honor of Johnny Cash
New Writeups
Transitional Man
Gus's Chalet(review)
minnow
.410 bore(thing)
shaogo
Phonautogram(thing)
Morkel
Changing your sexuality(idea)
teleny
Baron Samedi(person)
Ouzo
The Great Barbershop Race Wars(log)
Mannerisky
second language(essay)
aneurin
British Monomarks(idea)
FrankThomas
How and why do we (humans) have culture?(essay)
lee_cad
Isaac(person)
kalen
downvota(poetry)
Andrew Aguecheek
Wstfgl(thing)
ncc05
overheard at IHOP(event)
calgon
Bottomless(poetry)
lismaraxt
Ice Theory of The Origin of Life(idea)
E2 is a by-product of the existence of The Everything Development Company