Functions

PL-FN-001

One Clear Responsibility

Preferred names
validateRequest()
createSession()
sendPacket()
loadUser()
closeConnection()
Avoid vague names
handleEverything()
process()
doStuff()
executeAll()

A function should normally represent one clearly identifiable action.

Size guidance

~5–30 lines  → normal
~30–50 lines → review
50+ lines    → usually split

These are heuristics, not absolute limits.