this post was submitted on 22 Oct 2026
973 points (98.5% liked)

Programmer Humor

34028 readers
803 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 3 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments

In Horse64:

import horses from horses.horse64.org

func main {
    var my_horse = horses.Horse(color="brown")
}

And in Horse64 Root:

import horses from horses.horse64.org

func main -> bool {
    var my_horse <- horses.Horse
    my_horse.init("brown")
    if failed(my_horse.init) {
        return no
    }

    defer my_horse.destroy()

    my_horse.run()
    if failed(my_horse.run) {
        my_horse.stop()
        return no
    }

    my_horse.stop()
    if failed(my_horse.stop) {
        return no
    }

    my_horse.eat("hay")
    if failed(my_horse.eat) {
        return no
    }

    return yes
}