Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and device for counting variable naming modes, computer equipment and storage medium

A technology of variable naming and statistical variables, applied in file systems, special data processing applications, file/folder operations, etc., can solve problems such as poor readability, cluttered content, and lack of consistency

Active Publication Date: 2020-04-24
SHENZHEN QIANHAI HUANRONG LIANYI INFORMATION TECH SERVICES CO LTD
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Commonly used variable naming methods include small camel case, large camel case, and underscore. Therefore, in the same computer project, there may be different variable naming methods, which will make the content of the entire project messy and lack consistency. Will make the readability of later maintenance worse

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
  • Method and device for counting variable naming modes, computer equipment and storage medium
  • Method and device for counting variable naming modes, computer equipment and storage medium
  • Method and device for counting variable naming modes, computer equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0023] It should be understood that when used in this specification and the appended claims, the terms "comprising" and "comprises" indicate the presence of described features, integers, operations, elements and / or components, but do not exclude one or more The presence or addition of other features, integers, operations, elements, components and / or collections thereof.

[0024] It should also be understood that the terminology used in the descrip...

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 embodiment of the invention discloses a method and device for counting variable naming modes, computer equipment and a storage medium, and the method comprises the steps: determining a target variable naming mode and a to-be-analyzed document if a counting request of the variable naming modes is received; reading the to-be-analyzed document to determine naming modes and paths of all variablesand storing the naming modes and paths into a preset database table; respectively counting variables named by a target variable naming mode and a non-target variable naming mode in a preset database table, and recording the variables as a first quantity and a second quantity; respectively calculating ratios of the first number and the second number in the total number, and recording the ratios asa first ratio and a second ratio; and displaying the previously counted data through a display module, and generating a selection prompt box for a user to select whether to convert the variable namingmode or not. According to the method, different variable naming methods can be counted, the result is presented to the user, and the variable naming modification efficiency and use experience of theuser are improved.

Description

technical field [0001] The present invention relates to the technical field of variable naming, in particular to a method, device, computer equipment and storage medium for statistical variable naming methods. Background technique [0002] In the process of computer project development, usually multiple developers collaborate and develop together. Different developers will have different coding styles during the development process. For example, when naming variables, they will use different variables according to their own habits. naming method. Commonly used variable naming methods include small camel case, large camel case, and underscore. Therefore, in the same computer project, there may be different variable naming methods, which will make the content of the entire project messy and lack consistency. It will make the readability of later maintenance worse. Contents of the invention [0003] Embodiments of the present invention provide a method, device, computer equ...

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): G06F16/16G06F16/22
CPCG06F16/164G06F16/2282Y02D10/00
Inventor 陈润蔡剑戈
Owner SHENZHEN QIANHAI HUANRONG LIANYI INFORMATION TECH SERVICES CO LTD