Peter said:
C# is a general-purpose langauge. PHP is more designed to be used on web servers, which is probably why you find many things related to web development easier in PHP. Personally I would use PHP even if it was more difficult than C# simply because it's open source.
While it IS a general purpose language, ASP.NET whether coded in C# or vb.net is specifically for web applications - its the replacement for classic ASP. During the bank days, I coded classic ASP in vbs and jScript (not javascript, but close enough). I far prefer that to .NET
1. the .NET languages are not really compiled - they are "compiled" (really transpiled like SASS or HAML) into MSIL which is then in turn INTERPRETED just like any other script language by the RTL. So there's really no performance gain to be had since you're not creating machine code.
2. .NET makes simple things difficult - just like Java. Too much trixey non-standard methods of doing things - not enough getting things done.
3. Only recently has microsoft released open source asp.net runtime for Linux, good luck finding a shared host that actually has it. No runtime, no worky! You could always get Windows hosting on IIS, but it's expensive, slow, and generally just sucks. You'll also lose MySql probably - I'm assuming most MS servers are going to run MS Sql Server - which isn't TERRIBLE, but it's not all that great either. At least it isn't Oracle
Learn PHP - it's easy, it works well, it's fast, scalable, it works well with MySql, it's open source, and you'll find no shortage of examples, people to help out, servers that are set up to run it - and run it efficiently ...
If you want a good IDE that won't cost anything - Netbeans for PHP (I used it for years). When you get better at it and want to spend $100 on a better IDE there's PHPStorm. Both work with VCS and can run preprocessors like SASS and HAML, both have debuggers that hook into the browser so you can do variable watches - try THAT with an overgrown text editor
The PHP syntax is a lot like C languages, so it's not like you'll have to learn everything all over again ... and the documentation is pretty solid - although some of the examples are a bit obtuse at times.
.NET sucks for web development, almost as much as Java.
strokerace said:
dukesx said:
But isnt PHP a little too complex , especially after migration from C# ?
PHP is 1000 times easier then C#. I know PHP, but think C# is complex.
Asp.NET whether in C# or VB.NET is a clusterfork. I can't think of one single reason I'd use it over PHP. I'd build sites with C++ or Object Pascal before I'd use .NET. If .NET and Java were the last web programming languages available, I'd consider doing something more fun for a living - like working at a sewage treatment plant or something.