Catégories : Tous - efficiency - readability - consistency

par Gary Sibbitts Il y a 10 années

281

Best Practices

Creating robust software involves adhering to several best practices and design principles. Efficiency in execution ensures that the software performs well under various conditions, while maintainability focuses on reducing the maintenance surface area, making the software easier to update and extend over time.

Best Practices

Best Practices

Correctness

Style

literals
numbers
strings
identifiers
variables
methods

architectural consistency

methods avoid multi-tier access

semantic consistency

user-defined types

consistent naming

layout
alignment
indenting
comments

Design

principles
efficiency

Subtopic

development

extensibility

maintainability

maintenance surface area

readability

execution

assigning a value vs. function call

avoid redundancy
single return
least privilege