In the past, Photoshop did not do a very good job of applying strokes to objects. Applying a dashed line to an object in Photoshop …

source

Adobe Photoshop | TUTORIAL #3 : LAYER STYLE (Bahasa Indonesia)
How to Make Pearls in Photoshop using a brush and layer styles