Code element naming method and terminal device

A code element and terminal equipment technology, applied in the direction of creating/generating source code, other database retrieval, program control devices, etc., can solve the problem of low efficiency of code element naming, and achieve the effect of improving naming efficiency

Active Publication Date: 2017-12-12
ONE CONNECT SMART TECH CO LTD SHENZHEN
View PDF3 Cites 17 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
  • Code element naming method and terminal device
  • Code element naming method and terminal device
  • Code element naming method and terminal device

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

The present invention provides a code element naming method and a terminal device, which are applicable to the technical field of software development. The method comprises: extracting a name and an annotation of each first code element from a preset code library, wherein the preset code library includes multiple segments of codes; acquiring element usageinformation input by a user; calculating a degree of similarity between each annotation and the element usage information separately, acquiring an annotation with the degree of similarity between the annotation and the element usage information greater than a preset threshold, and determining the first code element corresponding to the annotation; and recommending a name of the determined first code element to the user, so as for the user to select a name related to a second code element from recommended names. The method provided by the present invention allows the user to acquire a recommended name with a higher reference value, ensures that the user can rapidly determine a name that best meets his or her own requirement from the recommended names, and improves naming efficiency of code elements.

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 Applications(China)
IPC IPC(8): G06F17/30G06F17/27G06F9/44
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