# Streamr Network Developer Documentation ## Coding conventions ### Use the strictest access modifier that applies Fields and methods of classes should be made `private` by default, unless there is an actual need for them to be publicly accessible. ### Immutability Prefer immutable variables and fields over mutable ones. For example, use `const` for variables and `readonly` for fields. Copy arrays and objects when mutating them. ### Avoid `null`, prefer `undefined` Avoid `null`. Use `undefined` instead. At the very least avoid mixing the two in the same context / types. ### Naming counts - Functions and methods for getting counts should be named `getFooCount` - Variables and fields which store counts should be named `fooCount` Examples: - `getConnectionCount`, `neighborCount` ## Topics - [Testing Best Practices](testing-best-practices.md) - [Duplicate Detection in Network](algorithms/duplicate-detection.md) - [Tracker Algorithm](algorithms/tracker-algorithm.md) - [Old Archived Wiki (partially out-of-date)](https://github.com/streamr-dev/network/wiki)