DigiNews

Tech Watch by Johan Denoyer

← Back to articles

Avoid Public Functions Calling Other Public Functions

Quality: 8/10 Relevance: 9/10

Summary

The article argues that public functions should not call other public functions; instead, extract shared logic into a private helper to reduce API surface and maintenance overhead. It discusses exceptions for shortcut APIs and references a Stack Overflow discussion on testing public vs internal behavior, highlighting practical design considerations.

🚀 Service construit par Johan Denoyer