"Code of the Streets" evolved from a 1992 song titled "Wrongs of the World", which was produced by Guru and featured in an investigative report on WWOR-TV called Crime Chronicles. When Gang Starr was working on Hard to Earn, DJ Premier asked Guru if they owned the rights to the song as he believed it would be a suitable addition for the album. The original version contained horns and a slightly different drum pattern, but still used the same lyrics. Guru changed the title to "Code of The Streets". For this reason, Premier remade the production of the song to create a "morse code type scratch"; he has stated, "I reprogrammed the drums with just a little bit more of a skip, the way I do it, and you can tell a difference when you hear the Gang Starr version."[1]
Composition
The instrumental contains "somber" strings, while lyrically Guru focuses on behavior in the streets and ghetto[2] and comments on the state of the society.[3]
Critical reception
Jason Birchmeier of AllMusic regarded "Code of the Streets" (along with the song "Tonz 'O' Gunz") as the best moments on Hard to Earn, describing them as "two songs where Guru offers the type of social commentary that made Gang Starr so admirable in the first place."[4] Tom Doggett of RapReviews praised the song's production for "breathtaking work on the turntables."[2]