Get the latest tech news

The Trouble with __all__


The trouble with __all__

In fact, most developers don’t bother signifying whether a function or class should be private or public, simply because Python doesn’t offer a good way to do so. I’ve seen a unicorn startup dump their existing codebase and start over because the modules within it became so tightly coupled together, it was impossible to effectively develop within it or break them apart. The ergonomics are different - instead of a runtime failure, we have a CLI command that we can add to CI, as a file watcher, or as a pre-commit hook.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Trouble

Trouble

Related news:

News photo

CrowdStrike’s $10 peace offering brews more trouble than it’s worth

News photo

Cybercrooks spell trouble with typosquatting domains amid CrowdStrike crisis

News photo

Trouble sleeping? This Bluetooth headphone sleep mask works wonders and is $16 off for Prime Day