A great example of factoring is the forEach function in JavaScript. There was a pattern, a for loop that iterated over an array with an index. They took out the index and did the iterating for you. It’s a small simplification, and I smile every time I use it because the got rid of a little drudge work for me when entering it and reading the code. In no way a big deal, but nice that they found a way to make things easier and faster. I asked ChatGPT why forEach is so great, but they use other “advances” in JavaScript that I consider unnecessary, not useful, cryptic, and I don’t use them. #
13 Oct