For crimes that are major or at least major in the Islamic world they can be punished by stoning/lashing. Lets say someone stole and was supposed to go to prison for X amount of years and they get caught and they get lashed they would do this in the public (or at least thats what Ive seen). This brings shame to them and can bring disgrace to the family and may leave some serious scars so Im a bit put off by this but I guess some would rather do this than go to prison for 20 years or something I dont know. If the sentence is shorter than this is questionable too.
However, stoning is just barbaric to me. The person is literally tortured right before they die. imagine getting your bones shattered and its also done so in front of everyone this can also impact the way others think and probably even kids. People get stoned for things like adultery and yes some may say that it ruins the family but it isnt the only thing you can do. There can be other punishmetns like giving fees, doing work as payback and jail you could do them all the same time and these are just the ones Ive thought of just now. If stoning is also allowed for adultery imagine all the people that havent been punished yet and how we have to punish them. If its to redeem for the afterlife then theres lots of other ways to do so too.
The idea of stoning just doesnt fit a peaceful religion to me so I was wondering how can stoning be allowed?