Skip to content

Avoid Public Functions Calling Other Public Functions

6.8 relevance
Score Breakdown
technical depth
8
novelty
6
actionability
7
community
6
strategic
5
personal
7

Scored daily by a customisable AI persona to surface the most relevant engineering leadership news.

Software design principle about public functions is actionable for code quality and architecture.

General matklad.github.io
Summary

The thread discusses a software design principle that warns against public functions calling other public functions within the same class or module, arguing it can lead to tight coupling and reduced testability. Commenters generally agree that this pattern often indicates a need for refactoring, such as extracting private helper methods or redesigning the public API, though some note it can be acceptable in certain contexts like delegation or facade patterns.