Heroin addict Ben Hope went about the murder of Aamir Siddiqi with "staggering incompetence", according to the prosecution.
Hope was already a known criminal and drug addict in Cardiff when the murder was carried out.
Jason Richards has a criminal past littered with violence which has landed him in prison.
He is a heroin addict who unapologetically made a living from peddling hard drugs on the streets of Cardiff.
The pair met in prison and their intimacy behind bars went on to become a drug-dependent friendship outside.
More top news
A woman with amnesia has been reunited with her family in the US after her nephew spotted an appeal to help identify her on TV.
MPs could be asked to authorise airstrikes against IS in Syria in the wake of the Tunisia massacre, the defence secretary has suggested.
Cooler temperatures are forecast after thunderstorms and heavy downpours hit parts of Britain after the hottest July day on record.