Facebook   Twitter    e-mail newsletter    YouTube    RSS Feed    Android App    iPhone and iPad App     BlackBerry App    


Page 1 of 3 1 23 LastLast
Results 1 to 15 of 33

Thread: Why I choose PHP as my web development language.

  1. #1
    Active Member
    Join Date
    Mar 2011
    Location
    Johannesburg, South Africa
    Posts
    56

    Default Why I choose PHP as my web development language.

    Well this is more of an opinion, I will be starting a blog in the near future.

    Well first of PHP is so quick to install with servers as the Apache HTTP server, there are a few configuration changes to apcahe HTTP httpd.config and the PHP.ini file but once that's solved it's done and ready to deploy an application you can think of.
    Also you can use quick set up solutions as in wampserver or lampserver depending on what operating system you are running on.
    I am still yet to test the scalability of PHP applications but will do so as soon as I can drive enough traffic to a web application.

    By the way this is not spam.

    I also like PHP as it is still a language in it's infancy, maybe it's loosely typed and it's not a true oop language but it does get things done quickly and with great productivity, with all the beautiful frameworks for PHP as in cakePHP, YII, codeIgniter and the Zend framework It just makes it such a great tool for conceptualization and prototyping of applications for the web and mobile.

    Of course we could argue with languages as in asp.net or jsp well those are great languages for web development with the strict type and true oop of Java and C# but I do think they should be used for much large applications then your basic sites and apps like I would use jsp for a banking app or payment system and if it was a microsoft project then of course asp.net but I am not a microsoft advocate right now but I will see what windows 8 brings to the table.

    Well getting back onto topic, PHP can be used to create anything from social networks as in facebook, myspace to search engines as in google but I would much rather use java and it's nio api to scrape sites to build an index but it really is such an amazing language of course there are those who would criticize it but it great for what it is.

    e.g

    <?php
    $url = 'yousite.com';
    echo $url
    ?>

    what a simple language.

  2. #2
    Master of Messengers teraside's Avatar
    Join Date
    Mar 2006
    Location
    Nelspruit
    Posts
    20,133

    Default

    Any tips for a complete n00b with fear of coding to learn PHP?

  3. #3

    Default

    Quote Originally Posted by teraside View Post
    Any tips for a complete n00b with fear of coding to learn PHP?
    Learn something else. Python and Ruby are excellent choices.

    PHP is a truly terrible language.

    Edit: for the interested: http://me.veekun.com/blog/2012/04/09...of-bad-design/
    Last edited by icyrus; 16-05-2012 at 10:57 PM.

  4. #4
    Active Member
    Join Date
    Mar 2011
    Location
    Johannesburg, South Africa
    Posts
    56

    Default

    Quote Originally Posted by teraside View Post
    Any tips for a complete n00b with fear of coding to learn PHP?

    Well the best way to learn is from the php developers manual, and a PHP mvc framework.
    As in cakePHP or YII it's pretty fun as well as for a hobby language.

    I would recommend Java if you plan on having a career in programming takes a few years to understand it fully and to be fluid with your programming but it's one of the truer languages derived from C++ which is derived from C which is extremely low level programming Java is a great high level language where you can learn true OOP principles, so if you want to learn programming from the start begin with Java, forget about rails or python they are what I call hipster languages, Java is what powers android and Google and many of the telecommunications systems, satellites, robots, governmental systems, trading systems, banking systems etc it's the language of choice.

    It's also very strongly type as in you will need to implicitly declare what data type every object or primitive type you use, which make it very strict and standards based, and there are so many libraries out there for Java proprietary and closed source.

    The syntax and the theory are a lot more complicated then PHP but once you understand it programming becomes more simple then an everyday conversation.

    example of java over php

    import java.util.Scanner

    class Main {
    public static void main(String[] args) {
    String name;
    Boolean access = false;

    Scanner scan = new Scanner(System.in);
    name = scan.nextLine();

    if(name.equals('Admin')) {
    System.out.println('Access Granted");
    access = true;
    }
    else {
    access = false;
    }

    if(access == true) {
    Mainview mv = new Mainview(true) ;
    mv.open(); //Invoking the open method of the mv object which is a type of Mainview class / data type / template/
    }
    else {
    System.exit();
    }
    }


    }

    This is just a very basic example but for server applications and messaging applications over TCP/IP protocols I would recommend Java also with JAX-RS, RMI, Sockets, and Servlets it's a very very powerful language enabling you to have extremely secure applications, with maintainable code and there are so many frameworks and features being developed for it that I would recommend that anyone begging programming to learn Java, once you have a good knowledge in it C# which most windows developers program in using Visual Studio and WPF become so easy to pick up that you can learn any other language in a week or two.

    Go Java if you want to be considered seriously amongst the IT World. Then you can boss python, perl, ruby, php developers around. Also learn GOF patterns and MVC techniques.

    Java > PHP

  5. #5
    Active Member
    Join Date
    Mar 2011
    Location
    Johannesburg, South Africa
    Posts
    56

    Default

    Quote Originally Posted by icyrus View Post
    Learn something else. Python and Ruby are excellent choices.

    PHP is a truly terrible language.

    Edit: for the interested: http://me.veekun.com/blog/2012/04/09...of-bad-design/
    Yes I agree, but not everyone wants to be a rocket scientist they just want what can get the job done.
    Thanks for the link.

  6. #6

    Default

    Quote Originally Posted by matthew- View Post
    Yes I agree, but not everyone wants to be a rocket scientist they just want what can get the job done.
    Thanks for the link.
    You certainly don't have to be a rocket scientist to learn either python or Ruby.

    Personally I prefer ASP.NET (a good IDE is crucial, and you can't argue that Visual Studio is sheer genius) with Ruby on rails on the side.
    "Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out shouting “f#ck, what a ride!"

  7. #7

    Default

    While Python can easily (and has been) used for rocket science, it's certainly not only for rocket scientists and there's certainly nothing preventing you from 'getting the job done'. PHP has it's advantages (it's more popular admittedly and thus has a large install base, is apparently 'easier' to deploy and...err, I think that's it).

    Python certainly isn't hard to learn and there are tons of tutorials including some on how to teach it to children, I've been involved in mentoring total newbies to IT and they've taken to it easily. I'm loathe to admit it but Ruby shares many of those qualities.

    Let's not kid ourselves & say that all PHP code is rubbish & all Python/Ruby code is gold, you can write junk in any language. I just think that PHP's entire model makes it far too easy to write junk than almost any other language.

  8. #8

    Default

    Also, just to be a bit trollish, I'd consider teaching PHP to children as a form of child abuse.

  9. #9

    Default

    Quote Originally Posted by icyrus View Post
    Learn something else. Python and Ruby are excellent choices.

    PHP is a truly terrible language.

    Edit: for the interested: http://me.veekun.com/blog/2012/04/09...of-bad-design/
    ^ That. All of that.

    The linked blog post is very good. The author gets his point across with facts and examples in stead of emotional ranting. Those warnings and examples should let any wary programming think twice about using the language.

    Yes, PHP is an "easy" language to get up and running with, but that is not necessarily a good thing. PHP makes it very easy to do the "wrong thing" (especially so for novice coders) and, looking at the language inconsistencies, gotcha's et al mentioned in the blog post, rather difficult to do the "right thing".

  10. #10

    Default

    As a web designer and developer, I am a fan of PHP as it ties in closely with web development.
    Of all the alternative languages listed, PHP is best suited for web work IMHO.

  11. #11
    Super Grandmaster
    Join Date
    Jul 2005
    Location
    East London
    Posts
    5,011
    Blog Entries
    8

    Default

    Quote Originally Posted by teraside:8251083
    Any tips for a complete n00b with fear of coding to learn PHP?
    Google PHP101. It's a complete online intro to PHP. Nothing hectic but it'll get you started.

    PHP.net can be very handy but a lot of new people can find it a bit daunting.

  12. #12

    Default

    Php is awesome and will always for me personally be remembered as where I started

    I am currently only doing C# though here and there some projects in php

  13. #13

    Default

    Quote Originally Posted by ZeroAlpha View Post
    As a web designer and developer, I am a fan of PHP as it ties in closely with web development.
    Of all the alternative languages listed, PHP is best suited for web work IMHO.
    I can't agree at all. I have yet to see one advantage PHP has in web development that languages like Python and Ruby don't.

  14. #14

    Default

    Personally I find Ruby's syntax an abomination... Tried Ruby on Rails and the generation scripts are cool but it takes longer to figure out what has been generated than to code it from scratch. Haven't worked with Python. PHP is just extremely straightforward and is better integrated with existing frameworks.

  15. #15

    Default

    All languages have there advantage and everyone has their own experience though so you cannot really compare

    What I can say is how many large sites are running php my sql ? Quite a few if you think about it the same with other languages as well

Page 1 of 3 1 23 LastLast

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •