Content pfp
Content
@
0 reply
0 recast
0 reaction

B1das πŸ”·οΈ pfp
B1das πŸ”·οΈ
@b1das
Anyone here with some experiance in fractals and recursive functions ? Its melting my brain a little πŸ˜…
1 reply
0 recast
6 reactions

i-rat.eth  pfp
i-rat.eth
@i-rat.eth
How can I help you, bro?
2 replies
0 recast
1 reaction

B1das πŸ”·οΈ pfp
B1das πŸ”·οΈ
@b1das
Actually, would you recome d using global variables in recursive functions ? Right now it was just 2 functions interwoven(in the picture case about 2200 times on 7 levels deep) but next one might have like 6 functions so it seems like lot of variables to keep track and send around so if its global it might simplify idk
1 reply
0 recast
0 reaction

i-rat.eth  pfp
i-rat.eth
@i-rat.eth
Actually, no, I wouldn't recommend it. Recursion in python is not a good idea in itself, I would recommend avoiding it by resorting to loops if possible. As for variables, it is better to keep them as arguments to functions than as global constants, such code will be much easier to maintain and reuse.
2 replies
0 recast
0 reaction

B1das πŸ”·οΈ pfp
B1das πŸ”·οΈ
@b1das
Im trying to implement this
1 reply
0 recast
0 reaction

B1das πŸ”·οΈ pfp
B1das πŸ”·οΈ
@b1das
Loopa wont cut it cause when i need to go down like 7 levels(depending on user input) the amount of loops would grow exponentialy
0 reply
0 recast
0 reaction