Coders, write short methods! It helps with
* readability
* reusability
* and getting work done.

Readability

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.
Reusability

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.
Doing Work

Imagine you need to fix something in a long method. You need to understand the whole method before you change it. If you method is composed of many smaller methods, you can quickly read their names, then go to the relevant method and quickly understand it.
The computer does not care how long or short your methods are. Humans reading your code will thank you for using short methods with expressive names.

More from All

You May Also Like

https://t.co/6cRR2B3jBE
Viruses and other pathogens are often studied as stand-alone entities, despite that, in nature, they mostly live in multispecies associations called biofilms—both externally and within the host.

https://t.co/FBfXhUrH5d


Microorganisms in biofilms are enclosed by an extracellular matrix that confers protection and improves survival. Previous studies have shown that viruses can secondarily colonize preexisting biofilms, and viral biofilms have also been described.


...we raise the perspective that CoVs can persistently infect bats due to their association with biofilm structures. This phenomenon potentially provides an optimal environment for nonpathogenic & well-adapted viruses to interact with the host, as well as for viral recombination.


Biofilms can also enhance virion viability in extracellular environments, such as on fomites and in aquatic sediments, allowing viral persistence and dissemination.