Menu

Why string concatenation in loops is a bad programming strategy.
🖼️
0

Why string concatenation in loops is a bad programming strategy.

Reading 0:00
15s threshold

I’m finally back after a long vacation, thanks to the pandemic. Having said that, let’s go back to business. Why string concatenation in loops (SCL) is a bad programming strategy. String concatenation in loops (SCL), is often used in sequencing analysis; for instance, for finding complement and reverse complement sequences, for DNA to RNA translations, and so forth. It is also used for generating random sequences, and DNA data storing. I’m currently writing an article on this subject. A little snippet follows: “SCL is a common strategy because of its simplicity. In many programming languages, however, SCL is discouraged because generates a large number of temporary objects, consumes memory resources, and increases execution times. As sequences get larger, or if these are processed in batch mode, implementing SCL becomes a computationally inefficient strategy. “ I cannot wait to finish it and provide one-liner solutions, applicable across knowledge domains.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More