When you have many small methods and you name them well, your code reads like a paragraph. A well named method describes what the method will do. It's easier to read a series of phrases written in your own language than a series of math equations.
Coders, write short methods! It helps with
* readability
* reusability
* and getting work done.
When you have many small methods and you name them well, your code reads like a paragraph. A well named method describes what the method will do. It's easier to read a series of phrases written in your own language than a series of math equations.
A small method only does one thing. If a method does two things, you can only use it when both things should happen. If on only want one of the two things, you can't use that method. Methods should be Lego bricks not completed models.
More from All
You May Also Like
This is NONSENSE. The people who take photos with their books on instagram are known to be voracious readers who graciously take time to review books and recommend them to their followers. Part of their medium is to take elaborate, beautiful photos of books. Die mad, Guardian.
THEY DO READ THEM, YOU JUDGY, RACOON-PICKED TRASH BIN
If you come for Bookstagram, i will fight you.
In appreciation, here are some of my favourite bookstagrams of my books: (photos by lit_nerd37, mybookacademy, bookswrotemystory, and scorpio_books)
Beautifully read: why bookselfies are all over Instagram https://t.co/pBQA3JY0xm
— Guardian Books (@GuardianBooks) October 30, 2018
THEY DO READ THEM, YOU JUDGY, RACOON-PICKED TRASH BIN
If you come for Bookstagram, i will fight you.
In appreciation, here are some of my favourite bookstagrams of my books: (photos by lit_nerd37, mybookacademy, bookswrotemystory, and scorpio_books)