• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

ASP.net vs PHP

TechVill

Junior Member
For a beginner like me, which do you think should I learn as a basic skill in programming? ASP.NET or PHP?
 
For a beginner like me, which do you think should I learn as a basic skill in programming? ASP.NET or PHP?

Languages aside IMO VS IDE is better so you have to take that into consideration.Considering languages both have their pros and cons.C# is much easier to work with.
 
Yes.


I like both of them. When I want to quickly throw something together I prefer to use PHP. Also I find myself having to do more things myself in PHP than ASP.NET since there are so many drag and drop features in VS that I would probably have to end up having to write my own jscript feature for in PHP.
 
Last edited:
Just a note, you are comparing apples and oranges. PHP is a language, ASP.Net is a framework (The language usually being C# or VB).

As far as the language goes, IMO, C# is the better language with a cleaner syntax. As far as frameworks go, PHP has more Open source support whereas C# you almost exclusively surround yourself with microsoft tech. Php has more variety available to it vs C#.

As for "what should I pick up" see discussion here http://forums.anandtech.com/showthread.php?t=2326488

These things generally spiral out into holy wars. IMO, pick whatever you like and stick with it. Your choice at this stage isn't all that important to your overall learning of programming.
 
Personally, I would consider Python + Django or Pylons over php.
 
ASP has that wonderful IDE which makes debugging very easy,at least compared to php,but worldwide php is more popular.Learn both i say,but asp is the better "language".
 
ASP has that wonderful IDE which makes debugging very easy,at least compared to php,but worldwide php is more popular.Learn both i say,but asp is the better "language".

debugging php works pretty much out of the box with xampp and netbeans.

@OP

Basci programming or web application development?

C# is better language than php but I would not use pure ASP.NET if you decide to go that route, use a better web framework.

if you want to host your end product, php will sure be easier and cheaper.

Then for web application development there is also ruby on rails (RoR), grails (or other java frameworks). Or the already mentioned python.

Personally I would not learn PHP as a first language. because it is just crappy and can make you "learn" to do things the wrong way.
 
Once you get a taste of the independence from Microsoft that you get going with PHP or anything like that you might never go back.
 
PHP because it's a fully free platform. Though sadly the job market is probably more towards the MS stuff so ASP.net is not a bad idea to learn if you are thinking of doing coding professionally, though, there arn't many coding jobs out there, most companies outsource their website (and most other code) but I'm sure there ARE some jobs.

For hobby/doing your own business, php or other open source alternative, hands down.
 
PHP because it's a fully free platform. Though sadly the job market is probably more towards the MS stuff so ASP.net is not a bad idea to learn if you are thinking of doing coding professionally, though, there arn't many coding jobs out there, most companies outsource their website (and most other code) but I'm sure there ARE some jobs.

For hobby/doing your own business, php or other open source alternative, hands down.

There are lots of ASP.NET jobs out there. Just browse careerbuilder.com and you will see for yourself.
 
I'll second that asp.net has lots of jobs. Out of school that is what I used up until my job now, where I use mainly java. I've had my resume on careerbuilder since 2010 and I get calls everyweek about c# and asp.net positions.

Java is also a good one because there are many positions for that as well.
 
I'll second that asp.net has lots of jobs. Out of school that is what I used up until my job now, where I use mainly java. I've had my resume on careerbuilder since 2010 and I get calls everyweek about c# and asp.net positions.

Java is also a good one because there are many positions for that as well.

web development in java is a PITA though, I've never come across a java web framework that didn't make me want to throw my computer out the window.
 
web development in java is a PITA though, I've never come across a java web framework that didn't make me want to throw my computer out the window.

Tell me about it...net is so easy to configure and use. Lots of gadgets to use too. My company uses all proprietary java components and all the stuff we use is built in house. That's good but also bad because if I were to leave and look for something else I would need to crank out the books and really study for those technical interviews.
 
Tell me about it...net is so easy to configure and use. Lots of gadgets to use too. My company uses all proprietary java components and all the stuff we use is built in house. That's good but also bad because if I were to leave and look for something else I would need to crank out the books and really study for those technical interviews.

the only upside is job security :\

every java developer I've met always bitches about being stuck on ancient tech because of inhouse solutions that keeps them from upgrading.

meanwhile in the .net world we're more like "aaww yiss new update = new features to make my life easier :awe:!"
 
Yup for large systems running java, upgrading is a pain and in some corporations very slow or not existing. My company is pretty stable in terms of job security but if you want freedom to use the standard widgets and new features and program to your liking as opposed to custom requirements and components, then .net will fit you better.

At my last company I converted about 2-3 web sites from standard VB to .net and being able to use whatever components I wanted was great. The built in features really helped and only slowed me down when I wanted to do something my way but I didn't know all features available at the time.
 
Though sadly the job market is probably more towards the MS stuff so ASP.net is not a bad idea to learn if you are thinking of doing coding professionally, though, there arn't many coding jobs out there, most companies outsource their website (and most other code) but I'm sure there ARE some jobs
Maybe in Canada, but even just in Michigan there's a fuckload of programming and developer jobs. I've been employed for almost a year and a half at this job and just last week I had a recruiter STILL trying to hook me up. And this is just Michigan.

OP: I'd recommend ASP.NET because I think the IDE is excellent and the language (use C# please) has a cleaner syntax and has a lot of nifty features. It's also used a lot professionally as RedSquirrel mentioned. But, like Cogman said, ASP.NET is a framework. Maybe it's because I've used it professionally for a little over 6 years, but I love the .NET framework (for the most part).

However, PHP would be fine too. It's not like you're shooting yourself in the foot by doing PHP first, I just think .NET would be a better choice starting out. Good luck.
 
Back
Top