Banana Problem

Why Trust Techopedia

What Does Banana Problem Mean?

A banana problem, in IT, describes an algorithm, piece of code or technology artifact that has vague delimiters or problems with definition or scope. A banana problem may be similar to a fencepost error, which is described as a “problem with the discrete equivalent of a boundary condition.”

Advertisements

Techopedia Explains Banana Problem

In a banana problem, it is difficult to tell where a program is supposed to stop. The phrase comes from a joke about the word banana, in which a child says: “I know how to spell banana, but I don’t know when to stop.” Likewise, in a conventional fencepost error, people or machines make mistakes on estimating where a boundary is. Programs with iterative loops can be vulnerable to fencepost errors, where a designer or developer miscounts and causes a code problem. The term “banana problem” can be used loosely to refer to a range of similar design problems.

Advertisements

Related Terms

Margaret Rouse
Technology expert
Margaret Rouse
Technology expert

Margaret is an award-winning writer and educator known for her ability to explain complex technical topics to a non-technical business audience. Over the past twenty years, her IT definitions have been published by Que in an encyclopedia of technology terms and cited in articles in the New York Times, Time Magazine, USA Today, ZDNet, PC Magazine, and Discovery Magazine. She joined Techopedia in 2011. Margaret’s idea of ​​a fun day is to help IT and business professionals to learn to speak each other’s highly specialized languages.