Perl Best Practices [Electronic resources] نسخه متنی

اینجــــا یک کتابخانه دیجیتالی است

با بیش از 100000 منبع الکترونیکی رایگان به زبان فارسی ، عربی و انگلیسی

Perl Best Practices [Electronic resources] - نسخه متنی

Damian Conway

| نمايش فراداده ، افزودن یک نقد و بررسی
افزودن به کتابخانه شخصی
ارسال به دوستان
جستجو در متن کتاب
بیشتر
تنظیمات قلم

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

روز نیمروز شب
جستجو در لغت نامه
بیشتر
لیست موضوعات
توضیحات
افزودن یادداشت جدید







B.2. Chapter 3, Naming Conventions


  • Use grammatical templates when forming identifiers. [Identifiers ]

  • Name booleans after their associated test. [Booleans ]

  • Mark variables that store references with a _ref suffix. [Reference Variables ]

  • Name arrays in the plural and hashes in the singular. [Arrays and Hashes ]

  • Use underscores to separate words in multiword identifiers. [Underscores ]

  • Distinguish different program components by case. [Capitalization ]

  • Abbr idents by prefx. [Abbreviations ]

  • Abbreviate only when the meaning remains unambiguous. [Ambiguous Abbreviations ]

  • Avoid using inherently ambiguous words in names. [Ambiguous Names ]

  • Prefix "for internal use only" subroutines with an underscore. [Utility Subroutines ]



/ 317