إنضمامك إلي منتديات استراحات زايد يحقق لك معرفة كل ماهو جديد في عالم الانترنت ...

انضم الينا
استراحات زايد الصفحة الرئيسية

  #1  
قديم 07-01-2010, 01:40 PM
عضو ماسي
بيانات محروم.كوم
 رقم العضوية : 503
 تاريخ التسجيل : Dec 2007
الجنس : female
علم الدوله :
 المشاركات : 2,100,669
عدد الـنقاط :3341
 تقييم المستوى : 2141

You shouldn't use/copy the methods from one class to an other.


For example:
Quote:
- D:\xampp\xampp\htdocs\vb404\includes\class_picture comment.php:282-353
D:\xampp\xampp\htdocs\vb404\includes\class_visitor message.php:302-373

- D:\xampp\xampp\htdocs\vb404\includes\class_picture comment.php:356-377
D:\xampp\xampp\htdocs\vb404\includes\class_visitor message.php:377-398


- D:\xampp\xampp\htdocs\vb404\includes\class_picture comment.php:397-423
D:\xampp\xampp\htdocs\vb404\includes\class_visitor message.php:418-444

Why not provide a abstract class "comment/message" which provides this methods?

This would provide a much cleaner, easier to manage code.
I've run an c&p detection tool on vB404 code and found
Quote:
0.71% duplicated lines out of 383599 total lines of code.

OK It's not much, but you could save IMO very LOC (lines of code)
__DEFINE_LIKE_SHARE__
رد مع اقتباس
إضافة رد

مواقع النشر (المفضلة)


تعليمات المشاركة
لا تستطيع إضافة مواضيع جديدة
لا تستطيع الرد على المواضيع
لا تستطيع إرفاق ملفات
لا تستطيع تعديل مشاركاتك

BB code is متاحة
كود [IMG] متاحة
كود HTML معطلة
Trackbacks are متاحة
Pingbacks are متاحة
Refbacks are متاحة



الساعة الآن 10:19 AM


Powered by vBulletin® Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.5.2 TranZ By Almuhajir

RSS RSS 2.0 XML MAP HTML