See more
There are only two golden rules for writing clean functions:
· They should be small
· They should do only one thing and they should do it well