in reply to "people watching"

I think that the variety of solutions offered to any given question is one of the things that makes this place so valuable.

If you need the quick fix, someone will usually provide it.

If you need the long-term, architected solution, you'll usually get that too.

Only the OP can ever really know what their requirement is, or make a decision about which is applicable to them.

If you read all the replies, you'll usually get a good cross section of possible approached, along with the caveats and benefits.

And there is a golfed-down, or one-liner there too, it may cause you to look closely and work out how it works. Even though you may not use it for that particular problem, something in it may be the trigger to solving some other problem in the future.


Examine what is said, not who speaks.
Silence betokens consent.
Love the truth but pardon error.