Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jhji7i77l
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
by
jhji7i77l
2y ago
> To be clear, a good init is not supposed to create a thread or do any execution that might not be instant of things like that. Maybe it indirectly ensures that only one thread is created per instantiation; there are better ways of achi
2.
▲
by
jhji7i77l
2y ago
> Even `Path("config.json").read_text()` in a constructor isn't a good idea. If that call is necessary to ensure that the instance has a good/known internal state, I absolutely think it belongs in __init__ (whether ca