Only now does it occur to me... that John Singleton loosely patterns BOYZ IN THE HOOD's prologue and epilogue after the seminal Stephen King adaptation STAND BY ME, and at one point even includes a direct reference, with four young boys walking along railroad tracks to see a dead body.
Of course, the walk to find a dead body in 1984 South Central is considerably shorter than in 1959 Castle Rock, and Singleton draws a bit of tragic poetry from the comparison.