gotcha

(redirected from gotcher)
Also found in: Dictionary.

gotcha

(jargon, programming)
A misfeature of a system, especially a programming language or environment, that tends to breed bugs or mistakes because it both enticingly easy to invoke and completely unexpected and/or unreasonable in its outcome.

For example, a classic gotcha in C is the fact that

if (a=b) code;

is syntactically valid and sometimes even correct. It puts the value of "b" into "a" and then executes "code" if "a" is non-zero. What the programmer probably meant was

if (a==b) code;

which executes "code" if "a" and "b" are equal.
Mentioned in ?
References in periodicals archive ?
Gotcher (2010) "Conflict-coordination learning in marketing channel relationships: The distributor view", Industrial Marketing Management, Volume 39, Issue 2, February, Pages 287-297.
McMillan, who is coaching elite marathoners induding Brett Gotcher and Stephanie Rothstein, offered four ideas for the future of American marathoning: recruit Africans (two of our three Olympic marathon male qualifiers are originally from Africa); provide incentives to keep talent in the sport; change the prize money dynamic; and develop radical training changes.
"Gotcher!" said Russell, throwing the chalk at Wittgenstein.
The Oasis Dream filly has taken a big step forward since being sent back to the minimum trip by Sir Michael Stoute, including when beating Gotcher by a length and a half at Haydock last time.
This year's honouree is Digidesign, a pioneering digital technology company formed in 1984 by Peter Gotcher and Evan Brooks.
Gotcher (e-mail: rgotcher@shst.edu) Sacred Heart School of Theology, Hales Corners, Wisconsin
I mean, you gotcher Larses, yer Leifs, yer Gustavs and Gunthers.
Cindy Carter, Michael Gotcher, Christine Hauck, Deborah Soetenga
Alan Gotcher, president and CEO of Altair Nanotechnologies.
"There is no better, or more respected partner for entering the pigment market than the Sherwin-Williams Company," said Alan Gotcher, president and CEO of Altair Nanotechnologies Inc.
Specific research analyzing the content and structure of messages provided to teens about romantic and sexual relationships, demonstrated popular magazines' tendency to inculcate girls with the message that physical appearance and romantic relationships were critical aspects of life (Duffy & Gotcher, 1996).