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
Look at this mess the Death Borg made!
She ain't heavy, she's a mother
FINALLY, a New Orleans gathering: music, mayhem, beer snobs, and Bourbon Street
There are no good contraceptives
Poly Geek Relationship Disclosure Form
Freelance Contract
Hand
Corinth
Belgium
Kendra Smith Presents the Guild of Temporal Adventurers
An area the size of Wales
Tell me of the nature of love
Antique railroad pocket watches
Why are chimneys being demolished?
New Writeups
Scaevola
Risk in the Roman law of sale(idea)
semicolon
overheard at IHOP(event)
choirotey
Violent pickup lines(idea)
Ouzo
Blue Ovaries, Grrrrrrwl(log)
uncljoedoc
explanation(person)
Noung
One no longer loves one's insight when one communicates it(idea)
AspieDad
Pornology(essay)
nailbiter
Nicole duFresne(person)
Simulacron3
stigmergy(idea)
nakusavi
Yesterday I learned how to kiss(idea)
aneurin
UK Local Elections 2008(event)
Phyrkrakr
Kansas City Royals(thing)
niruena
Amalric of Bena(person)
niruena
Third Crusade(event)
Ariloulaleelay
I am a female android(personal)
This page courtesy of The Everything Development Company