In this PR I make some suggestions, add explanation and try new things. These changes cover:
naming things
adhering (more) to single responsibility for methods
introduction of some functional programming
added typehinting for arguments and returnvalues
comments
keeping methods small
And I'm still a fan of not using 'else' statements and 'foreach' loops. The latter in favor of (functional programming) methods like 'reduce', 'map' and the like :-)
In this PR I make some suggestions, add explanation and try new things. These changes cover:
And I'm still a fan of not using 'else' statements and 'foreach' loops. The latter in favor of (functional programming) methods like 'reduce', 'map' and the like :-)