Answer the question
In order to leave comments, you need to log in
Should PHP be taught to a beginner?
I have been studying html, css, JS + jQuery for a month. I feel it's time for the server side. I accidentally found a series of absolutely brilliant PHP screencasts, went through several lessons - everything is simple and clear.
Crowds (really crowds) of people are embarrassing, who all over the Internet say “in no case do not start with php” and then they name you know what languages. I'm afraid to lose time, due to the fact that I will have to retrain (following the example of many acquaintances), to be honest, since I am far from a student.
Answer the question
In order to leave comments, you need to log in
Started with php. Worked on it for about 9 years. There was a need to write a project in python, I learned it (after PHP it was not difficult). More satisfied with the python, fell out of love with PHP and forgot. But I do not regret that I started with php.
At one time, I just wrote terrible jambs in php.
But do I regret that I started with him? - No.
You are right to be afraid of wasting your time. Why teach in order to relearn?
If you have been studying html, css, JS + jQuery for a month, then perhaps you should look further towards the frontend?
Вы начали не с PHP а с JavaScript :)
PHP в качестве первого языка при изучения программирования плох тем, что позволяет писать очень грязный код, и при этом весьма беден в плане возможностей как языка (а не библиотек).
Человек, который имел опыт программирования на другом языке, на PHP часто пишет лучше.
JavaScript как язык гораздо мощнее — в нем даже есть элементы функционального программирования. Для поднятия своих скиллов как программиста очень рекомендую с ними ознакомиться.
Для web-разработчика сейчас знать PHP надо. Хотя бы потому, что код на нем наверняка придется в жизни не только писать, но и читать.
So if you need to make a website, learn PHP and don't stress about it. If you want to break into the upper price segment in the future in terms of qualifications, even if you make sites in PHP, still check out other languages and the paradigms they offer.
If you are young, read #1 (below), if you are middle-aged, read #2, if you are old, read #3.
Point number 1. It is better to join the beautiful, logical, well-thought-out from a young age . Java, .NET, Python, Ruby ( I place in alphabetical order so as not to emphasize ) - for every taste.
Point number 2. There are more interesting things in life than dealing with joints of a crooked tongue.
Item #3: You are old enough to make your own language choice. Do whatever you want, but I beg you, just strictly instruct your children or grandchildren to keep their hands off PHP and thus not contribute to its further spread.
An abstract question... Teach - it won't get worse for sure, there is enough work, there is a lack of professionals, as in any other field.
If you want, then it will not be difficult to switch to any other PL or technology.
I use PHP, although not always. As the language of the server-side is quite satisfactory, there is no need to complain. I will not impose it, but I can share some thoughts on this matter. Perhaps this will help you make a decision.
PHP is the most common language, hardly anyone will argue with this. Therefore, a specialist in it is in demand. It has some nuances, with ignorance of which you can make large holes. When studying it, it is necessary to pay attention to safety. The language is easy to learn, despite the fact that it is not always concise (for example, someone does not like the order of arguments in some functions, the scope in namespaces, or a number of "documented features" that sometimes crawl out like pitfalls). In addition, there is an extensive code base, many modules, libraries, frameworks.
Due to the low threshold of entry and the large supply of labor, there are a lot of beginner php-shnikov. The salary of a beginner (especially outside of Moscow) can hardly be called high. But it attracts the employer. As a result, there are many sites written by inexperienced programmers. Often, such projects are left for revision by experienced people, and at the sight of their code, a variety of emotions arise. This is how gossip about language arises.
To start web development, the best thing is if you have an understanding of the basic fundamentals of programming.
It is worth, of course, a good language, a lot of frameworks, a large community, it is easy to find ready-made libraries, clients, bindings for various services.
If it had not developed, it would not have been worth it, and PHP is developing very much. There already now there is a bulk of goodies from other languages and now they continue to add sugar (yield, properties).
python.
Allows you to write much more beautiful and elegant code. Faster in performance. More logical in some ways.
Simply wonderful Django, Flask, Werkzeug - web frameworks. You can write not only sites without problems, if you want to write a demon - fine, a desktop application - please. Want to speed up the critical part - cython.
php - yes, I started with it.
Pros: allows you to shove code into html without thinking.
Cons: allows you to shove code into html without thinking.
I have not seen frameworks with such pleasant magic as in python.
Yes, you can learn php if you work with some CMS, python merges there. If you write your own and with high quality, python will do much better, given that hosting for python is now quite easy to find.
PHP is now the de facto language for developing shitty websites. Therefore, when you look for a job as a junior, make sure that this is not a “studio-make-a-super-site-for-5k-rubles”, but a serious office, where there are many developers of different levels and you will have room to grow.
Probability of becoming a PHP coder > Probability of becoming a coder in any other language. Hence the dislike
There is a suspicion that you didn’t really write anything in JS, which means you don’t really know how to program. Then I don't consider PHP a good language as almost a first.
If your goal is to do at least something specific on the server side, then PHP is ideal, both naked and in the form of a bunch of ready-made engines (not to be confused with frameworks). If the goal is to figure out what and how is happening on the server side, then any modern language in which you can write a CGI application is suitable, or better an HTTP server (you can use PHP). If the goal is to master the modern principles of high-level development, the implementation of business logic, and not the struggle with nuances, then starting with PHP you run the risk of not seeing the forest for the trees - you have to keep in mind too many features of the language itself. Here I recommend almost like lightman(Java, .NET, Python), but excluding Ruby - it's too good for the first language :), switching to some other "mainstream" one will be a pain. Having mastered the principles in one of these three languages, you can then easily master PHP at any level, although you will often swear :(
PS If PHP is the main language for more than ten years, but it was far from the first, and wrote its first web program on naked C (almost naked, CGI used, HTTP server did not write).
And in my opinion it's worth it. There is a more expensive-cooler language, but PHP seems to be easy to learn and there is definitely a place to apply it - the bulk of the Internet sites are still written in php
In principle, there is nothing terrible, the only thing is, in no case do not write in bare php. Once the basics of the language are clear, learn the framework. For example, Laravel.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question