News for hackers. Stuff that matters.
Re:No-op statements syntactically valid only since Python X.Y by eloisius on Monday June 06, 2022 @10:27AM (#31640950)
There’s nothing wrong with it, per se, but it is more to maintain, and it’s a confusing indirection to downstream users that need to pry into your code to debug something.

Ruby has its own problems, but I like that the modules are independent from the file that contains them. You can “reopen” a module and declare new classes or constants or whatever. You have freedom (and responsibility) to organize your files in a way that maps to module namespaces. The drawback is the `require “my_file”` doesn’t give you any hint about what you’re importing.

There are no comments on this comment yet.