GeneralThis forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Sorry to post here, but I have no other forum to ask this of. Though this is linuxquestions.org, I have seen quite a few people here with experiance in both PHP & .NET, so I'll proceed to ask.
I'm trying to turn our company around to use PHP instead of .NET and I put together a little text doc about it. I'm going to post it below and hopefully some of you will be able to help me add or subtract things as nesscary. I tried to be objective and un-biased. Even if you have nothing to add, I think it's a pretty good comparison.
Code:
----------------+---------------+---------------+---------------
| .NET | PHP | WINNER
----------------+---------------+---------------+---------------
Avg. Salary | $62,000 | $52,000 | PHP
----------------+---------------+---------------+---------------
Cost | $0 Framework | $0 | BOTH OR PHP
| $2,499 VS | |
| $1,799 VS | |
| (upgrade) | |
----------------+---------------+---------------+---------------
Performance | ? | ? | ?
(benchmarks) | | |
----------------+---------------+---------------+---------------
Can modify | not a chance | YES | PHP
and/or fix bugs | | |
----------------+---------------+---------------+---------------
Native DB | YES | NO | .NET
Drivers | | |
----------------+---------------+---------------+---------------
Can be compiled | YES | YES | BOTH
| natively | (additionally |
| | an optimizer |
| | can be used) |
----------------+---------------+---------------+---------------
Requires users | YES, | NEVER | BOTH OR PHP
to install libs | for additional| |
| functionality | |
----------------+---------------+---------------+---------------
Choose language | YES | YES, | BOTH OR .NET
(see discussion)| | with work |
----------------+---------------+---------------+---------------
Debugging | Just plain | Good, can | .NET
| better | find/build/buy|
| | one |
----------------+---------------+---------------+---------------
TOTAL | 3.5 | 4.0 | PHP
----------------+---------------+---------------+---------------
(BOTH is counted as one)
(BOTH OR x IS COUNTED AS .5 for x)
Choice of Language a good thing?
+++++++++++++++++++++++++++++++++
Are the uses of different languages such a good thing? I would
prefer to write my pages in C# (at least under .NET), while
most .NET developers would prefer VB.NET. What if I leave?
Are they going to have to learn C# now? Or will we hire someone
else to do it?
What then, if we standardize the language? Then what's the point
of having a framework to choose a language? Good theory, but
in the real world does this really work?
The languages can be used together only once they are compiled.
Some references:
------------------------------------
http://msdn.microsoft.com/library/de...hpvsaspnet.asphttp://forums.devshed.com/t61568/se3...cd0e7eea3.htmlhttp://www.php.net/usage.phphttp://www.eweek.com/article2/0,3959,476673,00.asphttp://www.php.net/http://www.zend.com/http://msdn.microsoft.com/http://www.asp.net/
As much as I love PHP, I'm going to play devil's advocate and make a case for ASP.NET, provided one condition: Is your company fully committed to Windows as its server platform, or could you possibly get them off of the MS solution? That's really a large factor here, for many reasons. I'll state a few that leap to my mind initially:
1. In for a penny, in for a pound: It's hard to argue cost of development tools when the company's already committed to shoveling money at Microsoft for the myriad licensing that being a Windows shop entails. Client and server OS's, SQL Server, Exchange, Office, etc.
2. If they are a MS shop, it's likely that they're already heavily invested in SQL Server, both in terms of staff expertise and all their business data being on it. If your apps are going to be talking to SQL Server, I don't think you can beat ADO.NET. The ADO libraries fit with SQL Server like a hand in a glove, both in terms of performance and functionality.
I agree with you about the fallacy of language neutrality. You really should standardize on one language for a development team, and in .NET that should almost always be C#. On bigger projects, the code separation that ASP.NET encourages is nice to implement (code-behind, compiled business logic, etc.). Not that you can't achieve a similar coding model with PHP, but it comes very naturally with ASP.NET. On smaller projects, this is less of an issue I suppose.
As far as Visual Studio, if your developers really know what they are doing and can find their way around the API's, they can use any number of editors and develop on .NET for no additional money. Plus, they get the additional benefit of learning to write and debug their own code instead of relying on code-generating wizards that needlessly create an additional layer of abstraction between the developer and the app. One noteworthy editor for .NET stuff is SharpDevelop, a GPL'd IDE written entirely in C#. Someone mentioned WebMatrix, but the knock on that is no Intellisense. SharpDevelop has it, and it makes life a LOT easier when trying to recall a million class methods/properties. I've also heard/read that Dreamweaver is an excellent .NET tool. It'll cost you, but not nearly as much as Visual Studio.
If you haven't figured it out yet, I'm quite fond of ASP.NET on it's own merits as a development platform. Still, it would *never* be enough to convince me to lock-in to MS as a server platform. But if the company's already a MS shop, and plans on staying one, I honestly think that ASP.NET is a better option than PHP. However, if you think they might want to migrate to another platform in the future, PHP gets the nod for being platform-independent.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.