I have looked at the WordPress codebase and I think it is excellent.
You said the same thing about SurgarCRM. Excellent relative to what? You are aware that WordPress is horribly buggy and insecure right?
http://secunia.com/advisories/search/?a ... re%5B%5D=0
I find it odd that someone who always preeches good design, etc would even consider WordPress as an example of excellent codebase. They dependencies are outrageous...HTML SQL application logic all in one file. About the only separation they achieve is a primitive functions API.
Whose opinion is correct -- yours or mine? More importantly, do either of our opinions matter?
WordPress is not an excellent codebase...I'm sorry you feel that way...
This was my point above. "Good", it ends up, is much more objective that people think.
Good is subjective...until you have quantifiable evidence of bad...which wordpress has plenty...security, performance, code fragility, etc...
Lets make a friendly challenge:
I propose that you and me both download WordPress (the latest version) and we re-write it using our own best practices...
He who:
1. Finishes first
2. Application runs the fastest overall
3. Has the least reported bugs in 3 months
4. Has the least reported security holes in 3 months
Would stand to settle this discussion as the victor and the other agree's to but the winner a beer if they shall ever meet.
Who would be interested in entering such a challenge? If anything WordPress codebase is improved and the open source community benefits. It shouldn't take more than a few weeks to complete with 1 or 2 others helping each us. It's something I've considered doing lately anyways to add as a "project" under the belt.
Opinions don't matter but results do...and I'm confident I could re-implement wordpress into something leaner, meaner, and overall better.
Code: Select all
SLOC Directory SLOC-by-Language (Sorted)
25504 wp-includes php=25504
21862 wp-admin php=21862
3609 top_dir php=3609
1334 wp-content php=1334
Totals grouped by language (dominant language first):
php: 52309 (100.00%)
Total Physical Source Lines of Code (SLOC) = 52,309
Development Effort Estimate, Person-Years (Person-Months) = 12.75 (153.01)
(Basic COCOMO model, Person-Months = 2.4 * (KSLOC**1.05))
Schedule Estimate, Years (Months) = 1.41 (16.91)
(Basic COCOMO model, Months = 2.5 * (person-months**0.38))
Estimated Average Number of Developers (Effort/Schedule) = 9.05
Total Estimated Cost to Develop = $ 1,722,451
(average salary = $56,286/year, overhead = 2.40).
SLOCCount, Copyright (C) 2001-2004 David A. Wheeler
SLOCCount is Open Source Software/Free Software, licensed under the GNU GPL.
SLOCCount comes with ABSOLUTELY NO WARRANTY, and you are welcome to
redistribute it under certain conditions as specified by the GNU GPL license;
see the documentation for details.
Please credit this data as "generated using David A. Wheeler's 'SLOCCount'."
I've refactored 50K lines in 3 months before...part time in the evening...and WordPress was sadly better than that codebase...if we can find 4 others to agree we could really raise some eye brows if we succeeded...
I would be interested in finding one or two people wanting to refactor wordpress into something better and more secure. Any takers?
I'm looking at the source as we speak 2.6.3...I have some ideas as to how and where I'd like to start...I'll set some milestones, goals, etc, we can collaborate and get started within a weeks time as I should have a basic TODO list done by then.
Cheers,
Alex