bad egg: (old-fashioned slang) a bad person
bad person: a person who does harm to others
code: (computer science) the symbolic arrangement of data or instructions in a computer program or the set of such instructions