I did think of the variable issues. Using instance variables does not generally
strike me as problematic. (unless there’s a lot of them)
I did find some interesting articles on inlining vs function calling. Here’s
one.[1]
Too many super calls might be bad because “call” can be expensive.
Yes.
You're welcome to try different approaches to sharing code in the base
classes. Often, though, loops over children need to be inlined not only
for performance reasons (to cut out one function call in the inner loop),
but also for information sharing reasons (local variables accumulating
values wou
Here’s a dilema I ran into this morning:
The OneFlexibleLayout beads have some code which look like this:
if (!contentView.element.style["align-items"])
contentView.element.style["align-items"] = "center”;
What that does, is check if “align-items” is already set and sets it to center
if not.