Brilliant Bloopers: Code Bloopers 1
A showcase of our most brilliant, yet bewildering code snippets.
Back to Featured Bloopers Next Code BloopersExample 1: The Infinite Loop
while(True) {
print("I'm stuck in this loop")
}
This code will print "I'm stuck in this loop" forever, or until the heat death of the universe.
See Another ExampleExample 2: The Infinite Function Call
function callMyself() {
callMyself()
}
callMyself()
This code will print "callMyself()" until the stack is filled with recursion.
See Another ExampleExample 3: The Memory Leaker
list = []
while(True) {
list.append("I'm a memory leaker")
}
This code will consume all your memory until the system crashes.
Back to Featured Bloopers