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

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

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

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

Damian Conway

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

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

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







B.15. Chapter 16, Class Hierarchies


  • Don't manipulate the list of base classes directly. [Inheritance ]

  • Use distributed encapsulated objects. [Objects ]

  • Never use the one-argument form of bless. [Blessing Objects ]

  • Pass constructor arguments as labeled values, using a hash reference. [Constructor Arguments ]

  • Distinguish arguments for base classes by class name as well. [Base Class Initialization ]

  • Separate your construction, initialization, and destruction processes. [Construction and Destruction ]

  • Build the standard class infrastructure automatically. [Automating Class Hierarchies ]

  • Use Class::Std to automate the deallocation of attribute data. [Attribute Demolition ]

  • Have attributes initialized and verified automatically. [Attribute Building ]

  • Specify coercions as :STRINGIFY, :NUMERIFY, and :BOOLIFY methods. [Coercions ]

  • Use :CUMULATIVE methods instead of SUPER:: calls. [Cumulative Methods ]

  • Don't use AUTOLOAD( ). [Autoloading ]



/ 317