Review ext's learning experience (1) Beginners

Source: Internet
Author: User

Learning a new technology, or more simply, getting familiar with a set of APIS, has a very difficult time. This time period is just a time to wander outside the door. In the face of vast documents, lengthy routines, or incomplete documents and endless routines, depressed emotions accumulate to a certain extent, probably dead. However, once you get started, the progress will be like a storm. It is very similar to Ren Du's second pulse in martial arts novels. If you want to practice martial arts, This is a must.

Fortunately, it was a good choice to select ext as the support library for client development at that time, because compared with libraries such as dojo and moon, the documentation is complete, the routine quality is high, and it is comprehensive enough, generally, you do not need to use other component libraries. (Of course, there are always special requirements. For example, if the customer requires that the input date be accurate to the second, other controls have to be used, and the map control is also used as the openlayers library)

The first step in learning is to collect data.
Data is precise, not many. The so-called essence has two meanings:

Simplified. Don't scare yourself with a big part like XX XX for full reference. I haven't seen many people who have learned Chinese for so many years, even though it is a good thing. A few things are easy to read and have a sense of accomplishment. The most important thing at the beginning is persistence. Don't attack yourself.

Accurate. I hate genuine books with typos most. Even though I have a combination of typos on the Internet, it is a fast food culture, and books are the things to pass the world. In fact, the Code is even more annoying. A layman wants to learn something by reading a book. What he taught you is wrong. If you have learned something wrong. However, the computer may be a bit confused. If you enter the wrong code, he won't lie to you either. So, if you hold the wrong code, you cannot debug it, then I firmly believe that the computer CPU is in the water. Alas! I used to copy a few pieces of code in a technical book. After debugging for two days, the variable definition method was wrong.

There are only three learning materials: self-built documents, built-in routines, user forums, and user email lists. I am not used to user email lists, I often don't have time to read it after subscription (who asked me to do everything ?). Some documents do not have Chinese characters, some do, But I still recommend reading official documents, even though they are written in German (no one is exaggerating now, I think it's only Japanese who dare not use English to promote my own things. Today, I just saw computar printed on an industrial control electronic camera. I have reserved my opinion on the translated documents. In most documents in China, I am looking for a college teacher to build up my documents with a few students using Kingsoft quick translation or Dongfang Express (I have met some good translation software, but they don't need it, no matter whether MapInfo or Esri are the same, it is not a problem to be inaccurate in terms or keywords translation. I have seen it even more terrible. I firmly believe that there is no more authoritative and comprehensive document than the product or project documents. There should be nothing to argue about. If the document is not enough, there is enough reason to give up the product, even open-source. For beginners, getting lost in the source code is equivalent to killing-time of murder.

Built-in routines, starting from the simplest. There is only one bug-free program in the world, namely Hello world. Starting from anywhere, using the new technology Hello world is always a good start. If there is no simple program, delete the simplest and unnecessary content and start debugging. Programming learning is a practical process. The only criterion for testing a program is that the compiler or interpreter says OK. The first one is called, and then the code is gradually added to explain one sentence. If too many items are added at once, the error cannot be found. Dr. House said everybody lies. The compiler is no exception, and most of them are lie. If you really listen to him, you will never find the error. Believe in yourself and hold your own reins.

EXT is JS, and the project requires the browser to be Ie. Microsoft has a script tracker, but there is no big difference between ext and ext. If a key character is wrong, for example, Parentheses, commas, or non-strings are used with Chinese characters, the entire page will not be displayed. Therefore, it is time-consuming to complete centralized debugging after completing step-by-step comparison, although the time is not necessarily saved.

Finally, in the forum and Internet era, almost everything can be found. Even my graduation school, my phone number, and software are everywhere for everyone, search for the internet. There will always be people with the same problems you encounter. You are not alone! If you are in a forum that feels better, search for old posts in the essence area before asking a question. There is also the wisdom of inquiry. Official forums are the best, because there are usually professionals there to solve user problems, and you can even meet core developers.

In the course of Ext, I found many Chinese forums, but I found that the documentation is sufficient. Only one website in China has done well on Ext. They not only provide very good and systematic tutorials, but also provide paid consulting services. The fee is not high either. If you are interested in searching, I will not mention the name here to avoid advertising suspicion. I was so impulsive to buy a book. But then I thought about it. I didn't buy any books for the best technology I had ever mastered, And I still put all the technologies I had bought in the books until now, so I dismissed my thoughts.

Technical books

Books can be bought, but if you don't want to listen to them, the Chinese technical reference books in China are not only rare, but also very expensive. If you buy them, you can only store them and sell them as waste paper. In the electronic age, I have read electronic documents. Some people give themselves an excuse to say that paper books are convenient and can be read at any time. Hey, you're working on a program. How long does it take to stay on a machine every day? How much time is there to read books? There is a keyboard display in front of you. Is there a place to write books? What's more, you have to go through the book search. Is it a folder or a folder to find something in the computer? Give up the old method! Moreover, electronic document updates are free of charge, saving money to buy some humanistic books and supplement cultural knowledge.

Step 2 is practice.

Programming is a practical technique, and the compiler (Interpreter) is the only criterion for testing programs. (Of course, this standard is very low for beginners, that is, writing the correct code .) So do not yell at the compiler or suspect that there is a computer problem (this is not the case for poisoned people), check the program, and debug it in one sentence. I have already said this before.

This part is about several other aspects.

Multi-headed development.

Learning a product or a set of libraries is basically based on a programming language. Of course, some products have multiple languages or platform versions. Try to select a language platform that you are familiar. Of course, most of the time, this choice is self-defeating. Just like the project I have on hand, the professors of the Cooperation college once said that they should use VB ......, However, this system is Java. Although the system is heterogeneous, it is impossible to do C ++ for Core algorithms. So now these teachers are all in Java. To learn the code, you must consciously distinguish the language itself from the library. The methods are the library of the language. These features are not easy to say, but can be realized. Do not learn the language to learn the language. without the support of libraries, the language is powerless.

Has a goal.

It is my experience to learn things as quickly as possible in projects. I learned how to use it. I have a sense of accomplishment. Then, I am under pressure to learn things quickly. What's more, if there is a goal, there will be an order. Where should we start? No target is like a fly without a head. In the end, the system is dizzy and lost. In the project, we need to make a requirement today and ask for a GUI. First, we will discuss the process tomorrow and learn about the business modeling method. The day after tomorrow, we started to process data and learn how to access the database. In this way, there will be goals from start to end, and learning will not become blind.

In the current project, ext has replaced the previous PPT. Visio has become a way to communicate with users, and even cooperate with the demo data to show users the dynamic operation process, I didn't think of it at the beginning. I will talk about it later.

Code introspection.

From time to time, let's look back at your previous piece of code and see if some of the content is not well written, or shouldn't have been written, or there are better solutions. I do not necessarily agree with Confucius's moral concept, but he has some truth for his understanding of the newest. Regular modification and optimization of your code can make you more impressed with the new content. It is also a pleasure to see your progress.

EXT is a javascript library that uses many JS object-oriented variable definition methods and is quite streamlined. It seems hard to understand at first, because I am not familiar with JS, but now, I have found myself not writing new ext ....... VaR Panel = {xtype: 'panel ',......, Programmers are probably the same, so there will be so many libraries.

Step 3 is also the most important step, namely inheritance

After learning, cainiao will eventually become a master, or they are working hard in this process. Maybe after three hours, I finally figured out what the callback was like. Maybe I checked countless materials and compiled a set of algorithms. At this time, in addition to taking a breath and taking a rest with a cup of milk tea, we also need to take the time to record the problem, from symptom to cause to solution. I have to admit that the computer is used too much, and the memory of the brain is not so good, but these records still need to be there. If a problem is hard to solve twice, isn't it a suicide? In addition, put the content on your own blog and forum. That is to say, don't solve the problem, and feel embarrassed to put it out for everyone. Don't forget, there are still many people outside the door looking for door handles around the wall. And I have to hide it. Have you ever seen someone buy a PC favorites )? Exchange is valuable if technology is not preserved.

My current team is based on the school. In addition to a few people who insist on it all the year round, iron beat has a new face every year, and some people have graduated every year. Inheritance technology is a work that has always been done. It is often done by a person who is technically mature and can stand alone. The boss always tells us, and I understand it. Schools, teaching and educating people, especially the current Colleges and Universities, can learn some of the skills to earn a living in it is already very good, some people after graduation a few years of white like a piece of paper.

I think so much about learning. In the second article, I want to write about the role of ext in this project and the development process.

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.