Experience sharing for independent developers-programming languages

Source: Internet
Author: User

Two. Programming languages

For a programmer, the general need to master 2, 3 languages is basic, and learning a new programming language is also the ability of the basic level, so this part of the main talk about the rapid learning a new programming language method. The languages I have learned have these (the concept of compilers and languages is equivalent and not in order): foxbase,c,c++, assembler, Visual c++,delphi,foxpro,vb,c#. In my personal experience, these languages can be divided into three categories: Non-object-oriented, object-oriented, and support visual design.

These three categories of languages have some common content, which is the first thing we need to know when learning a new programming language, which can be said to be the key point of knowledge. The contents are as follows:

    • 1. Constants, variables, arrays, different data types

This section needs to master constants, variables, array definitions, initialization, use of different data types. The reading and writing of elements in an array, as a parameter defines how the return value is defined. Some languages also support the redefinition of array sizes.

    • 2. function (or subroutine)

How functions are defined (such as parameters and return values), how they are invoked (there are problems with asynchronous calls and synchronous invocations), global or non-global.

    • 3. Process Control

Branching structure: If statement, if Else statement, switch statement, loop structure: For statement, while statement, Do...while statement, some languages may be loop.

    • 4. Most basic input and output and file operation

The most basic input and output statements can help you in the process of learning the language of the simple program of practice tasks, such as: output to the console, DOS operating system output to the screen and so on. File operations also need to know, at least later write a program generated log files will be.

The above content in learning a new programming language, want to be able to master first, which will allow you to quickly get started, and quickly use the new language to write code. You can also look at other aspects of the content, such as:

    • 1. Understand the new features of the language

This stage only needs to understand, does not need to grasp, remembers has these new features, when needs to use the time to think of them.

    • 2. Find out all the keywords in the Help documentation for that language, which might make it possible for you to find something useful.

Knowing that the content is almost a new language is even getting started. Of course there are many other things, but these can be found in the specific development of the time to find examples.

Let's talk about the differences in these languages. For object-oriented languages, it is necessary to know the three main features of object-oriented: encapsulation, inheritance, how the polymorphism is expressed or equivalent in a particular programming language. For languages that support visual design, you also need to know how to design forms and the use of common controls. In this way, it should be faster to learn from an already-programmed language to another new programming language. For those who are still studying in college, my advice is one in C + + or Pascal, one in VB or one in C # or some other visual development language. It is best to learn the assembly if possible.

Many third-party services, service evaluation package, source download, in Devstore.

Experience sharing for independent developers-programming languages

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.