« first day (5139 days earlier)      last day (26 days later) » 

14:01
what's the best place to ask questions if my way of programming is going into the right direction?
Not really having a bug but fearing I am committing programming anti patterns
14:32
@paul23 Within the Stack Exchange network, probably depends on what development stage you are at. I don't really know what's available outside the network. (Disclosure: I am a moderator on Code Review SE)
@Aran-Fey I recall you asking about monkey patching the import system the other day. Is the bug related to your previous escapades?
"Hey I have prototype code, does this fit the code design/paradigm of react and this other libraries".
If the example is exactly what the question is then you should be ok on CR. However, people like to be petty
Oh also "does this fit the code design/paradigm of react and this other libraries" may never be answered. So you'd be dice rolling on advice which is helpful to you.
14:50
There is no tag for "declarative programming" on CR :/ (vs imperative programming)
 
2 hours later…
16:24
@paul23 I had something similar that I posted to CR. Basically, by the time I got to printing the result, I knew I'd messed up with the design. So, it can work but I think it depends on the context of what you're trying to ask and whether it can be narrowed down enough
16:43
dupe (wrongly tagged 3.x originally) stackoverflow.com/questions/46574448
@Peilonrayz Mmmm, sort of. The implementation has changed significantly since then, but the goal of dynamically importing certain files has remained the same
Long story short, it has to do with an "auto-reloading" feature. I.e. if you change your code while your app is running, all the relevant modules are purged from sys.modules and re-imported. That's why I'm looping over modules in sys.modules and accessing their __path__
16:59
I've only really used importlib once when making a plugin system. I remember even without auto-reloading I didn't have too much fun. I imagine "auto-reloading" could be a mile worse than whatever I was doing.
There certainly were tons of bugs
17:17
@Aran-Fey I wonder how much of that is implemented by streamlit.
It reloads "pages" on change and there's lots of magic going on, that's my impression.
Might just be execs rather than imports though, no idea.
There are certainly sys.modules shenanigans github.com/…
17:39
@AndrasDeak--СлаваУкраїні s/execs/subprocesses/
 
4 hours later…
21:57
@paul23 are you looking for a Python replacement?
no?
woops

« first day (5139 days earlier)      last day (26 days later) »