Live data from Hacker News

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

hanselman.com

11–20 of 102 posts

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

#11
post #6

Holy mother of the pile of crap this thing must be...

We were so preoccupied with whether or not we could, we didn't stop to think if we should.

As much as I love .NET I think, it is not the right thing to run PHP apps on it. PHP is good on its own.

However, Peachpie seems like an awesome showcase what is possible in modern environments and apps.

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

#13
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?

Probably the use of globals etc. This might also be a backwards compatibility thing though.

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

#15
post #7
post #3

It would be amazing if they rewrote wordpress in C# using modern design patterns.

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.

"refuse to change"? It's not easy to change something used by more than 50% of the internet.

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

#16
post #3

It would be amazing if they rewrote wordpress in C# using modern design patterns.

The avantage of php for a self hosted bloging website is that php is installed in almost every hosted server and that makes WordPress easy to install.

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

#17
post #3

It would be amazing if they rewrote wordpress in C# using modern design patterns.

One of the major selling points of WordPress is its huge array of 3rd party plugins. You'd need to port the most popular ones before the C# version got any traction.

How's Linux for .NET hosting? Because Linux hosts are generally cheaper than Windows hosts.

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

#18
post #6

Holy mother of the pile of crap this thing must be...

We were so preoccupied with whether or not we could, we didn't stop to think if we should.

Aaah, it's always nice to see a well-placed JP quote :)

I raise you another:

  God help us; we're in the hands of engineers.

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

#20
post #17
post #3

It would be amazing if they rewrote wordpress in C# using modern design patterns.

One of the major selling points of WordPress is its huge array of 3rd party plugins. You'd need to port the most popular ones before the C# version got any traction. How's Linux for .NET hosting? Because Linux hosts are generally cheaper than Windows hosts.

> How's Linux for .NET hosting?

For .NET Core there are binary packages [1] for Debian/Ubuntu, Fedora, Red Hat and SUSE, so you can apt-get/rpm/yum hosting environment in a matter of minutes. I'd say it's easier to set up and run ASP.NET Core app with Apache or nginx as reverse proxy than with IIS. For "old" .NET you are stuck with Mono [2] which works okay-ish if you don't use Windows-only dependencies.

[1] https://www.microsoft.com/net/download/linux-package-manager...

[2] https://www.mono-project.com/

Post reply on HN