Earlier quoted context omitted.
I like PHP and still use it today. But never in my life heard PHP is cool. Am I missing something?
They're making a rhetoric against JS style of development... Though I question what they mean by fake compilers...
PHP is worth learning and using
151–160 of 468 posts
Re: PHP is worth learning and using
#152Earlier quoted context omitted.
If you like PHP, great. Do you plan on creating a start-up that you intend to scale to a babillion customers? That you intend to hire teams of developers for? Probably not a good idea. Are you a new programmer trying to figure out which language to learn first? Absolutely not. Python, Java, JavaScript, C# are much more flexible if nothing else. Anybody who tries to convince new programmers to learn PHP is doing them…
Except Facebook literally did that :) But I agree with you.
Re: PHP is worth learning and using
#153Earlier quoted context omitted.
Why are y'all arguing about this when you already learned like 20% of php by reading the OP. Learning enough of a high level scripting language like php to be able to be useful and productive in it is not some huge time sink, it's a few dozen hours of reading docs and tinkering
Opportunity cost. Those "few dozen hours" reading PHP docs and tinkering could also be used to learn Python, Ruby, or Javascript, each of which are almost certainly better choices with broader applicability and more modern ergonomics. Python gets you web backend + ML, Javascript gets you web backend + web frontend. Ruby gets you a multi-paradigm language with nice ergonomics and cats. PHP gets you job offers customiz…
So yeah. Don't make PHP your first language. Probably not your second either. But if you've played with Python, and learned to write the simplest and clearest thing that can possibly work, if you've worked in C, and decided that's as close to the bare metal as you ever want to get, if you've learned enough Java to know when to use the SeriousBusinessFactoryProxyInterface, if Haskell has made you realize that programming is really just math... then sure, learn you some PHP, write a toy web project and discover that the simple things really can be simple.
I still don't know of any stacks where it's easier to write a simple, low maintenance side project that will stay up for years without issue, where multiple projects can share a $5 / month VPS, than the LAMP stack.
Re: PHP is worth learning and using
#154What I do not like is the syntax. Call me picky but referencing attributes with -> instead of a dot (.) is ugly to my eyes and I prefer JS, Ruby or Python when it comes to the pure look of the code.
Generally I'm not a fan of dynamically typed languages because I just feel way more productive when I have proper code completion and type safety.
In general whatever works for you and makes you happy is good enough.
:)
Re: PHP is worth learning and using
#155Earlier quoted context omitted.
> Hey presto, you have a functioning web shop, business website, charity home page, or whatever other thing you want. If we're talking about simple templates to open a store or a simple landing page there are so many no-code options like Wix/Shopify/SquareSpace/Square that I don't think PHP offers any significant advantage.
I believe at least one of the options you listed is actually built with PHP (Shopify).
Re: PHP is worth learning and using
#156I don't really understand the reasons for using PHP outside of that people are already familiar with it and like working with it or want to find jobs in that area. If someone is new to software development and in an area of the world where it's not mostly PHP shops, so bigger cities, I don't really understand the benefit. PHP is often used to do certain things or it may be faster for you to whip something up in Larav…
If you like PHP, great. Do you plan on creating a start-up that you intend to scale to a babillion customers? That you intend to hire teams of developers for? Probably not a good idea. Are you a new programmer trying to figure out which language to learn first? Absolutely not. Python, Java, JavaScript, C# are much more flexible if nothing else. Anybody who tries to convince new programmers to learn PHP is doing them…
It depends what location you're in. In Europe there are pockets where PHP is very popular, where learning it can open up the job market.
Re: PHP is worth learning and using
#157Earlier quoted context omitted.
There is probably a set of "good languages to learn" for every individual. There are two good reasons to learn a programming language: 1. You're using it for actual work 2. Learning it will teach you something fundamental I feel like the only way 2. might happen with PHP is if it's the first language you're learning.
PHP was my gateway to understanding C. It wasn't my first, but it definitely helped me learn more computer fundamentals than other languages.
I don't use it any more, but in 2002 when shared hosting and deploying by uploading files via FTP was the thing it was a lot easier to get started with than Perl or Java (which I desperately tried to get into back then).
Re: PHP is worth learning and using
#158Earlier quoted context omitted.
> Hey presto, you have a functioning web shop, business website, charity home page, or whatever other thing you want. If we're talking about simple templates to open a store or a simple landing page there are so many no-code options like Wix/Shopify/SquareSpace/Square that I don't think PHP offers any significant advantage.
I believe at least one of the options you listed is actually built with PHP (Shopify).
Re: PHP is worth learning and using
#159I don't really understand the reasons for using PHP outside of that people are already familiar with it and like working with it or want to find jobs in that area. If someone is new to software development and in an area of the world where it's not mostly PHP shops, so bigger cities, I don't really understand the benefit. PHP is often used to do certain things or it may be faster for you to whip something up in Larav…
A very pragmatic reason exists: deployment is dead simple for users with very little technical skill. Deploying PHP software is as easy as subscribing to a shared web host (expensive or not, but most will make your life easy), connecting using FTP/SFTP, and extracting a ZIP file into the main directory. Some hosts even skip the last couple of steps and let you apply a template with a well-known PHP CMS to get you sta…
> package manager to install dependencies (PHP apps are self-contained)
PHP has Composer, which is one of the best things to happen to the ecosystem. Chances are, the piece of software you install will manage its dependencies in this way, and I'd be reluctant to install it if it didn't, as you wouldn't be able to update the software easily.
Re: PHP is worth learning and using
#160Earlier quoted context omitted.
Why would you pick any other language instead of PHP for web dev?
Because too many people learn only Javascript in their pRofeSSioNal WeB dEv BoOtCamPs so the only thing they know is JS. Why learn a solid backend-focused language if you can throw JS at it?