Best practices to reduce allocations in Julia

Also: Common allocation mistakes