Google


   


You are here: CodeIdol.com > C++ > C++ Coding Standards: 101 Rules, Guidelines, and Best Practices > Declare Variables As Locally As Possible

SAVE
Digg
Shown on del.icio.us del.icio.us
See Whos Talking About This on Technorati Technorati
I've Reddit reddit

C++ Coding Standards: 101 Rules, Guidelines, and Best Practices



18. SummaryDiscussionExceptionsReferences...



Avoid scope bloat, as with requirements so too with variables): Variables introduce state, and you should have to deal with as little state as possible,...

read more: Summary


Variables whose lifetimes are longer than necessary have several drawbacks: They make the program harder to understand and maintain: For example, should code update the module-wide...

read more: Discussion


It can sometimes be beneficial to hoist a variable out of a loop. (See Item 9.) Because constants don't add state, this Item does not apply...

read more: Exceptions


[Dewhurst03] §3, §48, §66 • [Dewhurst03] §95 [McConnell93] §5.1-4, §• [Stroustrup00] §4.9.4, §6.3...

read more: References

SAVE
Digg
Shown on del.icio.us del.icio.us
See Whos Talking About This on Technorati Technorati
I've Reddit reddit

You are here: CodeIdol.com > C++ > C++ Coding Standards: 101 Rules, Guidelines, and Best Practices > Declare Variables As Locally As Possible


ADBRITE ads links
   
Related tags







Popular Categories
Unix books and guides

AJAX popular information
C# language guides
Windows books and cookbooks

.......








Business Key Top Sites

be number one
rate your site


разработка продвижение web сайтов google. Легкий воздух в доме обеспечат наши товары: кондиционер сплит системы для нормальной жизни.

    С 2009 года мы стали переводить структура сайта на различные языки. Сайт теперь будет содержать книги не только на английском языке, но также и на других европейских языках, в том числе и на Русском языке.

    Русский Polski Francais Deutsch
    support sitemap terms

© CodeIdol Labs, 2007 - 2009