PHP vs Codecademy
When comparing PHP vs Codecademy, the Slant community recommends Codecademy for most people. In the question“What are the best resources to learn full stack web development? ” Codecademy is ranked 3rd while PHP is ranked 10th. The most important reason people chose Codecademy is:
Right from the start, users write code. They start small in an environment that has constant feedback and gradually progress to more complex concepts. Users can see code results instantly, giving great feedback.
Specs
Ranked in these QuestionsQuestion Ranking
Pros
Pro One of the most common languages
According to the 2015 Stack Overflow Developer Survey (26,086 people surveyed), PHP was the 5th most popular/used language at 29.7%.
Pro Lots of tutorials online
Pro Used by most common CMS platforms
Many clients are looking for an easy-to-update web site that's flexible and free. Drupal and Wordpress fill those needs very well.
Pro Most prominent language for web applications
Part of the de facto standard web application stack.
Pro Great third-party package manager
PHP standard library is somewhat subpar, but if you need plugins, language features, composer has them all( you can even puzzle together a custom framework from composer).
Pro Fast
Since 7.x was released, PHP has become a pretty fast language.
Pro Lots of PHP frameworks available which help with development
PHP people love frameworks, and with frameworks such as Laravel, you can build a web app or API really fast (Facades, ORMs, scaffolding etc.)
Pro Great documentation
Pro Interactivity
Right from the start, users write code. They start small in an environment that has constant feedback and gradually progress to more complex concepts. Users can see code results instantly, giving great feedback.
Pro Excellent progression
Codeacademy doesn't overwhelm beginners with information. It gives bite-sized information, the bare minimum needed to finish a task and get to the next one. As the course progresses, it slowly fills in background information.
Pro Good editor
Codeacademy has a powerful, beginner-friendly integrated development environment (IDE) that can also be used outside of curriculum.
Pro Bite-sized lessons
Each lesson in code-academy focuses on a single concept, and repetition is provided to drill the concept.
Pro Mostly free content & best progression series for beginners
Pro Community forums
It has forums which can be used to discuss with other learners
Cons
Con Poorly designed language
Despite its widespread use, PHP is generally looked upon poorly from a design point of view. The consistency of function names and function argument order, lazily and borderline non-functional implementation of object oriented programming, can only receive requests via POST methods, slow version adoption (the PHP you learn right now may not work on every webserver you'll work on), and a focus on "hacking things together" rather than "doing it right". These are all very common complaints when it comes to working with PHP. While not a bad language to learn, PHP is not at all a good language to learn first, as it will probably teach bad habits.
Con Immense catalog of insecure frameworks
The most serious security problems in websites on the web today are almost universally found in popular PHP frameworks, CMS platforms, libraries and code samples, almost all stemming from poor language design, bad tutorials and awful resources.
Con After python, probably one of the worst languages ever
Con Poorly designed language, awful syntax & luckily on the decline
Nobody in their right mind is using PHP for new software, if you decide to learn it as your first language you'll be stuck working in teams with old developers who have had no interest in the computer programming field since they landed their first job while maintaining some 2000 era archaic website codebase.
Con Most tutorials are out of date
A lot of very bad tutorials are still widely circulated among beginners, and these tutorials teach very poor programming practices.
Con Most resources are poorly-written
Few resources exemplify the "correct" or secure use of features.
Con Interpreter being too permissive
If you forget the dollar sign, the variable name will be converted to a string.
Con Not the best structure for quick refreshers
The content of the lessons is aimed very much at people just starting to learn how to code. This is perfect for beginners but if you want to use Codecademy to refresh your knowledge the lessons are not designed to be quickly done.
Con Lack of context
Codecademy is great for providing a hands-on approach, but there is a lack of context regarding how to start a project in real life. While users may learn how to code using Codecademy's interface, they may not have any idea how to code independently.
Con Sticks to pretty basic
Con Deleted a lot of content
A lot of free content has been taken away, for example the PHP course was removed from the site.
Con Buggy
Codecademy is known to have many bugs which interfere with the editor, resulting in error messages despite having the correct answer.
Con Allows infinite loops to run
If you run an infinite loop, the browser freezes. Many other similar websites will give you an error, preventing the loop from running. Though not a bug, the lack of feature to stop infinite loops from running can be quite frustrating to beginners.