Sentence length
There are no rules about sentence length in scientific writing. Most texts are a combination of short and long sentences. The guiding principle is that all sentences should be easy to read and understand.
When should I use short sentences?
Short, simple sentences are often a good choice. They can be particularly useful for introducing the topic of a paragraph, thereby focussing the reader. This is illustrated in example (1) (Soto-Valero, Durieux and Baudry, 2021), where short sentences (in bold) are then expanded upon with longer, more complex sentences.
In example (1) the very first sentence provides a powerful focus for the reader.
Short sentences can also be useful for breaking down an explanation into a series of individual steps, as in example (2), which has three rather short sentences:
When should I use longer sentences?
Sometimes, a longer sentence will be a good choice, as longer sentences enable a writer to combine ideas and show the relationship between them. This is further explored in Section 2.
References
Soto-Valero, C., Durieux, T. and Baudry, B. (2021) A Longitudinal Analysis of Bloated Java Dependencies, ESEC/FSE’21, August 23–27, 2021, Athens, Greece, Virtual Event.