Systematically extract maximum value from existing code — identify what's golden (high-value, well-designed), what's lead (resource-heavy, poorly optimized), and what's dross (dead weight). Then amplify the gold, transmute the lead, and remove the dross.
Expected: Every significant element classified with evidence. Gold elements are identified for protection during optimization. Lead elements are prioritized by impact.
On failure: If profiling tools aren't available, use static analysis: function complexity (cyclomatic), dependency count, and code size as proxies. If the codebase is too large, focus on the critical path first.
استخرج أقصى قيمة من التعليمات البرمجية الموجودة — تحسين الأداء، وتحسين سطح واجهة برمجة التطبيقات (API)، والتخلص من الوزن الزائد. فن تحويل الكود الأساسي إلى ذهب من خلال التحديد المنهجي وتضخيم الأنماط الحاملة للقيمة. يُستخدم عند تحسين قاعدة تعليمات برمجية عاملة ولكنها بطيئة، أو تحسين سطح واجهة برمجة التطبيقات (API) المتراكم، أو تقليل حجم الحزمة أو مساحة الذاكرة، أو إعداد التعليمات البرمجية لإصدار مفتوح المصدر - عندما تعمل التعليمات البرمجية بشكل صحيح ولكنها لا تتألق وتحتاج إلى تحسين بدلاً من إعادة كتابة كاملة. المصدر: pjt222/development-guides.