1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

(C# + ASP.NET) vs PHP - Which one to prefer?

Discussion in 'General Programming Chat' started by IndianGrad, Aug 13, 2011.

Tags:
  1. IndianGrad

    IndianGrad Junior Member

    Joined:
    May 13, 2011
    Messages:
    156
    Likes Received:
    31
    Occupation:
    Internet Marketing
    Location:
    In the sea of blackhatters
    Hi

    I have to select which one amongst (C# + ASP.NET) vs PHP I would be using in future. What do you guys suggest?

    My tasks are not design/graphics oriented but more of logic/scraping/api etc. oriented, if that helps.
     
  2. flymethod

    flymethod Regular Member

    Joined:
    Oct 27, 2010
    Messages:
    214
    Likes Received:
    58
    I like asp.net. Visual Studio is nice. If you know vb.net or c# you can easily create web apps or windows form apps depending on what kind of software you're developing. I work mainly in windows and on windows server so that's just my preference.
     
  3. IndianGrad

    IndianGrad Junior Member

    Joined:
    May 13, 2011
    Messages:
    156
    Likes Received:
    31
    Occupation:
    Internet Marketing
    Location:
    In the sea of blackhatters

    My tasks are mostly going to be web oriented projects and not desktop applications.
     
  4. Chris22

    Chris22 Regular Member

    Joined:
    Sep 29, 2010
    Messages:
    400
    Likes Received:
    1,059
    I'd have to say ASP.NET MVC, absolutely fantastic framework.
     
    • Thanks Thanks x 1
  5. Gradimir Stankovic

    Gradimir Stankovic Power Member

    Joined:
    Jan 10, 2010
    Messages:
    737
    Likes Received:
    845
    Location:
    404 not found
    I'm wondering this too, asp.net is great because of c# support and AMAZING tool for developing apps (Visual Studio), but there are more php coders and sites out there.
     
  6. IndianGrad

    IndianGrad Junior Member

    Joined:
    May 13, 2011
    Messages:
    156
    Likes Received:
    31
    Occupation:
    Internet Marketing
    Location:
    In the sea of blackhatters
    I feel the same. I have some exposure of ASP.NET and none of PHP but when I see around, I find that most websites are in PHP, most coders for PHP and many apis.
    So that just puts me in question!
     
  7. Embalzon

    Embalzon Newbie

    Joined:
    Mar 3, 2009
    Messages:
    22
    Likes Received:
    3
    Occupation:
    | SEO | SEM | IMM | BHM |
    Location:
    some where near to earth
    look dear everything have its own pros & cons, PHP also have MVC and framworks, it basically depends what you want to make,

    so please first decide what you want to make, then consult with some software engineer, i can also help you in it,

    Regards
     
    • Thanks Thanks x 1
  8. deepkg

    deepkg BANNED BANNED

    Joined:
    Jun 11, 2011
    Messages:
    409
    Likes Received:
    208
    Agreed with @http://www.blackhatworld.com/blackhat-seo/members/36332-embalzon.html
     
  9. IndianGrad

    IndianGrad Junior Member

    Joined:
    May 13, 2011
    Messages:
    156
    Likes Received:
    31
    Occupation:
    Internet Marketing
    Location:
    In the sea of blackhatters
    As I had previously said, most of my requirements rotate around web development including scraping of data, using apis etc.

    I don't do desktop application development or graphics/designing etc.
     
  10. other_henry

    other_henry Junior Member

    Joined:
    Jun 1, 2011
    Messages:
    107
    Likes Received:
    19
    Occupation:
    Freelance coder, server guy
    Location:
    US
    If you want to work for clients look at the OS they use.

    Most small businesses are on linux servers because they are cheaper, that requires PHP.
     
  11. NTG98

    NTG98 Junior Member

    Joined:
    May 27, 2009
    Messages:
    128
    Likes Received:
    12
    Occupation:
    Student
    Location:
    Texas
    Speaking of which, if I want to automate stuff like angela links, would VB work for that? Or C? I have a background in php and perl, but I'm lost in this .NET world.
     
  12. Dr_bloomsfield

    Dr_bloomsfield Newbie

    Joined:
    Aug 11, 2011
    Messages:
    3
    Likes Received:
    4
    From my experience, PHP would probably be the better choice for just web application development. .NET is pretty powerful, but as other posters have said, there are many more php programmers around, and a large amount of the web is built on php now, including the apis to go with that.

    Another thing to consider, you might want to bring on a freelancer from time to time to get something out quickly or pickup where your skills leave off. You can pretty much throw a rock in any direction and hit a competent php developer in most places.

    Another language that is gaining lots of momentum is Ruby, there are already a considerable amount of incredible web-apps built on ruby.

    Also, from my experience, ruby isn't too hard to get into, php isn't great because there is a TON of resources to pull advice from on the web and in local communities (almost every major city has a PHP user group meet up, most have a Ruby meet up) .net stuff isn't quite as accessible.

    Just like most of lifes questions, php vs .net, at the end of the day, the best answer anyone can truthfully give you is "it depends"

    Happy Coding
     
    • Thanks Thanks x 1
  13. IndianGrad

    IndianGrad Junior Member

    Joined:
    May 13, 2011
    Messages:
    156
    Likes Received:
    31
    Occupation:
    Internet Marketing
    Location:
    In the sea of blackhatters
    Makes lot of sense. Thanks :)
     
  14. Mosquera

    Mosquera Newbie

    Joined:
    Feb 24, 2009
    Messages:
    32
    Likes Received:
    18
    PHP is a pretty easy language to grasp. If it's one of your firsts, I recommend learning some of it as it will help understanding other languages. It has a BIG load of functions that make things that are usually tiresome easier.

    Also, what they said: there are hundreds of examples of codes you can learn and use with.
     
  15. IndianGrad

    IndianGrad Junior Member

    Joined:
    May 13, 2011
    Messages:
    156
    Likes Received:
    31
    Occupation:
    Internet Marketing
    Location:
    In the sea of blackhatters
    True.

    I actually already know c,c++,java(only core,not web), a bit of PERL

    Also, a bit of c# and ASP.NET.

    But none of PHP.

    So, as you can see from the above, on account of my previous knowledge, I'm bit inclined towards c# and ASP.NET but wanted to decide if I should get into php right now itself since later on, learning becomes a bit difficult when you're already earning :p

    I guess I'll give php a go sometime soon. Hope it is similar to some of the other languages I know of!
     
  16. Mosquera

    Mosquera Newbie

    Joined:
    Feb 24, 2009
    Messages:
    32
    Likes Received:
    18
    If you know C, or C++, you don't have much to learn about PHP. Heck, I didn't even know what an int was when I started with PHP. There's only left those things that apply to webapps, that you would probably have to learn with ASP anyway.

    You won't lose anything by learning any of those 2, though.
     
  17. 195471

    195471 Regular Member

    Joined:
    Oct 11, 2008
    Messages:
    417
    Likes Received:
    260
    I love ASP.NET, but it can be cost prohibitive depending on what you want to do. ASP.NET is more often used in corporate environments, whereas LAMP is the "poor man's" way to do web development. Quality Windows hosting is more expensive than Linux hosting, and if you're going to be in a shared hosting environment, there will be limits to what you can do with your ASP.NET applications. To take advantage of the most powerful features of ASP.NET and SQL Server, you need a VPS at the very least, and preferably a dedicated server where you have full control of IIS, SQL Server, etc.
     
  18. kokokos

    kokokos Newbie

    Joined:
    Sep 8, 2010
    Messages:
    23
    Likes Received:
    7
    Occupation:
    IM Full Time
    Location:
    In God's Vagina - Thailand
    Just look around, most common platform around is LAMP and PHP is reputable part of it, Wordpress, OScommerce, most stable CMS, even Facebook build upon LAMP. Choice of language depends on the platform that you going to use, PHP is not native for windoz environment and vise-verse, asp isn't native for linux-apache.
     
  19. zenky

    zenky Newbie

    Joined:
    Nov 26, 2010
    Messages:
    32
    Likes Received:
    7
    c# .net for sure :)!
     
  20. licorne101

    licorne101 Registered Member

    Joined:
    Aug 22, 2011
    Messages:
    88
    Likes Received:
    118
    It would be best to learn all of them. It is not that difficult to pick up more programming languages after you've 'mastered' one.

    By knowing everything you guarantee that you are capable of picking up any job that your client comes along. Also, you'll be able to use many awesome frameworks that may be available for a language and not for another.

    The programming aspect always depends on the particular project you're working on. There is no definite answer. However, despite that said, I prefer PHP with Codeigniter.

    It is a light framework that is opensource, has good functions and very customizable if you prefer to build things from scratch...

    Hope this helps.