A very correct and powerful programming learning method

Source: Internet
Author: User
Tags git commands
: This article mainly introduces a very correct and powerful programming learning method. if you are interested in PHP tutorials, please refer to it.

Once you find a learning tool that uses top-down methods, what is the best learning method? I have a controversial opinion on this: I think it is absolutely necessary for beginners to remember basic knowledge as quickly as possible. As a more advanced learner, memory quickly becomes a discarded method. You may have heard people say with contempt ("Don't forget, you need to digest it internally", "I'm digesting what you remember", "I hate testing, ").

On the other hand, when you are in elementary school, you are forced to spend time carrying out the multiplication formulas. Why back it up? Because your basic multiplication table can be the basis for building more complex multiplication and division. This is no different from the syntax of your memory programming language: if you write an if or for loop, the more natural it is, the easier it is to write more complex statement blocks.

I also admit that memory is not always the best way to learn everything, but I believe that it is absolutely necessary for beginners to practice programming. Why? Because it can reduce resistance, if there is something that will bring setbacks to beginners, it is resistance.

With this in mind, here are some specific suggestions for beginners who are learning or preparing to learn Web application development. In fact, a further point is more abstract. this is a good plan for learning how to develop software. Obviously, this is not a plan for everyone, but I think it must be suitable for most beginners.

  1. To learn a weak programming language, do not first learn the language that is mandatory and object-oriented. Strictly speaking, if someone mentions class or inheritance to you, you should choose other approaches. Although I agree that classes and inheritance-related technologies are essential in software development, I strongly believe that they should not be the choice of beginners.
  2. In view of this, I think JavaScript is the ideal programming language for beginners, because (a) JavaScript interpreters are available in most browsers, (B) its object-oriented feature is not forced, and (c) is widely used in the industry (yes, even clients outside the web, even as a device engineer, I embed JavaScript .)
  3. More specifically, I suggest you learn how to use JavaScript to learn the following things, especially in this order:
  4. Learn how to print out something, learn how to declare and define variables, learn basic arithmetic operations (including remainder operations), learning loops (especially for loops ), you can learn how to write abstract and repeated code as a function, learn strings and use cyclic operation strings, and learn how to create and operate object datasets by learning the array and array loop methods (especially the foreach loop.
  5. Remember the above and write a program every day to practice it until it is easy to remember.
  6. Learn the basic operations of Git and use Git through command lines. This means learning four Unix/Linux commands (ls, pwd, mkdir, cd) first ). After learning these commands, you learned to query the file system in a "tree" or hierarchical representation.
  7. Once you have mastered the preceding Unix/Linux commands and enter the file system from the command line, you should learn several basic Git commands. It mainly includes git init, git status, git add and git commit.
  8. Once you have mastered the basic operations of Git, you can integrate the following technologies into your workflow.
  9. Learn the basics of HTML and create simple HTML pages based on memory. Learn about DOM and how to understand HTML as a specified layered tree structure. Spend some time thinking about how it relates to the hierarchical file system you learned in the previous step.
  10. Learn the CSS selector to learn how it allows you to select some parts of the DOM. Understand the relationship between DOM elements. Understand the meaning of a DOM element as the parent or child element of another DOM element. Understanding this is different from the relationship between the descendant and the ancestor. Remember the selector allows you to select certain elements through these relationships.
  11. Learn about jQuery and focus on DOM operations. Learn how to use jQuery to insert or delete elements to the DOM. Practice Visualization on how to affect the tree structure defined by the DOM.
  12. Practice event processing and DOM operations in jQuery (for example, when a user clicks something or at a specified time interval ).
  13. Practice JavaScript objects more and treat them as variable aggregators. Learn how to use JavaScript to represent more complex data than basic data types. Learn to apply and operate these data structures. Understand and define JSON, and understand how it is associated with JavaScript objects.
  14. Learn to use jQuery's getJSON function to get data from a file to a JavaScript object. Using similar technologies, we use a simple jsonp api to practice pulling data with AJAX. Exercise: insert and delete the data to and from the DOM.

At this stage, make a simple slide to loop the playback of the Flickr image. this will be an incredible project that will truly test your capabilities, use the basic technology you have learned before to implement it.

If you do this, you have mastered a large number of essential programming and computer science concepts. Specifically, you have mastered the most important elements of computer programs (if the if-else statements, loops, variables, objects, functions, arrays, etc ), you have learned the chain or tree data structure. At this time, you are undoubtedly ready to move to a more advanced topic.

Thank you for following the websites blog!
This article was originally published in codecloud.net, which is based on the author's personal opinion and does not represent the position on this site.

Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.

The above introduces a very correct and powerful programming learning method, including the content, hope to be helpful to friends who are interested in PHP tutorials.

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.