Naming is hard, once in a while

2 views
Skip to first unread message

Mike Austin

unread,
Mar 19, 2026, 1:44:57 PM (12 days ago) Mar 19
to PiLuD
Most of the time I don't need to think about it, but once in a while it comes up.

An array of window IDs ordered by stacking level (z-index).

windowOrder
windowIdsOrder
orderedWindowIds
stackOrderedWindowIds
windowIdsByStackOrder

There's a point where the variable name becomes a bit long. But just "ordered".. ordered by what? windowOrder is short, but what's in the array?
Reply all
Reply to author
Forward
0 new messages