Live data from Hacker News

The Whole of WordPress Compiled to .NET Core and a NuGet Package with PeachPie

hanselman.com

51–60 of 102 posts

Re: The Whole of WordPress Compiled to .NET Core and a NuGet Package with PeachPie

#51
post #22

Can this solve the Wordpress security nightmare ? are we going to see hosting services built on PeachPie in the near future ?

Saying Wordpress is a security nightmare is like saying Windows is a security nightmare. It has broad use, it has tons of people using it with outdated or unmanaged plugins on installs that haven't been updated in years...Some running near extinct PHP versions. If managed properly, put behind a firewall, etc it is quite safe. The hatred of Wordpress is laughable. It has its limits, but it meets most small-medium size…

As a product you're right - Wordpress serves the needs of small business and non-coder users perfectly well, arguably better than any alternative outside of hosted services like Wix (or, obviously, hosted Wordpress.)

However, as software, Wordpress deserves the hate it gets. There is no real security or firewalling or permissions limiting of plugins, there is no hint of modern PHP practices like Composer integration, routing, or the use of a templating language (and no, PHP itself doesn't count) and the amount of cruft it carries with it for the sake of backwards compatibility makes it insanely complex and far more bloated than it needs to be.

Wordpress in principle is a wonderful, useful product, and anyone trying to compete with it needs to closely study what it gets right (ease of deployment, ease of extension, ease of configuration, auto-updates, plugins, etc.) as well as what it gets wrong. Wordpress in practice, though, needs to be tossed into a pit and burned.

Re: The Whole of WordPress Compiled to .NET Core and a NuGet Package with PeachPie

#52

Earlier quoted context omitted.

That might be a bit harsh. Closer comparison might be photoshop to gimp?

Jekyll is closer to Wordpress but Django is a library / framework so Photoshop to C++ is kinda close, but a little too far.

I'm thinking "django cms", not just django - sorry. colleague of mine has been doing a lot of work in django cms the last year and I conflate the two sometimes :)

Re: The Whole of WordPress Compiled to .NET Core and a NuGet Package with PeachPie

#53

Earlier quoted context omitted.

> If McDonalds is so bad for you, why do they serve 550 million Big Macs every year? This is an amazingly good comparison because in both cases the initial assumption is wrong . Just like WP, McDonalds is not bad for you intrinsically. It’s poor discipline and usage that causes problems.

I might go further a bit because large fast food companies engineer the food to be ... addictive in some capacity. And the WP ecosystem is relatively addictive. "Just one more plugin and these 3 problems will be solved!" Per comment above - I inherited a site with around 60 active plugins. The team before just ... added a plugin for every single problem they encountered. Because... point and click? No experience with…

To be fair, even if you cook for yourself, you still don't know with 100% certainty unless you grow your own crops and animals. When I buy sausages, I'm not exactly sure what's in it, all I can do is pray and hope for the best.

Re: The Whole of WordPress Compiled to .NET Core and a NuGet Package with PeachPie

#54

Earlier quoted context omitted.

Jekyll is closer to Wordpress but Django is a library / framework so Photoshop to C++ is kinda close, but a little too far.

I'm thinking "django cms", not just django - sorry. colleague of mine has been doing a lot of work in django cms the last year and I conflate the two sometimes :)

Ah makes more sense.

Re: The Whole of WordPress Compiled to .NET Core and a NuGet Package with PeachPie

#55

Earlier quoted context omitted.

I might go further a bit because large fast food companies engineer the food to be ... addictive in some capacity. And the WP ecosystem is relatively addictive. "Just one more plugin and these 3 problems will be solved!" Per comment above - I inherited a site with around 60 active plugins. The team before just ... added a plugin for every single problem they encountered. Because... point and click? No experience with…

To be fair, even if you cook for yourself, you still don't know with 100% certainty unless you grow your own crops and animals. When I buy sausages, I'm not exactly sure what's in it, all I can do is pray and hope for the best.

Was thinking that when I was writing that. yeah, you can't always know, and sometimes, you actually do know that there will be pesticides/chemicals/etc that you can't avoid (even if you grow your own stuff, there's crap in the air/soil/water beyond our direct control). In some sense, that's, at very best, no worse than getting food from anywhere else, but it's problematic.

Re: The Whole of WordPress Compiled to .NET Core and a NuGet Package with PeachPie

#57

Alot if shitty attitudes about Wordpress here. If it is so awful, why is it on over 25% of sites? It has helped alot of people make alot of money, and continues to do so.

The problem's normally not Wordpress itself (when kept updated), it's the trash fire of plugins that float around it, leaving all sorts of security issues in their wake.

Re: The Whole of WordPress Compiled to .NET Core and a NuGet Package with PeachPie

#58
post #7

Earlier quoted context omitted.

You could take “C#” out of that sentence and still be accurate. Wordpress is not and I imagine never will be anywhere close to “modern design patterns”. It’s not even close to old design patterns, unless Heinz has a namesake software design pattern. Wordpress uses practices that were considered a bad idea a decade or more ago, and still refuses to change.

Then perhaps, in true open source fashion, you can put your time where your opinions are and either start another project or help the wordpress team to correct what you think is bad.

There are already lots of CMSes out there.

Changing WP to use more modern design patterns (whatever that would entail) probably means breaking all themes and plugins, which isn't acceptable (and even if that wasn't an issue, I doubt the WP maintainers would just accept a PR that completely rewrites everything). This isn't really a thing random contributors can help with.

Re: The Whole of WordPress Compiled to .NET Core and a NuGet Package with PeachPie

#59

Earlier quoted context omitted.

For clients and writing actual content nothing beats Wordpress. The editor is great and a lot of people have used it before so, from a developer point of view, I believe that with Wordpress you should give people what they want. The alternative of demanding they use some 'better' CMS means that the content never gets written or updated. However, not to disrespect the work that has gone into Wordpress, how hard can it…

> how hard can it be Hard. Very hard. Especially because you first have to pick something as well installed and supported on hosts as PHP to even get traction. Good luck there. Then you need to be at least as good in most or all features on launch to get any mindshare. Hope you have a few years to work on this side project before you release... There have been plenty of attempts and of them all Ghost is about the onl…

Just considering the wp text editing box in isolation, it's a hideous masterpiece of a thing, that, alone, would take forever to rebuild.

Re: The Whole of WordPress Compiled to .NET Core and a NuGet Package with PeachPie

#60
post #28

Earlier quoted context omitted.

Why would you start with a decompiled binary when the source code is available?

Because he is trying to sound like he has a clue, lol.

Don't be like that.

https://www.peachpie.io/ - the live demo shows that it compiles to IL which yes, could be decompiled as a starting point of you wanted to extend it in C# (or VB.NET) instead of working in PHP.

Post reply on HN