loading...

re: Most effective and simplest way to write readable code. VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Personally, I do not like the kind of method in your improved version. They neither take arguments nor do they produce values. This means they rely...
 

I totally agree that side effects cannot be avoided as far as procedural programming is concerned. But I would still prefer the improved version (with or without parameters) because either way there are side effects. Certainly, the code example I used is somewhat trivial (no inter-dependent methods, no return values) and I am sure we can break down our code even in that case. My only concern is that the high level code should be made declarative.

code of conduct - report abuse