Now I am reading the book "Clean Code" and now I decided to check with developers with more experience than I do.
It says that you should strive to write unary functions (which contain one argument), and it is better to accept nothing at all, so that it is just the beautiful name of the function, which you can intuitively understand what it does.
But, if I'm not mistaken, this is contrary to the rules of encapsulation. I understand that all the variables that the function uses are defined as global variables, but then this function will depend strictly on the class in which it is located. And in which case it will be much more difficult to transfer it to another class.
p.65
"Function Arguments"
In the ideal case, the number of function arguments is zero (a null-ary function). The following are functions with one argument (unary) and two arguments (binary). Functions with three arguments (ternary) should be avoided if possible. The need for functions with more arguments (poly-arrays) must be supported by very high arguments — and still, it is better not to use such functions.
And further, if you read a couple of pages, it describes it more deeply and it all comes down to the point that functions should ideally be without arguments.
Or not so I argue?