Learning and methods of programming

Source: Internet
Author: User

Intermediary transaction SEO diagnosis Taobao guest Cloud host technology Hall

When it comes to programming, many people first think of C, C++,java,delphi. Yes, these are the most popular computer programming languages today, and they all have their own characteristics. In fact, however, there are many languages that are not known and better than they are. There are many reasons for their popularity, the most important of which is that they have important epoch-making significance in the history of computer language development. In particular, the advent of C, software programming into the real visual programming. The emergence of many new languages solves the problem that cannot be solved at that time.

In addition, these languages are indeed excellent, they are not only easy to learn, but also easy to use, which is one of the main reasons for their popularity. The support of everyone, and the support of individual systems and development companies, and the reasons for their development components and class libraries and the vast majority of them, also make them one of the most popular computer languages today.

The programming language is not only these, the computer language also has many classifications, among them, the network programming also belongs to one. The well-known programming languages are asp,jsp and PHP. Of course, there are scripting languages, such as VBScript for ASP, and JavaScript, which is popular on the client side. Among them, ASP (asp.net) is based on VB (vb.net), JSP is based on Java.

Today, a variety of programming languages have been developed, and most of them are written in English, and the keywords and standard libraries are the only things we need to take time to remember and recognize, and finally, we have to use more flexibility. So we want to learn them at once, which is impossible, though most languages are similar and you can't do it. In fact, very few people can learn all, and most of them can only be good at one.

Even advanced programmers, like the class libraries and components that work with software developers, are not afraid to say they are proficient in every language. In fact, each language has a similar and different syntax, they have different keywords, developed a variety of class libraries, their functions or methods of the declaration definition are different, more differences are not known to us.

Every language, it has too many things to understand and remember, we do not have the time and energy to do too much. For beginners, we should not be anxious, let alone try to learn all languages at once. In fact, we can choose a language to study. Each language has its own powerful function, good language can accomplish all things, so, you do not worry about learning a language not comprehensive such problems.

When you are able to control a language that you learn, and you go back to learning other languages, you may find that these languages are so similar. This time, you go to study them again, I think, that is very happy thing, probably, at that time, you will laugh aloud.

We know, in a sense, there are many similar places in all languages, presumably because all language development is based on the language that has been created, and the developers have chosen to define the new language in almost the same syntax, considering the ease of learning and so on. It can be said that all languages are based on the language has been developed, no one can be smart enough to burst their thinking, it is not possible to invent a completely different alien language overnight.

Based on Language redevelopment language, this will give users a learning, the benefits of all learning. Of course, the biggest advantage is that the new language is certainly easier and more powerful than the previous language. In a sense, the development of a new language is to update the old language errors and deficiencies, and finally develop a new language.

In fact, the difference between each language is mostly the difference between the key words, there are some grammatical differences. In fact, many languages are different because they have different keywords. As you eat, the Chinese use chopsticks, but foreigners are not. None of this changes the essence of eating, we can all do the same thing, that is eating.

Having said so much, the topic is too far away, go back to it. Said so much, I just want to say, all computer languages are interlinked, you just learn one, learn the other is easy to lift things. So you don't have to learn several languages at the same time.

If you do not follow my advice, I would like to advise you that you will not learn the same, at least, you can never be good at programming, let alone proficient. Each language is experienced countless years, and finally by the developer summed up, not one person can easily learn, in fact, each language has to develop and support their companies and software, every day there are more new things appear, your time should not spend learning more languages, should be learning their changes.

Today's software development is no longer the complexity of manual programming, most of the time, as long as the syntax, as long as we know the class library and the development of software-supported class libraries and components, we can program, but this is only development, not to say what proficiency is not proficient. Software development software, like the puzzle and painting, you just learn to draw on the line.

If you just want to develop software that ignores the basics of language, I want to say that your software will never be better and faster. Even so, you have to take the time to learn everything you need to develop the software, including the expanded components and class libraries. In addition, please do not forget that the software developed, but also to improve, you can make the software more automated, can check their own errors, or, you can make it multithreaded work?

In fact, it is difficult to distinguish between the similarities and differences in different languages, it is impossible to master the same function at the same time, but there are different classes of libraries and different implementation methods to be used freely.

OK, now I want to talk about some simple methods and steps of learning programming, today will be the first chapter, but also a beginning. Presumably, you might spend a little six months studying it, or more, I hope.

First, we should learn the basics of computers, including the hardware base, especially the history of the computer. After that, we need to understand how the computer works, and we need to know what the computer relies on to do the math.

If a software developer, he developed a lot of software, go back to not know the computer principle, that is really funny things, I really do not know, he is how to do the software. Of course, such a person may be much smarter than us, because he knows what is important and what is secondary. Today's society, professional is true, every industry has countless learning objects, you can all learn?

Second, you should begin to study the compilation. Perhaps some people think it is a bit premature. Indeed, you may well be able to start, this time, you can get a general understanding, skip this step, and then to learn.

After that, what you should do is choose the language you want to learn and perhaps choose between C (C + +) or Java. Of course, if you only study network programming, you can choose between ASP and PHP, as for JavaScript and other scripts, you can finally learn.

Have you chosen the language you want to learn? Now, choose some of the best related basic books. Do as I say, you can only choose the most basic grammar of the book, this time, you must not look at the software design books, and do not move those design software. This, you must do, friend, do not be anxious.

Well, have you picked up the books? Your books must be the most basic, OK, you should read the book, right, read the time to take notes, it is best to be able to write down every point of knowledge, especially the key things. This process is very difficult, you must not be impatient, in addition, if you have never contacted the programming language, you should be more slowly, you should spend half a day to learn a chapter. Or, after a few chapters, you'll have to spend more time. I want to tell you, friend, the harder it gets back, the simpler programming is not to eat, and everyone has to spend years studying it.

In this process, you have to pay attention, you must not skip reading things, yes, you can go online or to find friends to consult, this is a good way. Only when you understand a point of knowledge can you continue to study. Also do not rush to learn to use development software to do software, do not forget this point. You are studying grammar now. Yes, grammar this one, you have to attentively, and must take seriously, still have to pass. You don't want beans to have beans, there is no such a good thing in the world, unless you steal someone else's, it is their own? What's more, you are going to learn for yourself. Harvest is time, maturity takes time. Now, while you're still learning grammar, you can simply mention the grammar.

About the basic grammar, there are probably a few aspects, of course, each language is different, but, generally, the same.

The history and characteristics of language itself

This, in fact, should be known in advance when we choose a language. I just want to tell you about my own experience here.

One of the benefits of Java, once written, runs forever. The best thing about it is that it can work in different environments. Yes, it does not just run on the computer, it can also run on digital products, as long as the corresponding machine has a Java virtual machine, Java software can run, and we do not have to modify our software source for different machines.

Java is the language of the 90 's, it was developed by Sun Company, its development is also very fast. It was designed to be applied on the web. However, it has unfortunately become the language that can run in more environments, and it is because of this that it is popular. Of course, it has also achieved the network, its emergence for network programming has brought more functions and applications.

In fact, today's Web applications, JAVA, FALSH, JS, ActiveX these small programs or script plug-ins, they really work. In addition, Java applets are more secure than other scripts or plug-ins because they are run under a virtual machine and are not allowed to go beyond manipulating the machine itself.

Java has developed into JAVA2, which has gone deep into computer programming, especially for web and digital products. There is nothing to say, it is similar to C, the fact is, it is based on several major languages developed, it goes beyond the many languages difficult to understand the syntax. In particular, it has no pointers, and it can detect errors on its own.

If you think C is too hard, and want to make the software that can run on the digital product, such as the software under the S60 system of Nokia mobile phone, you can learn java.

As for the C language, there are now three versions, C, C + +, C #. Many do not say, this language is now the mainstream, most software rely on it. The difference between the three versions is that the first is written in a legacy structured pattern, and C + + is the biggest feature of object-oriented, and for the last C #, it is based on. Net.

C language success is that its emergence, simplifying the software development process, easy to learn and write, in addition, its biggest feature is that it is both the basic language, but also high-level language, or, it is intermediate language. As a basis, it can manipulate things at the grassroots level, such as memory, computer hardware itself. In fact, many hardware drivers are made from it.

In addition, the UNIX kernel used to be made of it, which is visible. It can be said that C almost can complete all the computer functions, of course, not too absolute. For some of the more basic things, most of the assembly is done. In addition, you have to understand that the more basic things, the more basic language to achieve. All kinds of digital appliances including computer systems will not be written in these high-level languages, there is a deeper thing is not known, we can only continue to learn to do all this. Now we just have to learn our own language.

Here, I have to say VC, of course, there are VB. In fact, VC and VB are Microsoft's products, I personally think that VB is based on the C generated. C language can be easily changed to other languages, which is also a very powerful place. In fact, like most basic languages, C's own language features give it the ability to do so. We can design a variety of functions and libraries with some of the keywords in C, which, of course, have the same name as VB and other language functions and class libraries, and in a sense, because the similarities between languages create the mutual transformation between them.

Similarly, it can work like a high-level language, if you want to customize your own library of functions and class libraries. This is one of the difficulties in learning programming languages.

VC and VB has developed into a. NET version, the ASP is from VB, and now, there are asp.net.

Many beginners probably do not know what VC and VB are, the fact is that they are Microsoft software, very simple, they are just software. It might be better to understand that.

C language Development software There are many, the most famous is vc++_net and C++builder, yes, C language is not a company and individuals exclusive products.

DELPHI, this language may not be famous for C and Java, but in fact, it is a very good high-level language, can make a variety of software, and it is more simple than we think. Delphi belongs to Boland Company's products, development software is Delphi BUILDER, yes, Boland Company's development software has been praised, this is because it provides us with a variety of components, can say, We can use Boland Company's software to make powerful software easily in half a day. Includes C and Java BUILDER.

VB is not a language, I put it alone, just say, we can learn it alone to make software. In fact, a lot of games are developed by it, it can be seen that its function is stronger than the imagination. Another point, it and Borland Company's development software is very similar, it gives you a lot of windows-based components, can quickly develop software.

If you are learning Network programming, you can choose ASP or PHP, or JSP. The characteristic of ASP (NET) is that it originates from Microsoft's VB, uses the VBScript script and the VB (DLL) ActiveX component composition. It needs to run on a Windows server that has IIS installed. The biggest benefit of an ASP (NET) site is that you can act normally on any browser that can be displayed, and all script code runs and data processing is done on the IIS server, and we don't have to worry about whether the client supports the problem. In addition, the ASP source code will not be uploaded to the client, in a sense can prevent others to see your coding.

Learning ASP, you have to slowly learn ActiveX components, some people may be surprised, such as database connection or paging function, in the view of the ASP, the implementation of these things is too simple. Some people will not understand why the grammar does not have these things, the ASP has these, in fact, friends, ASP support DLL components, that is, as long as you are a master programmer, you can use other development software, such as VB, for your ASP self-creation components.

Components are like libraries in programming, and in general, we don't have to examine what they are and how they work, and we just have to use them. The good thing is that all languages have third-party support, that is, components and plug-ins that you can get from other companies or online, and the advantage is that you don't have to write more stuff yourself, but you can do all kinds of work with other people's accomplishments. such as uploading files and downloading and so on.

Well, you can learn to program about how to do components or whatever. But if you are smart, you won't do it because you don't have the time and energy to learn too much. You need to know that you have to eat, most of your own farm to buy chopsticks, you do not have to make their own chopsticks, but also do not need to go to the Tube table stool. As long as you can work, money can handle everything. So does programming, you can only use, unless you really think of yourself as a doctor, or, you really want to do everything, that is not the essence of God, or when the immortal or machine go, mortal is not that ability, you but decades of time can use Yes.

Learning is learning the essentials, not the outline; Most of the people who were born in the 80 are blinded, and everyone knows to be a scientist or a genius, or to be perfect. Tell you, perfect over gas, want perfect, go home and farm.

About PHP and JSP, I personally do not understand, so, I do not mention too much.

In addition, friends who learn network programming, you have to choose to learn XHTML standards, you have to follow this standard. You do not just learn to use the grid to do the Web page, you know, most of the time in the discard it, we use CSS to achieve more features.

Learning is step-by-step, now, you just learn grammar, in the back, I will prompt you how to do, each step, I have introduced.

In addition, do not know if someone misunderstood my meaning, network programming, can never say, like HTML or Web design belongs to this category. So, even HTML do not understand, go back to learn Web page production and design it. Of course, there is no need to learn what flash, you are not art. When the art, or do not learn to make a good network, learn a lot, be careful what you are not fine. Tell you, single-minded ability studies until proficient.

II. data types, variables, constants, arrays

Data types are the most basic syntax, and each language has similar or identical data types. We should understand what data types are, that is, learning and remembering which data types are included in the language you are learning. In a sense, the data type belongs to a simple class.

Each language has a different data type, and you just have to remember the type definition of the language you are learning. Common basic data types are byte type, integer type, character type, floating-point type, double precision type, Boolean type. Of course, there are more data types.

In C, C + +, some types have different ranges in different systems, such as in 32-bit and 64-bit systems, with 2-byte and 4-byte length ranges.

Variables and constants, and arrays, all languages are basically the same, and you only have to remember how to declare and initialize them. In addition, you have to form the habit of declaring and initializing, which conforms to the syntax of variable declarations in more languages, and is more standard and error-prone.

In addition, the Declaration of variables to conform to the standard, can not use the keyword to do variable names, generally speaking, the variable can only start with the letter, but also only letters, numbers and underscores constitute. Some languages are case-sensitive, so pay attention to this problem.

In addition, there are local and global variables, and you need to figure out when you belong. Local variables only exist locally, and some languages cannot have duplicate variables and local variables in some ranges, but some languages can.

We want to understand what an array is, especially a multidimensional array. Also, it is important to recognize that the array's super start is zero. Finally, the string belongs to a special array.

Iii. operator

The original purpose of computer language is to calculate, naturally have operator.

The most commonly used nature is the arithmetic operator, subtraction. Here, we want to remember increment decrement, assignment operation, and modulo operation.

Bitwise operators: Or, with, non, XOR, various displacements.

Bitwise logical operators: bitwise OR, bitwise AND, bitwise NOT, bitwise XOR,

Relational operators: greater than, less than, equal to, not equal to, greater than or equal to, less than or equal

Boolean logical operators: logical OR, logical, heterogeneous, or equal, unequal, ternary operator

Assignment operators: Note the difference between some languages = = =

followed by the precedence of the operators, we can control the precedence with various brackets, which is very similar to the arithmetic on numbers.

Iv. Program Control statements

Program control statements are used for judgment and jump, the most common of which are the following.

Conditional statement: If-else-if Here, there are several different changes, roughly the same

Switch () {Case...break....default}

Loop statement: Do...while while {} for (;;)

Jump statement: Goto break re-enters return

V. Other.

Here, I no longer too many examples, in fact, here are the most important things do not speak, such as classes, functions, inheritance, pointers, exception handling, polymorphism, multithreading. There are constructors, analytic functions, and so on. These can be said to be the focus and difficulty of grammar, all languages are the language, that is, they have these characteristics.

Presumably, you've read a few chapters. Now you have a basic understanding of programming. Well, at this point, you can find two simple examples of books, you can learn while writing programs.

Yes, if you can, you should use a tool such as Notepad to program. Of course, to run your program on your own computer will have to install the appropriate software, such as ASP (NET) Iis,asp.net also have to install. Net,java JDK, as for C language, you can install VC, also or C++builder, this time, You need to learn how to configure your computer and how to run these programs.

Don't be intimidated by the software, yes, each software development tool is more complex than you might think, and tells you they are scarier than they seem. However, that is only the case now, do not worry, one day, you can easily use them, then, it is not that it scares you, but you scare it.

The example you should do is just to show or compute, and if it's a network programming, you should learn the Web design software in advance, like Dreamweaver.

(All right, today's the day, I think, next time.) Welcome to my website www.52jiadian.com exchange)

This paper is sorted by www.taonvz.com.

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.