Skip to content

Put comments before the statement they relate to

" delegate pattern
output = calculate_result( input ).

Clearer than

" anti-pattern
output = calculate_result( input ).
" delegate pattern

And less invasive than

output = calculate_result( input ).  " delegate pattern
From SAP/styleguides under CC BY 3.0 — more details
Last updated on