I'll give it a look in, but yes, my general opinion is that discretion leads to subjectivity and unfairness. Unfortunately the attempts to reduce discretion have historically resulted in malicious arbitrariness, sentencing teenagers to sex offender status for sexting, silly three strikes laws ad et al. At the same time it seems to me that a more richly detailed granular objective system with oversight into the actual code to any interested parties with a clear and concise method for changing that code would be a far superior approach than either of the previously mentioned extremes.
You might want to look into the civil code system of law. It might appeal to you more than the English-derived system that I suspect you live under. Check out the Quebec Civil Code: http://www2.publicationsduquebec.gouv.qc.ca/dynamicSearch/te... (ignore the bizarre English translations of some concepts...).
You are correct, I currently live under a common law derived system, and my research into actually translating a legal system to code has led me to believe that the best place to start would be a civil law based system, though I had been mostly looking into scandinavian countries prior to this link. Thanks for that, just to be clear though, is civil code specific to Quebec or is it all of Canada on a civil law derived system? If it's Quebec only I'm guessing my grasp of English isn't much going to help me but if it's all of Canada I'm thinking this could be a much better starting point than the Scandinavian systems as I don't speak any of those languages fluently.
The Civil Code is just in Quebec. That's because that region of the country was originally owned by France and centuries later it's still French-speaking and uses a France-derived legal system for all but criminal matters.
There are many English speakers in Quebec (one of Canada's top law schools is located in the largest city in Quebec, which is known for being English-speaking...) and so you should be able to find a lot more materials in English than Scandinavian countries but I wouldn't know.
You're likely already aware of it but Louisiana also has the historical France link and civil code connection but I know much less about how that system works.
> attempts to reduce discretion have historically resulted in malicious arbitrariness
You're 90% of the way to the answer. Take into account Hanlon's Razor and it should become clear.
Unless the people designing the law are smart enough to take into account every single edge case, we're faced with a choice between gross miscarriages of justice through inflexible laws, and gross miscarriages of justice through incompetent or corrupt judges.
We know the people designing the law aren't that smart; and even if they were, the laws are already too complicated. The only solution is to strike a balance between the two types of errors that minimizes their sum.