Live data from Hacker News

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

hanselman.com

71–80 of 102 posts

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

#71
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.

In the sense that (IMO) most people don’t need Wordpress, I am, I am (slowly) working on (yes another) static site generator.

But, in response to your general theory: I can criticise a car as being fucking terrible without someone suggesting I “go build my own then”.

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

#73
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.

Do you have any examples of the bad practices you are referring to?

Examples include: use of globals, inefficient queries, mixed templating, lack of namespacing, doesn't follow PSR standards.

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

#74

So, what's the WordPress equivalent in Python?

Wagtail.

There's also a very nice library that can dump all the pages from Wagtail into a static site which you can then just copy to a CDN, giving you the best of both worlds: The ease of publishing of dynamic sites and the speed/ease of deployment of static sites.

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

#75
post #22

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

Wordpress core has very secure coding practices, and if you can find an 0-day in it, then you've done very, very well. The problems with Wordpress are mostly: 1. WP installations are often not properly configured or maintained. 2. The plugin ecosystem is a mess of vulnerable and/or malicious code, or simply dead code that isn't maintained yet still deployed in the wild.

Writing your own userland implementation of prameterised queries is what you consider “very secure”?

I’d hate to see what you think is terrible then.

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

#77

Earlier quoted context omitted.

Wordpress core has very secure coding practices, and if you can find an 0-day in it, then you've done very, very well. The problems with Wordpress are mostly: 1. WP installations are often not properly configured or maintained. 2. The plugin ecosystem is a mess of vulnerable and/or malicious code, or simply dead code that isn't maintained yet still deployed in the wild.

Writing your own userland implementation of prameterised queries is what you consider “very secure”? I’d hate to see what you think is terrible then.

What exactly is your criticism here? Do you know of some issue with prepare()? The quality of the core Wordpress code is quite high. You could argue that the plugin system is a footgun, but it’s kinda an essential element if you want extensibility.

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

#78

Earlier quoted context omitted.

"If it is so awful, why is it on over 25% of sites?" If McDonalds is so bad for you, why do they serve 550 million Big Macs every year? WP is 'free', has a low barrier to entry, and for many years non-developers were able to relatively easily add custom functionality (sometimes done well, but often security and performance nightmares). A lot of people make a lot of money from selling illegal drugs, or fatty foods, or…

A poor comparison. McDonalds is highly variable per location. Just because the one closest to you might be terrible doesn't say anything about the rest of the world.

food, not service. mcdonalds food is about as 'same' as you can get per location around the globe.

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

#79
post #65

Earlier quoted context omitted.

There is nothing good for you at McDonalds. Even thier “healthy” options are less healthy and over processed compared to local restaurants.

The apples are okay.

the coffee and water and juices aren't too bad either. :)
Post reply on HN