Building a Galaxy With Code