5 ms·
It would be amazing if they rewrote wordpress in C# using modern design patterns.
by wpdev_63 8y ago
It would be amazing if they rewrote wordpress in C# using modern design patterns.
- dan1234 8y agoOne 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.
- magnat 8y ago> 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/rhel/runtime-current https://www.microsoft.com/net/download/linux-package-manager... [2] https://www.mono-project.com/ https://www.mono-project.com/
- squirrelicus 8y agoI've been having great luck with ASP.NET core / nginx. Very stable, low overhead with 40k req/sec served in a ubuntu VM. I hate MVC, so I've been using Nancy (Sinatra based) as the web framework. I'm highly confident in .NET Core being production ready.
- custos 8y agoDecompile the resulting library and start refactoring and adding comments?
- nicoburns 8y agoWhy would you start with a decompiled binary when the source code is available?
- gaius 8y agoBecause then you don’t need to look at the source code
- kxkckic 8y agoBecause he is trying to sound like he has a clue, lol.
- voltagex_ 8y agoDon't be like that. https://www.peachpie.io/ 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.
- stephenr 8y agoYou 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.
- radium3d 8y agoDo you have any examples of the bad practices you are referring to?
- sebazzz 8y agoProbably the use of globals etc. This might also be a backwards compatibility thing though.
- akerro 8y agoDeveloping anything for wordpress is a nightmare, it's not only PHP-nightmare, but also plenty of bad practices, poor API, wired workarounds...
- stephenr 8y agoThey actively refuse to use parameterised sql queries, opting for their own home baked userland implementation instead.
- iamjaredwalters 8y agoExamples include: use of globals, inefficient queries, mixed templating, lack of namespacing, doesn't follow PSR standards.
- firefoxd 8y ago"refuse to change"? It's not easy to change something used by more than 50% of the internet.
- jeremiep 8y ago
- maxxxxx 8y agoThe first step should to be to rewrite in PHP 7 using modern design patterns. I don't think C# would add much there.
- ognarb 8y agoThe 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.