3 ms·
Hey! New dev honestly trying to learn why PHP matters at all in 2019. Is PHP something I should stop learning JS for? In all my (very limited) experience, PHP d
by xnyan 7y ago
Hey! New dev honestly trying to learn why PHP matters at all in 2019. Is PHP something I should stop learning JS for? In all my (very limited) experience, PHP does not solve any problem JavaScript can't, and JS is also far more in demand.
- vageli 7y ago> Hey! New dev honestly trying to learn why PHP matters at all in 2019. Is PHP something I should stop learning JS for? In all my (very limited) experience, PHP does not solve any problem JavaScript can't, and JS is also far more in demand. If the only motivation for learning a language is applicability to the job field, javascript probably will open more doors at this point, depending on your location. PHP is really great for getting MVPs out the door in my experience, but a productive engineer in any language would likely have the same experience in the language of their choosing. I am by no means a PHP developer though.
- rovr138 7y agoHonestly, it depends on the location and the industry you want to work in. Having said that, PHP and JS aren’t the only ones. You will also find Java, Python, Ruby, C# for examples. > PHP does not solve any problem JavaScript can’t Any language will solve anything you can do in any other language. > JS is also more in demand Depends on industry, location and even teams at the company as well as the standards and requirements which could vary by project. Having said all that, if you‘re learning JS, yes, you can find jobs that use it.
- rawoke083600 7y agoI do a lot of utility programming in it.. (prob cause I know it well) * quick web scraping script (just with curl or file_get_contents) not the insane https-request-libs * parsing some CSV files and generate SQL statements * one-page website for monitoring/dashboard * logging scripts (speed test hourly - working on article) Even built a CLI xml feed processing system with it. Php7 is really fast and memory efficient. Not saying there aren't better or faster languages. Guess its just a tool a reach for often, since I know it well and you can get far with a basic install without loading 1000 of npm/js packages. I only seldom need to use composer for my my* purposes.
- samsonradu 7y ago> PHP does not solve any problem JavaScript can't. PHP matters and if anything it would be good for you to learn both. It will give you a better insight on different ways to build software and use the appropriate solution. PHP is a mature ecosystem with reliable tools/frameworks. It is relatively easy to learn and you can become productive quickly. One benefit I find of PHP that is less mentioned: When your team is short on people (and that happens quite often), you can pretty much throw anyone (provided they are generally competent) at a PHP codebase and they will do well. Wouldn't say the same for a back-end JS project, I've seen what a Java developer can do to a JS codebase. PHP bites far less often than JS in my opinion.
- wolco 7y agoAny language can solve similiar problems. Take this built-in php function: array_column array_column() returns the values from a single column of the input, identified by the column_key To perform the same in Javascript you either need to write something or find a package. There are many examples like this of build-in useful functionality. PHP allows you to do a lot with very little code which allows you to focus on a difficult problem rather than a difficult problem and how to shape it with whatever language. Keep learning javascript but don't try to do everything with it. Ignoring php, ruby or python on the backend will slow you down. Ignoring sql would be another mistake.
- sweeneyrod 7y agoIf we're talking about JS/PHP, we're talking about web development. Front-end stuff has to be done in JS (you can use something else that compiles to JS but I expect you would find that difficult with zero JS knowledge). Back-end stuff can be done in any language, although some (e.g. PHP, Ruby, Python, JS) are more common than say C++. So you can do web development using only JS. But different languages have different pros/cons/approaches, so it's definitely worth venturing outside the JS world at some point. However, if you're still relatively new to JS you should focus on getting to a decent level in that first.
- xwdv 7y agoBro, let me tell you, there’s a reason why people say “Never bet against Javascript”. If you become a great Javascript dev it will open you to far more opportunities, front end, back end, and everything in between.