为什么 WordPress 被认为编程不良? [英] Why is WordPress considered to be poorly programmed?

查看:26
本文介绍了为什么 WordPress 被认为编程不良?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不喜欢 PHP 或意大利面条式代码,或者类似的东西,但根据我的经验,WordPress 的工作非常好,它组织得很好,而且我从来没有遇到过任何难以理解的代码.该文档非常详尽,任何安全漏洞都可以在几秒钟内修复,并且正常工作".更不用说它无所不能,而且它有一个很棒的插件系统.哦,循环"很棒.我在对代码或主题进行简单修改时从未遇到任何问题.

I'm not a fan of PHP or spaghetti code, or anything like that, but in my experience WordPress works amazingly well, it's well organized, and I've never come across any hard to understand code. The documentation is incredibly thorough, any security flaws are fixed within seconds, and it "just works". Not to mention that it does EVERYTHING, and it has an awesome plug-in system. Oh, and "the Loop" is awesome. I've never had any problems doing simple modifications to the code or to themes.

你们能举出任何你不喜欢它的具体例子,或者你会以不同的方式编程吗?我只是不明白为什么它会受到如此糟糕的说唱.我希望我自己的软件也能正常工作,拥有尽可能多的功能,而且看起来也一样漂亮.

Can you guys give any specific examples of what you don't like about it, or what you would have programmed differently? I just don't understand why it gets such a bad rap. I wish my own software worked as well and had as many features and looked as nice.

推荐答案

我是 WordPress 的粉丝,但肯定存在阻碍编码人员尝试使用它的问题.作为一个小例子,有 get_the_content()(返回)和 the_content()(打印),但有 get_permalink()the_permalink().然后,只有 the_date(),因为它接受一个参数,表明您希望它打印还是返回.这种事情即使是有经验的 WP 人员也会被逼得不得了,因为您总是必须在谷歌上搜索用法 - 这说明代码中更缺乏对细节的关注.

I'm a fan of WordPress, but there are definitely issues that impede coders trying to work with it. As a small example, there's get_the_content() (returns) and the_content() (prints), but there's get_permalink() and the_permalink(). Then, there's just the_date(), because it accepts an argument indicating whether you want it to print or return. This kind of thing drives even an experienced WP person up the wall, because you've always got to be Googling the usage - and it speaks to a deeper lack of attention to detail in the code.

另一个明显的问题是缺乏内置缓存.它甚至曾经拥有它,但他们将其撕掉并且从未更换过它.您不应该需要第三方插件来在像 WordPress 这样的系统中进行基本缓存,尤其是它内置的所有其他功能.

Another glaring issue is the lack of built-in caching. It even used to have it, but they ripped it out and never replaced it. You shouldn't need a third-party plugin to have basic caching in a system like WordPress, particularly with all the other bells and whistles it builds in.

用(据说)丘吉尔的话来说,WordPress 是最糟糕的博客系统......除了所有其他系统".

To paraphrase (supposedly) Churchill, though, "WordPress is the worst blogging system... except for all the others".

这篇关于为什么 WordPress 被认为编程不良?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆