Yes that's right
For example, canScrollHorizontally is so much better and meaningful than ScrollableX.
Context is everything. If the variable is defined in a scollability method or class, then a better name might be 'allowHorizontal' or allowHoriz or even allowH. You have to balance identifier length, and a good way of accomplishing that is to make use of context.
Nice to see people interested in the topic. As a fellow enthusiast, for those willing to expand on this ideas and dive deeper, I really recommend:
Clean Code: A Handbook of Agile Software Craftsmanship, by Robert Martin
Along with his "Clean Architecture". Those are one of the best books I've ever had honor of reading. And, of course, one cannot forget about:
Refactoring, by Martin Fowler
Thanks for writing these basic tips which should come naturally to any developer but I see a lot of people who don't even do good-looking/consistent indentation.
Paddy McCarthy
A Python programmer and Rosetta Code contributor
Many exploits might take advantage of giving values outside what was once thought a reasonable range. As an aside, arbitrary string length in dynamic languages such as Perl can often help.