TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Another new era of WordPress

141 点作者 xngzng大约 10 年前

24 条评论

grwgreg大约 10 年前
&quot;Unless you’ve goofed something up, the slowest part of your PHP-based application should be PHP itself.&quot;<p>Is the database not the bottleneck? Especially with the way wordpress stores &quot;post meta data&quot; with key and value columns it seems that the joins could get a bit ugly.
评论 #9121008 未加载
评论 #9120406 未加载
评论 #9123113 未加载
评论 #9121006 未加载
评论 #9121970 未加载
评论 #9121105 未加载
lolatu54大约 10 年前
Every time I have to debug another problem in Wordpress, every time I encounter another bug in WP&#x27;s core code I raise my head up and cry, impotent rage against the nameless void. Wordpress&#x27; architecture resembles a plate of spaghetti. It&#x27;s abominable, a horror upon the face of this planet.<p>I don&#x27;t mind PHP though :)
评论 #9122210 未加载
评论 #9122582 未加载
评论 #9123777 未加载
评论 #9122613 未加载
ZenoArrow大约 10 年前
What struck me is that one of the benefits of the WP-API is that you could create a drop-in replacement for the server-side of Wordpress. Why? To move WP away from PHP.<p>Seriously, if the API is stable, why not just build something that matches it using a faster, cleaner language? The user gets the speed benefits, the developers get to start again from a clean(er) slate. The only hole in this idea is the shortage of cheap hosting which offers something other than PHP for dynamic websites.
评论 #9121093 未加载
评论 #9123805 未加载
BorisMelnik大约 10 年前
What other CMS is as easy to teach to end users, is free, and works 99% of the time? What other CMS can turn itself into an eCommerce store, blog, business website, magazine, etc with a few small tweaks?<p>I hear a lot of these comments from very well respected developers, but as a user and webmaster (not a developer) of WordPress I am very satisfied with it, and rarely see a WordPress site that runs slow, with the exceptions of poorly coded themes which will slow down ANY CMS.<p>I manage a lot of websites, probably 200 or so of them are WordPress. Over the last 5 years I&#x27;ve seen about 5 hacks, 3 were due to outdated plugins and 2 were brute forced. Backups are incredibly easy (file structure and database) for an end user with plugins, and maintenance for an average WordPress takes about 20 minutes per month.<p>I think this discussion is very positive in the fact that the core of WordPress is very outdated and has not really been touched in the last 5 years (or more?) or so. I&#x27;d love to see version 5 or 6 be a full re-write or even a partial rewrite of the main functions and core includes, perhaps even a more efficient language but that is not really my territory. The problem I see with all that is backwards compatibility. There are so many themes, plugins, and addons that depend on WordPress core hooks, I don&#x27;t know how that could work seamlessly. I suppose that is what beta testing is for.<p>As I&#x27;ve already said in this thread, WordPress is a huge success in the mainstream and is gaining in popularity every day. 75 million WP sites last I checked vs a fraction of that in Drupal and Joomla.<p>Node is on the rise but is still a custom solution and not deployable unless you are a skilled developer with knowledge of the network stack.<p>We live in an age where end users want to be able to control their website backend. They want to blog, make changes to static pages, add images from events and even add their own products. Have you ever tried to teach someone to do this in Joomla and Drupal? I have, with success but it is 100x more difficult than WordPress.
评论 #9123199 未加载
bikamonki大约 10 年前
No-backend cuasi-static would be a new era. There is no reason for a dynamic CMS on sites that are updated twice a month and maybe reach 50k visits&#x2F;mo; I am sure the vast majority of WP sites out there are of such nature.
评论 #9120837 未加载
评论 #9121425 未加载
评论 #9120833 未加载
评论 #9123256 未加载
pearjuice大约 10 年前
Once, maybe twice every year you have this blog post of how WordPress will improve, will be rewritten to a modern foundation, will reinvent blogging plastered with the sympathetic &quot;WordPress gets the job done but the foundation is horrible&quot;. Fast-forward a few months and WordPress releases a new version, the project to rewrite WordPress didn&#x27;t gather enough momentum and there you are, slapping in another function_exists in your module and thinking &quot;man, why did nobody ever improve this horrible house of cards?&quot;.
jacques_chester大约 10 年前
So far as I can tell, the actual meat and potatoes of Wordpress has been largely untouched for more than a decade. I first looked under the hood in 2004, last looked in I think 2013 or so. And basically it all seemed spookily familiar.<p>Wordpress is the triumph of style and marketing over all other considerations. Having managed a small fleet of Wordpress sites for over a decade, I am not a fan.<p>And I am not very optimistic about Grand Visions In Blog Posts. I&#x27;ve had a few of those myself.
thebouv大约 10 年前
I can get behind WP-API and like that direction.<p>However, I can&#x27;t wrap my mind around like React.js. Having a mental roadblock on even diving it to do prototypes with it to give it a whirl (which I often do with new libraries or languages even).
评论 #9120174 未加载
maratd大约 10 年前
I&#x27;m sorry, but the logo on this blog is so creepy. Seriously.
评论 #9120386 未加载
评论 #9120761 未加载
rlander大约 10 年前
&quot;the unkillable cockroach of the world wide web: PHP&quot;<p>I&#x27;m biased but this is best quote I&#x27;ve heard in quite a while.
评论 #9120713 未加载
ciarlill大约 10 年前
This is nice to read. I just started looking into a playing with React... and then got the great idea to start recreating something like <a href="http://p2theme.com/" rel="nofollow">http:&#x2F;&#x2F;p2theme.com&#x2F;</a> with React and WP-API. Good to see that I am on the right track ;) There is not much to it yet (still in prototype&#x2F;PoC stage) but for those interested: <a href="https://github.com/alexciarlillo/react-wp" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;alexciarlillo&#x2F;react-wp</a>
评论 #9121053 未加载
deanotron大约 10 年前
The thing about WordPress is that for most clients you&#x27;ll likely end up running on a managed WP server like WP Engine.<p>The vanilla WP environment means goodies like React (which requires V8 to compile on the server) and HHVM are not in the cards. But PHP and WordPress really doesn&#x27;t need to be fast (just put it behind a CDN).<p>Isomorphic rendering over the WP-API is all you need - I&#x27;ve had a lot of benefit using logic-less templates like Handlebars on the client and the server.
评论 #9121106 未加载
bobloblaw02大约 10 年前
&quot;One taste of React in front of WP-API, and I reckon the jQuery and Backbone era will be finished.&quot;<p>This seems to me like a bit of an exaggeration (or maybe just facetious).
评论 #9120722 未加载
评论 #9121022 未加载
jetskindo大约 10 年前
It&#x27;s unrealistic to compare WordPress php and Facebook php. Most website running WordPress do not need the optimization required to run facebook.<p>If there is something that slows down WordPress it&#x27;s the database queries, the amount of external assets and bloated themes. There are more then files being downloaded for each requests and all served from the same server.<p>Throw in hhvm or any optimization on the code and you still have to deal with the other issues.
评论 #9121694 未加载
评论 #9121703 未加载
omg_ketchup大约 10 年前
I was just reading about this...<p><a href="http://wptavern.com/heroku-wp-a-template-for-installing-and-running-wordpress-on-heroku" rel="nofollow">http:&#x2F;&#x2F;wptavern.com&#x2F;heroku-wp-a-template-for-installing-and-...</a>
dustin1114大约 10 年前
I like the idea of a WP API. I guess in the future you could more easily build non-browser apps that utilize WP data. Of course, there&#x27;s always going to be the people who don&#x27;t very much like the whole front-end JavaScript MVC idea (Backbone, React, Angular, etc.), but there will still be the regular PHP themes for them to use.<p>My only wish is that a proliferation of horrible themes based on inefficient JS does not occur. Front-end MVC can be done right, but don&#x27;t abuse it with bad code that gives the rest a bad name!
评论 #9120376 未加载
评论 #9120137 未加载
audessuscest大约 10 年前
This is not specific to Wordpress, you can apply the same to Drupal or any cms&#x2F;framework able to send data in json
评论 #9120890 未加载
ksec大约 10 年前
I really wish all of these similar ideas were to happen on Ruby and Rails.<p>Ruby need something similar to HHVM, progress on the RuJIT sponsored by Ruby Association looks like stalled. IronRuby ( or something similar ) on the new Microsoft CoreCLR will take years.<p>And Rails Core team, or DHH seems to be against the Rails API ideas.
galigan大约 10 年前
I had read the post, thinking that there is a good new direction in wp. At the end, the only valuable thing for me, is rendering templates using the wp-api instead of the big mess of files and code that actually is. Also this way, you don&#x27;t expose your wordpress install xD
sdnguyen90大约 10 年前
All I want is a templating language in the WordPress core and I can live with all the other bad parts.
评论 #9122004 未加载
pjbrunet大约 10 年前
&quot;Unless you’ve goofed something up, the slowest part of your PHP-based application should be PHP itself. Other parts of your stack may exhibit scaling problems that affect response times, but in terms of raw performance, PHP is the piggy in the middle of your web server and data stores.&quot;<p>I completely disagree. PHP is rarely the issue and I don&#x27;t know where people get this idea that PHP is slow. Unless you&#x27;re calculating the flight trajectory to Mars, the main bottleneck of WordPress is MySQL. Fill up you PHP application with microtimers, you&#x27;ll see PHP only needs milliseconds to do its job even without caching. If there&#x27;s anything slowing you down, you&#x27;re waiting for MySQL or Curl or some external application, which is unnecessary most of the time if you designed the application properly.
评论 #9123081 未加载
teabee89大约 10 年前
If all the UI will be delegated to JS, what HTML will WP produce? An empty body while React is loading?
评论 #9120665 未加载
jacobbudin大约 10 年前
WordPress is a great product? PHP is the &quot;cockroach of the world wide web&quot;?<p>Who&#x27;s next up on the soapbox?
arxpoetica大约 10 年前
IMO, WordPress could benefit by shifting to Node.js.
评论 #9121426 未加载