Thieves and pirates often live by some sort of code. Robin Hood, whose identity as a thief is somewhat questionable, had a code: steal from the rich and give to the poor. Pirates also had a sort of code; at least, the pirates in Pirates of the Caribbean had a code even if nobody followed it precisely (I know that puts the code itself in question. Let’s not get into the details of said pirates being fictitious characters.).