Both.
Principle Based
Common law
A language based on functions rather than objects. You code to perform a series of tasks usually sequentially to achieve an objective, rather than code objects that relate to each other. Generally less flexible and harder to maintain.
with the code
the code of Hammurabi was based on old history
Morality is a code of your personal beliefs. Your beliefs and mine may be different. Criminal law is directed at enforcement of law and not beliefs.
It is called a religion.
a judge who must decide a new case may look at legal or the ruling of an earlier similar case?
Ritc code is a code based on the commodity
An atheist doesn't believe in the existence of a God and or Gods. They simply live life based on facts. All other beliefs (aliens, political party preference, position on eating meat etc.) are up to the individual as there is no atheist code, rules, book of instructions or even secret handshake.
it was based on Roman law