Best Practices

Design

principles

least privilege

single return

avoid redundancy

efficiency

execution

assigning a value vs. function call

development

readability

maintainability

maintenance surface area

extensibility

Subtopic

Style

layout

comments

indenting

alignment

identifiers

user-defined types

consistent naming

methods

semantic consistency

architectural consistency

r

methods avoid multi-tier access

variables

literals

strings

numbers

Correctness