Where is it difficult to learn a language?

Source: Internet
Author: User
Tags bitwise bitwise operators logical operators switch case

Summary:

Sophomore, professional opened the programming language I have been exposed to, studied! To finally know everything, but everything is not fine, every day seems to be very hard to learn, and finally in exchange for the nonsense! From the beginning of the freshman, I have been exploring what kind of learning method is suitable for their own? This summer and read a basic PHP video, basic knowledge of each video is similar, but found that some of the video programming experience is worth learning, now learn programming language talk about their own humble opinion! I'm not talking about a good language, but a way of thinking and learning. Welcome to have different views, can let us all improve each other, so that our learning methods have a better upgrade! "Write the comparison rushed busy, so there are some examples in the article a bit of violence, people with violent tendencies please auto-frequency shut me how to become a killer example."

Question 1: What is programming?

programming = variable "various variable types" + operations "arithmetic, logical operators, trinocular operators and bitwise operators ..." + control "various control statements + implementation statements ..." = = "The essence is" speak "/describe the problemAny language programming, can not be separated from the above three elements! Master these three elements and you get started, and you can start to do something! "Attention here is mastered, not skilled!"Proficiency = basic + experience + practice"? Variables: 4 basic Types" integer, floating point, character, boolean "+ 2 compound Type" Array, object "+ 2 special type" resource, NULL "? Operator · Logical Operators && | |  OR and!  Assignment operator + = = *=%=/= &=%= ^= >>= <<= Bitwise Operators & |  ^ << >> Ternary operator? : (Give a judgment)? (Judging really go here)? control can be controlled by structure + function/method + Control Tool "file, database ..." Control structure: Sequential structure selection Structure "single branch: if; Double branch: If". else ...; Multi-branch: If...elseif. else switch Case:break "loop structure" for while foreach "learning" variable "+" Operation + "control" can takefrom big to smallModel to learn: "Take a variable for example"big: What are the different types of this module? What is the function of this module? What do we need to focus on in this module? Big: The variable has 8 types, the function is equivalent to a box, for storing data, to pay attention to different data types of conversion, the initialization of various data types, various data types and the operation of each other
"And the operation involves the knowledge of the second module operation, so the operation of this thing is best placed in the first module finally to learn" .... Wait for something to pay attention to!
★ "Some modules may have its own modules that require special attention"For the variable This module also understand a scope problem of variables, control module on the function to understand the function of the call before and after the execution of the program of sovereignty asked
Problem, these are the individual modules are specific to some of the things to be concerned about, you separate modules, then the focus of nature is differentsmall: What is each type in this module? How is this type defined/expressed/declared? When do you use it? How do I use it? What are some of the common operations? "Still take PHP variable this module to example" Small: 8 types of variables in PHP, each type is not detailed enumerated "where the array this type is very important, take the array to speak!" 】。
The type of the array is a composite type, which is defined as $arr = array () so that an array is defined;
When do you use it? The array itself is: a data set of the same data type
But PHP is a weakly typed language, so we can think of the array as: every element in it can be regarded as a variable, and the so-called multidimensional array is essentially a repeating nesting of one-dimensional arrays
So when does an array work? is when you need to store the data of the collection type to hold these messy things "just the name of the United States he defined a type called an array."
Arrays can also be divided into 2 small classes, and the use of these two classes are similar!
What are the common operations? In fact, nothing but increase, delete, change, check
"Each operation can be divided into small operations--
Take a look at this operation for example: a cultural point of view is: The elements of the array of access, the array of traversal
If someone does not understand what it means to access and traverse, it can be understood to find everything in one way, for example, by "genealogy" We can find you "dad" this way called access,
--We can also take all your ancestors to the present your generation of personnel names in different ways to find out all, this way is called traversal!
and the "genealogy" of course is an external tool, of course, the external tools here and the use of some basic functions and control structure of the same suggestion to put the last side of the small module to learn ",
And how do these operations work? Through function + control structure etc... That's itfirst divided into large categories, and then divided into small categoriesTo learn!
then each small class can follow the 3WH mode is to learn "3WH is what my classmates told me, I think the summary is very good, that is: What if why, and each can be subdivided into a 3WH mode"★ ¡ï Programming is to talk, the change is not the only difference is that you describe the way the problem may be a lot different, and this way depends on your: math skills + Logical thinking + imagination thinking ... Wait, think! For example: output 100 or less, is a multiple of 3 is replaced with a, is a multiple of 5 is replaced with B, is 3, 5 multiples of C instead!?? People with bad math thinking code: if ($i%3=0 && $i%5=0) {echo ' C ';} elseif ($i%3) {echo ' A ';} elseif ($i%5=0) {echo ' B '}?? Mathematical thinking Good person's code: if ($i%15=0) {echo ' C ';} elseif ($i%3) {echo ' A ';} elseif ($i%5=0) {echo ' B '}
So thinking is very important. Four words:"ingenious"

Question 2: How to learn? --Study of thinking

  watch videos without watching videos! Can not simply look at variables, operations, control, to learn to think to see these things! "Why then when how[again feeling, this thing summed up too good, expressed I have been the voice of expression do not come out]" such as watching video learning variables, before the video, you have to think about it, and then take the question to see: What is a variable? 
have? What are the types of variables that are particularly important? What's the difference? --what conditions of Use? --why
How to use--how how to define it? --what How to use "for example array [key + value], using array key is" key "? --how[keyword + variable name]--how inside can be divided into "3w+h is you think things and look at the problem of a train of thought and way, not necessarily say strictly follow every step" when you think and understand these problems, in fact, you only need to cooperate with your language help manual can write programming " Writing a program is nothing more than calling someone else to write something to achieve their own logic! "I want to say one thing:
If you look at a video repeatedly to learn knowledge, but every time you look at the old knowledge is just review, this is not learning, but a waste of time! Pure waste of time, because the knowledge point of such things, as long as not commonly used will soon be forgotten, when you forget the
This knowledge point, you come back to watch the video, then the equivalent of the time you learned in the previous period is wasted by you! Such learning is not called learning, called "rehash", also called blind busy!
I think the most wasted time in the world is not doing nothing, but being blind and busy! "Idle at least also get rest and play, blind busy Lose the Candle"
only will learn things into a kind of thinking, experience these things, when you write code time to think about these experiences, then over time thinking more will become you write code of a train of thought, the experience of others will become your experience, So when you
every time you write code, you are learning one time, so that you will remember most things over time! "Of course I don't rule out someone who is a yard farmer, just knocking at the code without thinking"

Question 3: How to Understand: Thought is the key, language is a tool and a skill

when we learn according to the above learning method, we are actually getting started! Getting started just says you have the ability to do things, but can you do it? You'reWhat you can do, just depends on your imagination, depending on your mind, depending on your state of mind,
Depends on the degree of your ingenious! Language is just a grammar, a tool!
Learn a language, as long as we learn the rules of this tool, then we have learned a language! But learn and use the two different things, such as: we learn the language of the skill, as a "kill" the skill "not to think of other metaphors"
Then Phper is the equivalent of a "killer"! To be a killer, you first have to use the same tools as the hand, "there are a lot of tools: what knives, guns, sticks, rods ..." and the killer's "tool" is the many programming languages "JAVA, PHP, ASP. 】
In a specific language! When we put this tool "knife" "to play ripe, we get started" to prove that you have been a killer, but you are still not a killer, because you only play the tool to kill, if you encounter a master, then
You may be knives to the empty hands. "When we have mastered the rules and entered the door, then we need to accumulate experience, and constantly practice how to work with other tools to use, and constantly to lay the foundation and ingenious them out, in this over
In the process is the most difficult moment! The hardest part is the process of becoming a language great God after you get started. "Well, still take the killer topic for example: Now you have to play the knife, then what to do next?" If we kill at first, I get beaten.
May hit your confidence, so next you should not kill, but to practice killing pigs, by killing pigs to master the "pig" and "people" common characteristics "-programming inside this process is through small projects to practiced hand, master the essentials of large projects, of course, this process
It is best to have someone with you, because you may meet a lot of bug! "Of course, you kill the pig in the process, you can not forget to learn some three-legged cat kung Fu, learning footwork, in case you can not beat to escape!" And you know these three-legged cats kung Fu.
SHENFA, will make you perform tasks with less effort "-this process in the programming in time to learn some of the tools, such as database, so that you can use PHP to make more things, learn some of the necessary tools, learn a good editor, to form a good compilation
Process style ... And so "in your practice of killing pigs by practicing, you will slowly know: Oh, the original kill pig want a knife deadly have these methods: a knife cut off the pig head, a knife Ko pig ..., then kill should be similar! I'm going to kill you next time.
Person, you know: Oh, we want a knife k off the street of "pig", or a knife k off his "pig", but, k off the pig head and pig is also a skill, you need to constantly kill pigs, kill tens of thousands of pigs, all kinds of pigs, and so you close
Eyes can reach the extent of "discovering" to solve the pig, then the killing is similar, and when you master the killing skills, you want to kill your "rival" to kill your unhappy people, kill .... Isn't it easy?
"--and finally the process in programming is called: ERROR-correct-re-report-and then change .... When's delight! "So you'll still find it hard to learn the skills of killing cows when you're already familiar with the ability to kill pigs?" You just need to know the cows.
Body structure, then you kill the cow's realm can still quickly reach the state of killing pigs-so programming has a sentence: a fine, hundred door Pass! "So, learn a language: Easy to get started, and adhere to the" Kill pig Life "every day is difficult! Finally, in this open-source era, we have to learn to open source, to communicate more with others! Generate ideas for Sparks, so your interest, your passion, your learning efficiency .... will not gradually lower!

Question 4: What is learning?

How do I find out if you have learned a knowledge of yourself? The simplest and best way to do this is: You can tell people what you've learned! There are two benefits to doing so:
1) First of all, the most obvious is: I said will speak, it must be understood that there is no big problem
2) Second, if you understand the wrong, listen to the person may find the problem, can help you correct it out
3) Again, in case you two rub out the ignition to spend much better! "Of course this is the spark of thought, the collision of ideas determines your height"
4) Exercise your eloquence ability "if you want to be a quiet yard farmer for a lifetime, you can choose to do it."

Question 5: How do you ask others questions?

 a good habit, I am also correcting this habit! But encountered the problem, do not own any ideas do not run to ask others, this is a kind of self-learning is extremely irresponsible behavior, but also indirectly wasting 
other people's time behavior! I think: at least you ask questions, you always have to understand the
1) what is the meaning of this problem?
2) Where do you not know this question? "Don't ask other people when someone tells you the design to the HTTP protocol knowledge, OH, you do not understand the HTTP protocol is a thing?" This is a database
problem, oh, what is a database? ..... Ask the question also to ask a happy: I this question is ..., I think. "Baidu Google after yourself, your own view of what", I now
and this part does not understand. Then others will know: Oh, you in front of these parts where the right, where is wrong, where the understanding is still very in place, and those parts of the need to explain the details of the "
-ask the question is to help others to review the knowledge, this is inevitable!" But do not always take their own no opinion of the question to ask people, this menstrual problem "almost every month asked, the same type, knowledge
Point the same ... Almost the same as the menstrual period, are quickly become accustomed to! "To learn to think and summarize." Charm, after three times, when you ask again, you do not feel embarrassed, others will feel bored!
3) • Of course some people may be Baidu, Google or still do not know, then we ask other people should pay attention to your problems to straighten out the idea. --I'm going to report the bug
When I'm done, what's the point of view to think about it? Or what knowledge points should be checked? "Do not ask others how to solve, directly ask others how to solve such a question is similar: you are sick can not eat
rice, you said," Trouble you chew the rice spit my mouth, thank you! "And you should say:" Please help me to think of a way, how can I get dinner? "--the latter question is the train of thought, the previous one asked is the answer!
encounter problems, often their own solution is the most profound memory, directly tell you the answer is not a good person, often is too annoying or you do not want to let you go beyond his/her people! Ask the idea, and then try to press
according to this idea to solve! So you are really understand this question is what, you ask others when others will be willing to help you, will be willing to team up with you to learn, after all, team to win is won,
no one willing to pay not to return! Learning together can greatly improve your own learning efficiency "

Where is it difficult to learn a language?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.