உள்தள் பாணி
Jump to navigation
Jump to search
நிரலாக்கத்தில், உள்தள் பாணி என்பது நிரல் கட்டங்கள் எவ்வாறு உள்தள்ளப்படவேண்டும் என்பது பற்றிய ஒழுங்குமுறை ஆகும். எல்லோரும் பயன்படுத்த்தும் ஒரு பாணி இல்லையென்றாலும், சில பரவலாக பயன்படுத்தப்படும் பாணிகள் உண்டு. எந்தப் பாணியைப் பயன்படுத்தினாலும், ஒத்திசையாவாக பயன்படுத்துதல் பலரால் கடைப்பிடிக்கப்படும் ஓர் ஒழுக்கம் ஆகும்.
இன்று பல பாணிகள் பயன்பாட்டில் இருந்தாலும், கே & ஆர் அடைப்புக்குறி பாணி, மற்றும் நீட்டப்பட்ட அடைப்புக்குறி (Extended Brace Style) பாணிகள் பரந்த பயன்பாட்டில் உள்ளன.[1][2][3]
கே & ஆர் அடைப்புக்குறி பாணி (K & R Brace Style)
int main(int argc, char *argv[])
{
...
while (x == y) {
something();
somethingelse();
if (some_error)
do_correct();
else
continue_as_usual();
}
finalthing();
...
}1TBS
//...
if (x < 0) {
printf("Negative");
negative(x);
} else {
printf("Positive");
positive(x);
}நீட்டப்பட்ட அடைப்புக்குறி பாணி (Extended Brace Style)
while(x == y)
{
something();
somethingelse();
}
finalthing();இவற்றையும் பாக்க
மேற்கோள்கள்
- ↑ Weissman, Laurence Mark (1974). A Methodology For Studying The Psychological Complexity of Computer Programs. CSRG-37 (Technical report) (in ஆங்கிலம்). Computer Systems Research Group, தொராண்டோ பல்கலைக்கழகம். கணினி நூலகம் 1085612768. technicalreportc37univ – via இணைய ஆவணகம்.
- ↑ (2023) "Indentation in Source Code: A Randomized Control Trial on the Readability of Control Flows in Java Code with Large Effects". {{{booktitle}}}, 117–128. DOI:10.5220/0012087500003538.
- ↑ Hanenberg, Stefan; Morzeck, Johannes; Gruhn, Volker (2024-08-09). "Indentation and reading time: a randomized control trial on the differences between generated indented and non-indented if-statements" (in en). Empirical Software Engineering 29 (5): 134. doi:10.1007/s10664-024-10531-y. பன்னாட்டுத் தர தொடர் எண்:1573-7616.