Limit Variable Scope
Generally speaking if you limit the scope of variables as much as possible: * code is more efficient (RVO usage for example) * more maintainable (less to reason about) * more optimizable (constructor/ destructor inlining, etc) * more const correct With rare exceptions.
A dark-mode social media post lists the programming benefits of limiting variable scope: efficiency, maintainability, optimization, and const correctness. The joke is a dry technical endorsement of minimizing scope, with “With rare exceptions” acknowledging that programming rules have edge cases. EN: A dark-mode social media post lists the programming benefits of limiting variable scope: efficiency, maintainability, optimization, and const correctness. The joke is a dry technical endorsement of minimizing scope, with “With rare exceptions” acknowledging that programming rules have edge cases.
social media post / пост в соцсетиprogramming text / текст о программированииdark background / тёмный фонwhite text / белый текстprofile photo / фотография профиляman in a blue shirt / мужчина в синей рубашкеvariable scope / область видимости переменныхcode / кодbullet points / маркированный списокparentheses / скобкиasterisk symbols / символы звёздочкиmobile screenshot / скриншот с телефона
#programming#программирование#code#код#software#софт#variables#переменные#scope#область видимости#c++#разработка#development#эффiciency#эффективность#maintainability#поддерживаемость#optimization#оптимизация#const correctness#корректность const#developer#разработчик#tweet#твит#screenshot#скриншот#tech humor#технический юмор
- @ithueti / 1019 2019-06-16
- Type
- image
- Size
- 662×800 · 74.1 KiB
- Mood
- dry, technical
- Language
- en
- Added