PROGRAMR.BAT is a bot that posts single lines of code, picked at random from a variety of open-source projects.

// FIXME: do this right

} else if (monkey_business) {

(how == QUIT) ? "quit" : "died");

Many of the more interesting lines come from Nethack.

You_hear("a swoosh.");

Follow @PROGRAMR_BAT on Twitter.

Rust minus context

Rust minus context is a variant of PROGRAMR.BAT. This bot posts random lines from the codebase of the Rust programming language. Each line is tagged with the version of Rust that introduced it, which may reveal how the syntax of Rust has evolved.

fn local_realloc(ptr: *(), size: uint) -> \*() {

-> ty::ClosureTy<'tcx> where

Follow @rustminus on Twitter.