Andrew Plotkin

I have been programming since like 1985 and I just realized this minute that a "corner case" is, like, where an edge case hits another edge case and gets even weirder. I've been using "edge case" and "corner case" as synonyms without ever thinking about it.

@zarfeblong me too, mind = blown

now if there's a camel in the corner..

@loke @zarfeblong a bad pun involving Smalltalk capitalisation style

@loke @natecull @zarfeblong an edge case is where one parameter being at an extreme tickles a bug. A corner case is an interaction of multiple parameters being at extremes.

@zarfeblong The analogy with geometry goes farther, possibly without becoming completely silly. We can think about edge cases as surfaces (loosely speaking) in some high dimensional program state space. In the arrangement of these surfaces there is then "faces" of varying dimension, with the corner cases have as many edge cases intersecting as state variables.

@zarfeblong I want to believe these terms came from early robotics research

@zarfeblong Cone case: when your edge cases are so numerous that they form what appears to be a continuous surface, converging at one point of near-infinite suck.
Sign in to participate in the conversation
Gamedev Mastodon

Game development! Discussions about game development and related fields, and/or by game developers and related professions.