Youth justice is for the many nuanced & lower stakes scenarios. Stealing a car, breaking windows, shoplifting/petty theft, getting into fights, drug abuse/addiction, arson, criminal mischief, etc.
Not stabbing strangers to death.
You can't equate the two.
Everyone should know, US flag code is relatively new phenomenon, with the beginnings of it forming around 1942. My grandfather predated US flag code.
Similarly, flying the flag at half-staff/mast only goes back to 1954-ish.
Regarding the US flag & how it is presented, treated, there is a lot of customs & nuance that we're just kind of making up as we go along. It seems as the world gets smaller, the rate of divergency & traditions is accelerating.
Most soldiers I've met don't really care about the flag code. They dislike the flag being burned but currently there's not much we can do about that.
I am (mostly) mindful of "flag code", just out of my own personal respect & love for America. But it's not law; the flag is made for Americans. Americans aren't made for the flag, to structure our actions around what some guys said in 1942.