Choose language-native methods and control structures that make code more readable and maintainable. Use built-in functions instead of manual implementations, select appropriate control flow structures, and write explicit code that clearly communicates intent.
Examples of preferred patterns:
char.repeat(max)
instead of manual string concatenation loopsreturn () => { cleanup(); };
rather than return () => cleanup();
when you don’t want to return the cleanup function’s resultThis approach reduces cognitive load, leverages language features effectively, and makes code intentions clearer to other developers.
Enter the URL of a public GitHub repository