[Google][1]
[1]: http://google.com
- demo answered 12 years ago
- demo asked 10 years ago
- last active 10 years ago
Aquí que?
- demo answered 11 years ago
- demo asked 12 years ago
- last active 7 years ago
- demo asked 11 years ago
- last active 11 years ago
Wordpress. I’ve spent a lot of sleepless nights trying to answer the only one question: “Why??”
Since I’ve faced with its source code I hate it. It is awful. And let my post(and reputation as well) will be minused but it’s true.
It doesn’t have core. There is a rubbish of code instead of core. It reminds php3. Huge heap of unrelated and unlogical functions are used in it. “Copy and Paste” – the only one design pattern is used in wordpress.
Yes, the have emulated using of prepared statements. But why they don’t use PDO, or mysqli? They have copypasted almost all PDO functions but haven’t use it instead. Using of mysqli instead of mysql requires even less efforts.
They use myql_real_escape_string. But there is still something like protect_string_strongly, protect_string_weakly. There is no only only one function – do_not_protect_string_i_believe_my_users.
Global variables – is the philosophy of wordpress. “If we don’t know how to change this var we’ll mark it as global var and everybody will be happy.” – here is what wordpress developers thought when they developed hellpress.
Every new version contains a lot of new in design, they add new default themes, they change background color in admin area from #ccc to #cdcdcd, they use dropdown menu in admin area instead of accordeon. And it awesome. But they do not improve its code.
Did you read comments in WP “core”? No? And I did. They are “awesome”. Something like “What this function is called for? Let’s it leave just in case.” or “Do not hardcode this in new version.” and so on.
The only one answer to the question “Why?” I got is: “Because it works. And if it does work do not touch it!!!”
wordpress.org is one most visited sites in the world. Why? Because nobody able to understand wordpress’s logic. Everybody every time needs to ask something on the forum or read in the codex.
I hope you understand my point of view.
NOTE: This answer was originally posted at StackOverflow.com by Ruslan Polutsygan
- Joan answered 14 years ago
Probando Respuesta…
- demo answered 11 years ago