Introduction to Programming

A. The program design process

  1. analysis (analysis of the given conditions, the final results and issue laws)

  2. Design

  3. coding

  4. Test

  5. Troubleshooting

  6. write documentation (includes: designer, program name, function, operating environment, input data, cautions, load start)

II. Programming method

  1. Process for

    Analysis of the steps needed to solve the problem, then use the function of these steps, step by step implementation.

  2. Object-Oriented

    The transaction constitutes a problem down into objects, the object was not intended to establish a complete step, but a thing to Miao Xu behavior throughout the problem-solving steps in. Simple to understand: the problem of providing, let a thing complete, concerned with the outcome.

    basic concepts:

      ① Object: Everything that exists objectively, with the properties and methods, class instance.

      ② class template describes a set of specific objects.

      ③ Packaging: implementation details and properties of the hidden object, exposure access interface.

      ④ Inheritance: subclasses have properties and methods of the parent class.

      ⑤ message: message passing between objects to interact with each other through a communication; parameters message received by the object, and a method of that object needs to be taken of the composition.

      ⑥ abstract: summarizes the common ground, attributes, and relationships specific things.

      ⑦ polymorphism: a variety of forms of things.

  3. Aspect Oriented

    A step in the process of extraction. The user needs to record user logged IP, the step of recording the user can extract the IP, the need to record the user's local IP is inserted, the coupling procedure is low.

III. Programming Language

  1. Basic: a set of tokens and a set of rules.

  2. three aspects:

    ① syntax: token combination rule.

    ② Semantics: the meaning of specific marks.

    Mark the particular use: with ③ language.

  3. basic components:

    ① Data Ingredients: data related to the program; include constants, variables, global amount, the amount of local; basic types of data types (e.g., integer, Boolean), special type (empty type), the type of configuration (array), user-defined type (enum), pointer type, abstract data type (class type).

    ② calculating Ingredients: arithmetic sign and allows operation rule used; typically include arithmetic, relational operations, logic operations.

    ③ Control Ingredients: a control structure of a program contained; including sequence structure, selection structure and loop structure.

    ④ transmission Ingredients: data transmission, assignment, input, output and the like.

III. Classification

  Introduced two classifications

  1. The nature of the component designed according to the procedure

    ① sequential programming.

    ② concurrent programming.

    ③ parallel programming.

    ④ distributed programming.

  2. Press the programming style

    ① logic programming.

    ② functional programming.

    ③ programming objects.

IV. Supplementary

  Follow the norms programming procedure helps perfect; + data structures = programming algorithm, solid data structures and algorithms help improve the quality of the code.

 

 

 

Guess you like

Origin www.cnblogs.com/java-tpj/p/11828773.html