How to teach 2 programming language?

Every jobs require knowledge of Javascript and PHP, but how better to teach them that the head did not mixed / not forgotten?
July 2nd 19 at 17:57
13 answers
July 2nd 19 at 17:59
Languages need not to teach but to work - stupid memorization no good end. Experience Rola.
Well, not exactly two at a time - if the experience with other languages zero.
July 2nd 19 at 18:01
To start, realize the difference between Javascript and PHP, and then proceed to the study.
Here is an interesting resource for JavaScript.
In PHP too many resources, Google to the rescue.

The main thing to remember:

There are two computer:
The server that hosts the website and all its data
Customer - a visitor's computer.
PHP works with the server computer, of JavaScript with the visitor's computer.

PHP - working with data on the server, generates a response to the client request;
JavaScript works with the elements on the page, adding animations and events (click, scroll, etc.) on different elements.
Thank you for the detailed answer! I especially liked the after", remember: <...>". More such explanations in the vastness of the forums and the Internet. - Maybell_Schmidt38 commented on July 2nd 19 at 18:04
July 2nd 19 at 18:03
JS and PHP in my opinion is much different languages. If you learn JS first it is difficult, PHP will be easier. Besides, if you first learn JS, then when you take PHP can happen cultural shock and disgust - these dollars to put in front of variables. If server side JavaScript directly in calculation not to take, they have even debug is quite different.
Any language powerful practice is needed. We need to sit down and continuously 3 months to work with him every day.
My advice is still to teach in turn.
Immediately evident Js'EPA is not familiar with pyhon. I have an outright aversion to JS as the language, which is so full of crutches and defects that the inconsistency between the functions in PHP is sophomoric. Take for example the complete incompatibility of yield with async+await, lack of work with decorators + propertyi well, as an extreme example is a set of common, amd, umd, system and other things. For this it is necessary to cut off a hand. As the height of perversion - can understand the logic webpage, people openly stoned inventing it.

In this respect, the puff - perfect. ;) Don't judge the language, not knowing it completely. Dollars in page allow you to do the unpacking of the values of the variables and visually distinguish variables from constant designs that JS is simply impossible. - Maybell_Schmidt38 commented on July 2nd 19 at 18:06
Puff-I now know better than JS )))
visually distinguish variables from constant structures

That is why I say it's best to start with blaze where everything is clearly and visually clearer where it is not necessary to understand what why NaN and NaN !== NaN and easier just to get error )) - Cecelia78 commented on July 2nd 19 at 18:09
July 2nd 19 at 18:05
With the practice rather than a simple subregion.
July 2nd 19 at 18:07
As the saying goes, chase two rabbits.
Js what? Client or server (Node)? If the client, the problem you have is not exactly there as php is server-side technology. But if server-side js, you don't really even need php as all can be done on the js.
July 2nd 19 at 18:09
Start with PHP, then slowly go to Javascript
July 2nd 19 at 18:11
as languages are used in different forms
tag Beck
Java front
java is also back more often, but it might be the front on desktop/Android
javascript and front and back, and it's a different language! - Maybell_Schmidt38 commented on July 2nd 19 at 18:14
: if you find question that you should be such strange ideas yet a third language to drag in here and even more so at the Beck of Java have no vehicle, as it is obvious that he teaches - Cecelia78 commented on July 2nd 19 at 18:17
java You the answer - Abdullah commented on July 2nd 19 at 18:20
: well I hope that my readers are smart enough to know what is the context - geovanni_Hegmann commented on July 2nd 19 at 18:23
July 2nd 19 at 18:13
Correct answer: In order of arrival. About two birds heard?
July 2nd 19 at 18:15
I think that js for the frontend to memorize too much not worth it, and OCSE to take either framework angularjs or jQuery. In vanilla js you long to sit not worth it.

And do php to start. And so, if experience with other languages for the web is not, it is unreal.
and then angularities midly and the Lord spend time programmers on interviews - Maybell_Schmidt38 commented on July 2nd 19 at 18:18
mine for the front end and just need js to master well.not knowing more or less language frameworks will be hard. - Cecelia78 commented on July 2nd 19 at 18:21
July 2nd 19 at 18:17
There is no magic pill. To build muscle with long-lasting effect is possible only with persistent training.

Carefully read and study someone else's code, then write your. As you study other people's code you will have the taste, You begin to tell a daub from a masterpiece. Then Your code will be nice to read at bedtime.

And the number of... Programming languages it is the same in essence. In the end, it is MOV, DIV, CMP, NE, LOOP, etc. Differs only in the shell which is called programming languages. If you know the essence of the proper level then spending a day learning the language of the shell, begin to write. And after another month of hard work and studying will become an expert in any language. Can you think of even your. It is now fashionable. Only the essence will remain the same.
July 2nd 19 at 18:19
Get yourself some project that, at first glance, the current level can do. First do what you can, then look for individual solutions in the Internet and, importantly, UNDERSTAND the PRINCIPLE of OPERATION, change specifically for your project and paste. If you find an article or video where you really explain the material very well add to bookmarks. Don't try to remember everything, make a few interesting projects that are going to do in the future - it will be remembered, and what should not be forgotten
July 2nd 19 at 18:21
If you write knowledge of PHP and JS , this means that some know the language well, and some on the Junior level.
July 2nd 19 at 18:23
doing the right thing by learning two languages. They even look alike.

Find two fat of course JS and php.

One day pass the first year, another the second day. And you will be happy.

Find more questions by tags JavaScriptPHPProgrammingIT educationCareer