re: [Lookin' for advice] How should I use loop effectively? VIEW POST


sorting, accessing data from arrays, searching

Depending on the language, there's usually native functionality for this sort of stuff. You'll find a .sort() and the such.

Perhaps its an issue of reaching for what you know you can do yourself rather than looking up what the coding environment offers?

I'd guess that the lower level you get, the more loops you write because computers do a lot of looping.

What's an example of some code where you use a loop and you're not sure if there is another way to go about it?

code of conduct - report abuse