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) -> \*() {
#rust0_8

-> ty::ClosureTy<'tcx> where
#rust1_0

Follow @rustminus on Twitter.