![]() |
Copy And Paste Code 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) ;) |
الساعة الآن 06:24 AM |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.5.2 TranZ By
Almuhajir