It's a tough question.
Society functions when there is law, like it or not. Through acquiescing to societal laws, we then are allowed to function and contribute within that society. However, as history as shown us (yes, weasel words, but do you
really want me to source material that is self-evident in a forum debate?), societal values change over time and with those changing values there is a reevaluation of the laws that govern that society.
To quote Schopenhauer:
All truth passes through three stages. First, it is ridiculed. Second, it is violently opposed. Third, it is accepted as being self-evident.
I think that there should be a reevaluation of how we not only enforce law, but whether minors under the current legal system(s) of a nation are in fact culpable for their actions, instead of defaulting to the stock line that "they are minors and therefore can not be held responsible for their actions". I believe that it's a gross logical fallacy to
assume that persons under a certain age are considered incapable of weighing the gravity of a crime they commit, due merely to age.
Give them psych tests & if they are found to be aware & culpable, they should be sentenced like adults with sufficient leniency given (because of the fact that they are young & may well have made one or several grave errors of judgement). Capital punishment is an option that should be reserved for true monsters (for example, Ted Bundy), but not used wholesale as it is in some parts of the world. Prison sure as hell isn't true rehabilitation; it is a punishment. But it doesn't need to be a place of torture, either. Many people that are sent to prison can become useful members of a society, given the tools.
Finally, one case where I feel that they should have been in prison for far longer than what transpired was the Bolger case in the UK (link to the Wikipedia article
here). 8 years, then paroled under new identities. IMO, they seemed
very culpable, and the fact that they were allowed to re-enter society after such acts sends a chill up my spine and sends out the wrong message to the public, but that's just my view.
Cheers, thanks for reading.