How to not be intimidating to guys
His words speak to an important idea in the novel—the futility of the recurring Soc-greaser violence.
The idea Randy presents here has another side to it, however.
Dally does not scare him but rather fascinates him, and he holds a romanticized vision of Dally as an honorable Southern gentleman.
By comparing Dally to a character in a book, Johnny becomes able to understand him.
Ponyboy speaks these words to Cherry Valance in Chapter 3 after he, Two-Bit, and Johnny spend time with Cherry and Marcia at the drive-in.