Egregoros

Signal feed

Timeline

Post

Remote status

Context

3
Well, fuck.

>Are they just bad and I am the one who is right?
As it turns out, no.

>nested functions and closures
maybe you should stop doing that and you could have global variables lol

>bad style, harder to reason about, test and debug
I have never seen reasonable Python code in my life.

TL;DR: I'm probably just literally clinically retarded.

RT: https://poa.st/objects/fdd471d1-b597-4d7c-ba59-472c501ae364
>tests
My code isn't even breaking it's a style thing. I specifically told it to avoid classes and just write procedural code but I ended up with all these "globals" declared in every function which are allegedly bad.
I don't really get why yet, but again, maybe I am just too bad of a programmer. No idea.
Grok keeps telling me it avoids problems but when I ask which ones, it's stuff like "if you use global foo and you forget the keyword once it will create a local variable instead and assign that."
Okay. Why? Why is that good? idgi

>types
another thing that I would rather have by default, but hasn't been an issue in my simple script here, yet.
My agent hasn't been off track with that yet. It's only a thousand lines (way too much if you ask me) at this point. Probably fits context easily.

Replies

0
No replies yet.