Naming method of code elements and terminal equipment

A technology of code elements and elements, which is applied in the naming method of code elements and the field of terminal equipment, can solve the problems of low naming efficiency of code elements, and achieve the effect of improving naming efficiency

Active Publication Date: 2018-07-24
ONE CONNECT SMART TECH CO LTD SHENZHEN
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In view of this, an embodiment of the present invention provides a method for naming code elements and a terminal device to solve the problem of relatively low naming efficiency of code elements in the prior art

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Naming method of code elements and terminal equipment
  • Naming method of code elements and terminal equipment
  • Naming method of code elements and terminal equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0031] In the following description, specific details such as specific system structures and technologies are presented for the purpose of illustration rather than limitation, so as to thoroughly understand the embodiments of the present invention. It will be apparent, however, to one skilled in the art that the invention may be practiced in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.

[0032] In order to illustrate the technical solutions of the present invention, specific examples are used below to illustrate.

[0033] figure 1 The implementation flow of the method for naming code elements provided by the embodiment of the present invention is shown, and the flow of the method includes steps S101 to S104. The specific implementation principle of each step is as follows:

[0...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

Provided in the scheme are a code element naming method, a device, electronic equipment and a medium, and is applicable to the technical field of software development. The method comprises: extracting a naming and a comment of each first code element from a preset code base, wherein the preset code base comprises multiple pieces of code; obtaining element usage information input by a user; calculating a similarity between each comment and each element usage information, obtaining a comment whose similarity with the element usage information is greater than a preset threshold and determining the first code element corresponding to the comment; and recommending the determined naming of the first code element to the user, to allow the user to select a naming associated with a second code element from each of the recommended naming. The scheme enables the user to obtain a recommended naming with a higher reference value, ensuring that the user can quickly determine a naming that best meets his or her own needs from the recommended naming, and improving the naming efficiency of the code element.

Description

technical field [0001] The invention belongs to the technical field of software development, and in particular relates to a method for naming code elements and a terminal device. Background technique [0002] During software program development, if developers want to create code elements such as variables or functions in the program, they need to name these code elements in advance before actually creating them. [0003] At present, when most users name code elements, they usually can only enter characters after some careful consideration to name the code elements to be created. Therefore, the existing code element naming methods cannot realize the code element automatic naming. Because good code element naming can make it easier for others to understand the program and enhance the readability of the code, if you want to manually name the code elements, developers often need to spend more time thinking about the naming of the code elements, which makes Naming of code eleme...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Patents(China)
IPC IPC(8): G06F17/30G06F17/27G06F8/30
CPCG06F8/30G06F16/903G06F40/284
Inventor 黄伟淦
Owner ONE CONNECT SMART TECH CO LTD SHENZHEN
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products