6 ms·
I work at a large company and we are starting to branch out into other languages. the problem is most of our infrastructure in .NET. Something like this would b
by alistproducer2 10y ago
I work at a large company and we are starting to branch out into other languages. the problem is most of our infrastructure in .NET. Something like this would be really cool as it would allow us to utilize PHP while not asking too much of infrastructure team. I might put in an OSS approval request for this.
- emodendroket 10y agoI think you might be the first case I've heard of of someone wanting to go from .NET to PHP.
- phkahler 10y agoI laughed at that. As much as I still shun MS platforms, I have never heard anything good about PHP as a language other than "it worked and was available at the time". Why someone would migrate in this direction is beyond me ;-) but that's just my opinion of course.
- jacquesm 10y agoCritical mass, availability of developers, good documentation, free. There are many reasons why people pick one technology over another.
- imafish 10y agoOr "facebook uses it". That one tends to go far.
- phkahler 10y agoDidn't they start with it and migrate away?
- jacquesm 10y agoThey use something called HHVM, which is a PHP compiler. http://hhvm.com/ http://hhvm.com/
- floatboth 10y agoAnd Hack, their language for HHVM that's basically "static types bolted on to PHP". http://hacklang.org http://hacklang.org
- jacquesm 10y agoAn aptly named language if there ever was one.
- nvivo 10y agoHack is more than that. Hack solves every little stupid mistake PHP has as a language. It is a good language developed by smart people, has rules to avoid pitfalls and rules to make things more certain. It retains only the syntax of PHP, but in strict mode, hack can be compared to any other good language.
- alkonaut 10y agoAren't C# devs at least as easy to find as php devs already? This would vary regionally I suppose. I'd worry about the future availability of php devs if node/.NET keep growing as open source web backend platforms. And .NET is as free as php?
- jacquesm 10y agoNot in places where wages are low.
- deleted 10y ago[deleted]
- UK-AL 10y agoCheap for employers is what i'm hearing, but isn't really an incentive for an employee..
- jacquesm 10y agoIt is for employees in countries where there are few or no alternatives.
- skrowl 10y agoAgreed. It's usually the opposite, especially in enterprise. People on HN get in their bubbles and forget that most large businesses use Windows.
- pvg 10y agoThat makes it sound like 'people on HN' are trapped in some sort of enterprise-proof foam. Which is unlikely.
- JBReefer 10y agoThis is on .NET Core, so you can actually run this anywhere! I do a lot of Core development on a Mac, but it runs well on AWS/Linux/my toaster. Weird times, huh?
- rattray 10y agoOut of curiosity, why do you use .NET? (Assuming you use Mac/AWS/etc because you like them)
- ChristianGeek 10y agoFor me, it's because I love C# (and F#, which I'm still learning).
- matthewking 10y agoNot the person you asked but I also develop .NET Core on a mac. I like .NET because I can use C# which is my favourite language, and the new ASP.NET Core framework is very clean, modern and straight to the point. There's very little magic and it's performant and productive. Dapper for data access is also fantastic for the same reasons.
- imafish 10y agoBecause C# is awesome. The most intuitive OO language I have ever used.
- floatboth 10y ago
- alistproducer2 10y agoWe literally spend millions on licensing Share Point to do what WordPress can do much better and easier. I'm not saying we're going to start writing everything in PHP, but being able to experiment with WP could affect the bottom line in a big way.
- honopu 10y agoI would look at sitecore. It's still .net, but it is closer to wordpress in that you wouldn't necessarily build a sharepoint in it, but you can build pretty much anything else in it. Disclaimer, I work on the UX/UI side of a company that focuses solely on sitecore.
- pjmlp 10y agoI only had a project with Sitecore, v6.5 at the time, and really enjoyed using it. Just the overall replication of Windows desktop for the backend management UI seemed a bit extreme. :)
- honopu 10y agoYeah it was a bit odd for me too, coming from PHP and node land. Most of the editing should be done in the experience editor.. which is fairly WYSIWYG in context editing. Concrete5 still does that part of it better. Sitecore has a lot of engagement value scoring and content a/b testing built into it.
- alistproducer2 10y agoThanks for sharing this, but what exactly does this provide that WP doesn't to justify the cost?
- emodendroket 10y agoI'm not familiar with the product, but surely leveraging existing expertise has some value.
- 10y ago
- blowski 10y agoMost of my work in the past few years has been migrating .NET projects to PHP for enterprise clients. Especially with PHP 7, the performance is good, it's easier to hire for, and the total cost of ownership is lower. The doomsayers predicting poor security are wrong - it is just as possible to build a secure PHP system as a secure .NET system, and just as easy to build an insecure one. Of course, it depends on the project and the company, so this isn't a universal truth. But there are definitely a lot of companies out there spending a fortune on a .NET stack that are looking to move to a PHP open source stack for good reasons.
- lupin_sansei 10y agoNot sure that's true. Out of the box ASP.NET has request validation enabled by default that screens out lots of opportunities for XSS https://www.owasp.org/index.php/ASP.NET_Request_Validation https://www.owasp.org/index.php/ASP.NET_Request_Validation PHP doesn't have that for example.
- girvo 10y ago> PHP doesn't have that for example. Bare PHP, sure, but pick basically any framework that any modern PHP-based web app is built on and then it does, no?
- emodendroket 10y agoSymfony certainly offers it.
- cutler 10y agoI'm a bit new to .Net but doesn't the shift to .Net Core hosted on Linux and compatible with MySQL/PostgreSQL address all these concerns?
- debacle 10y agoBeing able to use PHP for templating on .NET would be really nice. Webforms suck. Razor is okay, but the syntax isn't as easy for non-programmers to understand.
- dotancohen 10y agoI'm rewriting a legacy ASP application to PHP right now, and this isn't my first. Though the code is not .NET, .NET was the obvious upgrade path yet it was decided that moving to PHP was preferable for a variety of reasons. You already know the non-technical reasons (inexpensive Linux servers, easy to find devs, MySQL licensing vs MS SQL Server licensing, etc) but PHP 7 is extraordinarily performant and (as a VIM user I cannot believe that I'm saying this) with a good IDE such as PhpStorm it is an absolute pleasure to write and maintain.
- pchp 10y agoHi, thanks for your comment. Please email us at info at iolevel dot com and we can take it from there.
- rbanffy 10y agoI would suggest a number of other languages you could consider that are better languages than PHP. https://en.wikipedia.org/wiki/List_of_CLI_languages https://en.wikipedia.org/wiki/List_of_CLI_languages
- Zancarius 10y agoI think "better" in this case is relative. Yes, there are objectively better languages than PHP in terms of design and consistency, but even I'll admit it's difficult to match the shear volume of FOSS libraries, applications, and the huge number of people who know it if you're targeting the web. Besides, if Peachpie expands the .NET ecosystem to include PHP's, isn't that a win for developers who may be stuck with that platform? I'm not a .NET developer, so I'm sure to be missing something here.
- timwaagh 10y agoYet half the web runs PHP. Why? PHP offers good functionality out of the box. Unlike these languages where you will need a hundred-thousand dependencies to build a cms. That is also why porting PHP to .net is not as simple as porting any of these.
- gibrown 10y agoEven more than half. Over 80%: https://w3techs.com/technologies/history_overview/programming_language https://w3techs.com/technologies/history_overview/programmin...
- timwaagh 10y agoYet half the web runs PHP. Why? PHP offers good functionality out of the box. Unlike these languages where you will need a hundred-thousand dependencies to build a cms. That is also why porting PHP to .net is not as simple as porting any of these.
- timwaagh 10y agoYet half the web runs PHP. Why? PHP offers good functionality out of the box. Unlike these languages where you will need a hundred-thousand dependencies to build a cms. That is also why porting PHP to .net is not as simple as porting any of these.
- camus2 10y agoErr, deploying PHP on IIS is actually very basic.