Resources and codes