4
crbn00
7y

All the people I know guiding me through my coding career say to use PHP. Are there any real drawbacks I will see using PHP over Python or another language for server side scripts? Or is the PHP fear/hate just a meme ?

Comments
  • 2
    The hate is real. And php is so popular because its easy to use. The only benefits are the good database integration.
  • 0
    Thanks @stop . Should I be mindful of the hate as I learn it and prepare for using something else later or just use it?
  • 1
    Easy to use, fast, hosting cheap, lots of support everywhere. Its not going away anytime soon. Staple language for web. But it depends who you ask. You make your own choices.
  • 0
    If you learn it its ok. Many developers love php. Many hates it. Its your decision. because i dont like the language it doesnt mean that you must avoid it.
  • 4
    It's great when used properly. The hate comes from code written by people who don't know how to actually use it.
  • 0
    Much prefer the mean stack
  • 0
    Thanks guys
  • 0
    As all language. If you know what you're doing it's fine. If you don't...
  • 1
    Do yourself a favour and Google "PHP a fractal of bad design" . The language is slowly dying by it's own bad design "By noobs for noobs". Learn something else if you can. You will always be able to write PHP even if you learn something entirely else that makes sense. Me? I wouldn't even touch php with rubber gloves on. But I can if I must.
  • 1
    @crbn00 I'd say that if you're just starting off learning how to develop for web, it's an easy language to get started in - lots of free hosting etc available, all you need is a text editor and FTP client to upload your files...

    It will at least give you an idea of the separation of backend processing code on a webserver vs frontend html/css + JS - but I guess in PHP tutorials it's very much blended together, you have PHP code running inline in the middle of your html etc.

    As for actually building it to run a website or system - I think it's a lot more difficult to build things that are robust, hardened, tested and scalable to N users. Barely any of the tutorials that I remember doing will teach you development best practices, unit testing code, sanitising user input, not letting any input fields make it into SQL statements etc..

    Tl;Dr - I think it's easy to learn but shouldn't be used in live/complex systems unless you're an expert developer...
  • 0
    Meh, it's not a beautiful language but it works, and it's easy to use.
    I don't why people make a big fuss about languages, it has little to do with programming
Add Comment