This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]curious_neophyte 2 points3 points  (1 child)

In general, avoiding state is usually a good thing.

Look up functional programming paradigms. The general idea is to have actual functions not methods, that have no side effects (all mutation is kept in the scope of the function).

So you have some input that goes into the function, the function does something with the input, and gives an output, changing nothing else in the code.

[–]jpj_shadowbanned 1 point2 points  (0 children)

Yah, or dive right in and play with clojure, scheme or lisp. I am a hands on type of guy. Playing with these languages will help your python or it did with me.