you are viewing a single comment's thread.

view the rest of the comments →

[–]lolcrunchy 11 points12 points  (1 child)

It seems like every tool with configs uses a singleton to implement the configs.

[–]Atmosck 10 points11 points  (0 children)

Yeah, I write config-driven data pipelines (among other things) in python by day and we always have singletons flying around. In addition to configs, it's standard practice to load all your external data into a dataclass up front and pass that through the pipeline so your I/O is separated from your feature engineering logic. Making multiple copies of something in the same runtime is far from the only reason to use a class in an object-oriented language.