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

Is there any reason to Learn PhP before Python (or C#)

Discussion in 'General Programming Chat' started by mackristo, Apr 17, 2009.

  1. mackristo

    mackristo Newbie

    Joined:
    Apr 27, 2008
    Messages:
    7
    Likes Received:
    0
    I've been bouncing around between all of these and I'm trying to stay focused on one. Generally, I do want to stay focused on web development but I keep hearing how PHP teaches bad habits. It seems like .NET has great resources for learning and Python just seems cool.
     
  2. invinceable

    invinceable Regular Member

    Joined:
    Jul 12, 2008
    Messages:
    427
    Likes Received:
    73
    Home Page:
    Well, what is the ultimate goal you would like to accomplish and then I can suggest a language.
     
  3. mackristo

    mackristo Newbie

    Joined:
    Apr 27, 2008
    Messages:
    7
    Likes Received:
    0
    Ultimately web development but, that said, I would like to learn good habits and develop great sites. It might be nice to have job options eventually but I realize that it shouldn't be the primary concern at this point. I would like to do a lot of internet marketing and create web 2.0 ish type of sites.
     
  4. thaorius

    thaorius Junior Member

    Joined:
    Aug 19, 2008
    Messages:
    109
    Likes Received:
    33
    Is not that PHP will teach you bad habits, the thing is that PHP used to be a non object oriented, then on version 5, a very good support for the object oriented was added, yet most the core functionality is still grouped in functions. This is about to change with PHP6 which is entirely object oriented.

    Does this mean PHP will teach you bad habits? no unless you don't really want to learn how to program and just memorize lines, which doesn't seem to be the case.

    Speaking of python, it's a great language, specially since Py3k is out, you should learn python, even if you don't use it for the web(and if you do, check out Django).

    As of .Net, yes, it's all pretty and simple, and even I like C#'s syntax, but it only runs on windows, and without flaming windows, there is a reason 99% of the servers on this planet use some form of unix, being linux and freebsd among the most common.

    Btw, you might also wanna take a look at Ruby(and it's lovely Ruby On Rails), personally, ruby is not "my" language, but it's certainly a very interesting choice.
     
  5. Anigma

    Anigma Newbie

    Joined:
    Apr 16, 2009
    Messages:
    5
    Likes Received:
    1
    Home Page:
    It really depends on what you plan on doing. PHP is, of course, used to webdev stuff while Python, C# and Perl are mostly used (at least in seo land) for interfacing with web services. So if you wanted to write seo software, I would probably say to go with PHP first, as that not only gives you a gentler start into programming, but it also familiarizes you with how webapps work. So when you move onto a more solid language like Python, you already understand the basics of how to mess with web applications.
     
  6. aмillionaírе

    aмillionaírе Jr. VIP Jr. VIP Premium Member

    Joined:
    Apr 20, 2008
    Messages:
    532
    Likes Received:
    358
    Less talking more doing. You won't get anything finished by being picky. These languages can easily be ported to another.
     
  7. MirniPobjednik

    MirniPobjednik Registered Member

    Joined:
    Mar 12, 2009
    Messages:
    56
    Likes Received:
    10
    The key is to learn what you need , only learn objects you will need because the field is very vast there are thousands of objects and you will need for seo only some of them.

    You can acomplish anything with any language in most cases, the question is how productive you will be , how fast you can program and how fast you can learn new stuff this is what matters most.
     
    • Thanks Thanks x 1
    Last edited: May 1, 2009
  8. drey2k

    drey2k Power Member

    Joined:
    Jan 4, 2009
    Messages:
    551
    Likes Received:
    169
    Occupation:
    Finance guy
    Location:
    USSR 1943
    Yea like others said, I think it's important to just get started on something. I find myself largely in the same situation as you, I just need to start on some language finally and go from there.
     
  9. spite42o

    spite42o Junior Member

    Joined:
    Jan 9, 2009
    Messages:
    183
    Likes Received:
    146
    Occupation:
    BHPimp
    Location:
    Your Moms House.
    yea, learning how to use a tool is more important then which type of drill do i buy ;x for me, c# was the way togo... not only do you have awesome windows app creation ability, you're able to take it to the web with asp... and its streamlined for ajax and JS... on the other hand, vb is the same way, without the JS support... its easier from what i hear, but man i tell you... i fell a lot better at the end of the day when i have my face slammed into the keyboard 230942039480293490342 times with c# ;D the choice is yours my friend ;D
     
  10. mackristo

    mackristo Newbie

    Joined:
    Apr 27, 2008
    Messages:
    7
    Likes Received:
    0
    Thanks for your help. I was kind of thinking the same thing. It seems that C# offers a better learning environment with all of the msdn stuff. Have you had much experience with umbraco? The reason I keep looking to php is because of Wordpress and Drupal and the ability to build affiliate sites on them but I'm sure the same can said for C#/ASP.NET correct?
     
  11. MirniPobjednik

    MirniPobjednik Registered Member

    Joined:
    Mar 12, 2009
    Messages:
    56
    Likes Received:
    10
    One more thing, i think the most important advice is not said here, the most important language is calleda attitude and it is written in your mind by your internal voice, if you think of programming as a way to make money you will sooon hate your guts, try to aim for having fun and you will never feel frustrated but you will still make awesome code this is the most important thing i learned , if you love what you do then its just love making with the code and you will never give up on it .
    Make yourself a coding oasis where you can come to rest and enjoy the beauty of the code, think of programming on That way!

    So like in life it can be a brunnete, blonde or even ugly girl you can still enjoy them all with the right attitude. :_)
     
    • Thanks Thanks x 1
    Last edited: May 5, 2009
  12. _Austin

    _Austin Junior Member

    Joined:
    Apr 9, 2009
    Messages:
    147
    Likes Received:
    39

    Agreed when I was programming and just trying to make money I hated every minute of it but after I took a break and now that I'm getting back into the game I'm really motivated and having a lot of fun just programming for the hell of it. Pretty much when you start doing anything for the money it makes it less enjoyable and feels almost like a chore doing.

    As for picking a language it's all based on your needs, once you learn one you will easily be able to transition to others, it's just a matter of learning the new syntax. The best advice so far is to first pick what you want to use it for first then just get started.

    _Austin
     
  13. tutzor

    tutzor Registered Member

    Joined:
    Aug 13, 2008
    Messages:
    76
    Likes Received:
    9
    PHP is just easier if you want to create SEO scripts, cURL library makes it a breeze to parse, get and post data, and the syntax is much more understandable in my opinion.
     
  14. tutzor

    tutzor Registered Member

    Joined:
    Aug 13, 2008
    Messages:
    76
    Likes Received:
    9
    That is great advice right there. I used to do programming just do make money from all the SEO shit I was doing, like article submitting, registrations, parsing and what not. I used to hate it and was getting frustrated every day running into common programming bugs and problems. Then I changed my attitude and decided to concentrate on the present moment (the time I also started focusing on mindfulness meditation LOL), but yeah it totally changed the way I react to problems when I run into them and by focusing on knowledge instead of making money is a lot more fun and productive. Be careful not to develop same lust for knowledge and start trying to prove that you're smarter than everyone by showing off your programming skills, it can be same type of grasping and striving as money. Stay focus on the present and have fun learning, that's the way to do it. Sharing ideas with others can also make it more fun.
     
  15. dvno879

    dvno879 Regular Member

    Joined:
    Nov 2, 2009
    Messages:
    320
    Likes Received:
    69
    Occupation:
    Hustler...
    Location:
    Behind You...
    what about visual basic? they teach that in my school and i find it pointless..
     
  16. artizhay

    artizhay BANNED BANNED

    Joined:
    Nov 21, 2010
    Messages:
    1,867
    Likes Received:
    1,335
    The thing is, a ton of languages are all very closely related. Many functions and things you will need to do in any program are common among all languages. However, there are some notable differences, like the initialization of variables and arrays. In PHP, you don't need to state the type of variable and you can generally skip many rules.

    For example, in C++, if you want an integer, you have to do:
    Code:
    int varName = 0;
    and you cannot store anything but integers in that variable unless you cast it as something else or do a conversion process.
    But in PHP you can just do this:
    Code:
    $varName = 0;
    and then if you want, you can do
    Code:
    $varName = "string";
    PHP is much less strict so I guess you could forget some common programming rules, but you won't learn bad habits unless you let yourself.
     
  17. nice1

    nice1 Regular Member

    Joined:
    Aug 11, 2009
    Messages:
    308
    Likes Received:
    57
    Occupation:
    Money making
    Location:
    Utopia
    what about auto it - do you recomend it ?