CN108228174A - Accelerate the method and device of code efficiency in software development - Google Patents

Accelerate the method and device of code efficiency in software development Download PDF

Info

Publication number
CN108228174A
CN108228174A CN201711279428.4A CN201711279428A CN108228174A CN 108228174 A CN108228174 A CN 108228174A CN 201711279428 A CN201711279428 A CN 201711279428A CN 108228174 A CN108228174 A CN 108228174A
Authority
CN
China
Prior art keywords
code
model
document
parsed
template
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
CN201711279428.4A
Other languages
Chinese (zh)
Inventor
周钦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lianjia Beijing Technology Co Ltd
Original Assignee
Lianjia Beijing Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lianjia Beijing Technology Co Ltd filed Critical Lianjia Beijing Technology Co Ltd
Priority to CN201711279428.4A priority Critical patent/CN108228174A/en
Publication of CN108228174A publication Critical patent/CN108228174A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/35Creation or generation of source code model driven
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/73Program documentation

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Library & Information Science (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the present invention discloses a kind of method and device for accelerating code efficiency in software development, does not need to operation interface, and product extendibility is strong, and meets the code of itself style convenient for developer's flexible customization.The method includes:S1, based on solid data characterizing definition model;S2, the Code Template that multilingual version is applicable according to the model customizing;S3, the Code Template is parsed, generates foundation code and document.

Description

Accelerate the method and device of code efficiency in software development
Technical field
The present embodiments relate to computer realms, and in particular to it is a kind of accelerate software development in code efficiency method and Device.
Background technology
Developer in software development process in order to avoid repeated encoding the problem of, it will usually use some modeling tools Code, existing modeling tool or technology are quickly generated, has certain code building ability, but interface operation is cumbersome, it is raw It is not strong into object extendibility, can not flexible customization meet the code of developer's style.
In view of this, a kind of method for accelerating code efficiency in software development how is provided so that developer passes through this Method does not need to operation interface and can obtain product, and product extendibility is strong, and developer can be flexible according to the product Customization meets the code of itself style
Invention content
It provides in a kind of quickening software development with defect, the embodiment of the present invention in view of the shortcomings of the prior art and encodes effect The method and device of rate.
On the one hand, the embodiment of the present invention proposes a kind of method for accelerating code efficiency in software development, including:
S1, based on solid data characterizing definition model;
S2, the Code Template that multilingual version is applicable according to the model customizing;
S3, the Code Template is parsed, generates foundation code and document.
On the other hand, the embodiment of the present invention proposes a kind of device for accelerating code efficiency in software development, including:
Definition unit, for being based on solid data characterizing definition model;
Customization units, for being applicable in the Code Template of multilingual version according to the model customizing;
Resolution unit for being parsed to the Code Template, generates foundation code and document.
The third aspect, the embodiment of the present invention provide a kind of electronic equipment, including:It processor, memory, bus and is stored in On memory and the computer program that can run on a processor;
Wherein, the processor, memory complete mutual communication by the bus;
The processor realizes the above method when performing the computer program.
Fourth aspect, the embodiment of the present invention provide a kind of non-transient computer readable storage medium storing program for executing, on the storage medium Computer program is stored with, which realizes the above method when being executed by processor.
The method and device of code efficiency in quickening software development provided in an embodiment of the present invention, by being based on solid data Characterizing definition model;The Code Template of multilingual version is applicable according to the model customizing;The Code Template is solved Analysis generates foundation code and document, and entire scheme does not need to operation interface, directly using the foundation code and document of generation Configuration generation multilingual edition code, product extendibility is strong, and meets itself style convenient for developer's flexible customization Code, this programme disclosure satisfy that initial stage developer from the basal needs of front page layout layer data operations on earth, without writing repetition More energy can be put into complicated business logic, so as to accelerate code efficiency in software development by code.
Description of the drawings
Fig. 1 is the flow diagram that the embodiment of the present invention accelerates one embodiment of method of code efficiency in software development;
Fig. 2 is the structure diagram that the embodiment of the present invention accelerates one embodiment of device of code efficiency in software development;
Fig. 3 is the entity structure schematic diagram of a kind of electronic equipment provided in an embodiment of the present invention.
Specific embodiment
Purpose, technical scheme and advantage to make the embodiment of the present invention are clearer, below in conjunction with the embodiment of the present invention In attached drawing, the technical solution in the embodiment of the present invention is explicitly described, it is clear that described embodiment be the present invention Part of the embodiment, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not having All other embodiments obtained under the premise of creative work are made, belong to the range of protection of the embodiment of the present invention.
Referring to Fig. 1, the present embodiment discloses a kind of method for accelerating code efficiency in software development, including:
S1, based on solid data characterizing definition model;
S2, the Code Template that multilingual version is applicable according to the model customizing;
S3, the Code Template is parsed, generates foundation code and document.
The method of code efficiency in quickening software development provided in an embodiment of the present invention, is determined by being based on solid data feature Adopted model;The Code Template of multilingual version is applicable according to the model customizing;The Code Template is parsed, is generated Foundation code and document, entire scheme do not need to operation interface, directly using the i.e. configurable life of the foundation code and document of generation Into multilingual edition code, product extendibility is strong, and meets the code of itself style convenient for developer's flexible customization, this Scheme disclosure satisfy that initial stage developer, can without writing duplicated code from the basal needs of front page layout layer data operations on earth More energy are put into complicated business logic, so as to accelerate code efficiency in software development.
On the basis of aforementioned device embodiment, the S1 can include:
Based on solid data feature, pass through JavaBean and Annotation Definition Models.
Annotation is a kind of one kind by JSR-175 standards (technical specification of java) selection for descriptive metadata Tool can be read at runtime by reflex mechanism.In the model definition phase ,@Table ,@Column are defined, and pass through Resolver formation entity is associated with description information with attribute.@Table are labeled on model head, and resolver can be run in program When, pass through the Class information and self-description information of the class of code segment acquisition@Table modifieds.@Column are labeled in model On attribute, when program is run, resolver can obtain type (such as number, character string or the time class of model interaction attribute Type).
On the basis of aforementioned device embodiment, the S3 can include:
The Code Template is parsed by Velocity (a template engine based on java) template, generates base Plinth code and document.
Referring to Fig. 2, the present embodiment discloses a kind of device for accelerating code efficiency in software development, including:
Definition unit 1, for being based on solid data characterizing definition model;
Customization units 2, for being applicable in the Code Template of multilingual version according to the model customizing;
Resolution unit 3 for being parsed to the Code Template, generates foundation code and document.
Specifically, definition unit 1 is based on solid data characterizing definition model;Customization units 2 are fitted according to the model customizing With the Code Template of multilingual version;Resolution unit 3 parses the Code Template, generates foundation code and document.
The device of code efficiency in quickening software development provided in an embodiment of the present invention, is determined by being based on solid data feature Adopted model;The Code Template of multilingual version is applicable according to the model customizing;The Code Template is parsed, is generated Foundation code and document, entire scheme do not need to operation interface, directly using the i.e. configurable life of the foundation code and document of generation Into multilingual edition code, product extendibility is strong, and meets the code of itself style convenient for developer's flexible customization, this Scheme disclosure satisfy that initial stage developer, can without writing duplicated code from the basal needs of front page layout layer data operations on earth More energy are put into complicated business logic, so as to accelerate code efficiency in software development.
On the basis of aforementioned device embodiment, the definition unit specifically can be used for:
Based on solid data feature, pass through JavaBean and Annotation Definition Models.
On the basis of aforementioned device embodiment ,@Table are labeled on the model head, and@Column are labeled in the mould On the attribute of type.
On the basis of aforementioned device embodiment, the resolution unit specifically can be used for:
The Code Template is parsed by Velocity templates, generates foundation code and document.
The device for accelerating code efficiency in software development of the present embodiment can be used for performing the skill of preceding method embodiment Art scheme, implementing principle and technical effect are similar, and details are not described herein again.
Fig. 3 shows the entity structure schematic diagram of a kind of electronic equipment provided in an embodiment of the present invention, as shown in figure 3, should Electronic equipment can include:It processor 11, memory 12, bus 13 and is stored on memory 12 and can be transported on processor 11 Capable computer program;
Wherein, the processor 11, memory 12 complete mutual communication by the bus 13;
The processor 11 realizes the method that above-mentioned each method embodiment is provided when performing the computer program, such as Including:Based on solid data characterizing definition model;The Code Template of multilingual version is applicable according to the model customizing;To institute It states Code Template to be parsed, generates foundation code and document.
The embodiment of the present invention provides a kind of non-transient computer readable storage medium storing program for executing, is stored thereon with computer program, should Realize the method that above-mentioned each method embodiment is provided when computer program is executed by processor, such as including:Based on entity number According to characterizing definition model;The Code Template of multilingual version is applicable according to the model customizing;The Code Template is carried out Parsing generates foundation code and document.
It should be understood by those skilled in the art that, embodiments herein can be provided as method, system or computer program Product.Therefore, the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware can be used in the application Apply the form of example.Moreover, the computer for wherein including computer usable program code in one or more can be used in the application The computer program production that usable storage medium is implemented on (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) The form of product.
The application is with reference to the flow according to the method for the embodiment of the present application, equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that it can be realized by computer program instructions every first-class in flowchart and/or the block diagram The combination of flow and/or box in journey and/or box and flowchart and/or the block diagram.These computer programs can be provided The processor of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce A raw machine so that the instruction performed by computer or the processor of other programmable data processing devices is generated for real The device of function specified in present one flow of flow chart or one box of multiple flows and/or block diagram or multiple boxes.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that the instruction generation being stored in the computer-readable memory includes referring to Enable the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or The function of being specified in multiple boxes.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted Series of operation steps are performed on calculation machine or other programmable devices to generate computer implemented processing, so as in computer or The instruction offer performed on other programmable devices is used to implement in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in a box or multiple boxes.
It should be noted that herein, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any this practical relationship or sequence.Moreover, term " comprising ", "comprising" or its any other variant are intended to Non-exclusive inclusion, so that process, method, article or equipment including a series of elements not only will including those Element, but also including other elements that are not explicitly listed or further include as this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that Also there are other identical elements in process, method, article or equipment including the element.The fingers such as term " on ", " under " The orientation or position relationship shown is based on orientation shown in the drawings or position relationship, is for only for ease of the description present invention and simplifies Description rather than instruction imply that signified device or element must have specific orientation, with specific azimuth configuration and behaviour Make, therefore be not considered as limiting the invention.Unless otherwise clearly defined and limited, term " installation ", " connected ", " connection " should be interpreted broadly, for example, it may be being fixedly connected or being detachably connected or be integrally connected;Can be Mechanical connection or electrical connection;It can be directly connected, can also be indirectly connected by intermediary, can be two Connection inside element.For the ordinary skill in the art, above-mentioned term can be understood at this as the case may be Concrete meaning in invention.
In the specification of the present invention, numerous specific details are set forth.Although it is understood that the embodiment of the present invention can To put into practice without these specific details.In some instances, well known method, structure and skill is not been shown in detail Art, so as not to obscure the understanding of this description.Similarly, it should be understood that disclose in order to simplify the present invention and helps to understand respectively One or more of a inventive aspect, above in the description of exemplary embodiment of the present invention, each spy of the invention Sign is grouped together into sometimes in single embodiment, figure or descriptions thereof.It however, should not be by the method solution of the disclosure It releases and is intended in reflection is following:I.e. the claimed invention requirement is than the feature that is expressly recited in each claim more More features.More precisely, as the following claims reflect, inventive aspect is less than single reality disclosed above Apply all features of example.Therefore, it then follows thus claims of specific embodiment are expressly incorporated in the specific embodiment, Wherein each claim is in itself as separate embodiments of the invention.It should be noted that in the absence of conflict, this The feature in embodiment and embodiment in application can be combined with each other.The invention is not limited in any single aspect, Any single embodiment is not limited to, is also not limited to the arbitrary combination and/or displacement of these aspects and/or embodiment.And And can be used alone the present invention each aspect and/or embodiment or with other one or more aspects and/or its implementation Example is used in combination.
Finally it should be noted that:The above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent Pipe is described in detail the present invention with reference to foregoing embodiments, it will be understood by those of ordinary skill in the art that:Its according to Can so modify to the technical solution recorded in foregoing embodiments either to which part or all technical features into Row equivalent replacement;And these modifications or replacement, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution The range of scheme should all cover in the claim of the present invention and the range of specification.

Claims (10)

  1. A kind of 1. method for accelerating code efficiency in software development, which is characterized in that including:
    S1, based on solid data characterizing definition model;
    S2, the Code Template that multilingual version is applicable according to the model customizing;
    S3, the Code Template is parsed, generates foundation code and document.
  2. 2. according to the method described in claim 1, it is characterized in that, the S1, including:
    Based on solid data feature, pass through JavaBean and Annotation Definition Models.
  3. 3. according to the method described in claim 2, it is characterized in that,@Table are labeled on the model head ,@Column are marked On the attribute of the model.
  4. 4. according to the method described in claim 1, it is characterized in that, the S3, including:
    The Code Template is parsed by Velocity templates, generates foundation code and document.
  5. 5. a kind of device for accelerating code efficiency in software development, which is characterized in that including:
    Definition unit, for being based on solid data characterizing definition model;
    Customization units, for being applicable in the Code Template of multilingual version according to the model customizing;
    Resolution unit for being parsed to the Code Template, generates foundation code and document.
  6. 6. device according to claim 5, which is characterized in that the definition unit is specifically used for:
    Based on solid data feature, pass through JavaBean and Annotation Definition Models.
  7. 7. device according to claim 6, which is characterized in that@Table are labeled on the model head ,@Column marks On the attribute of the model.
  8. 8. device according to claim 5, which is characterized in that the resolution unit is specifically used for:
    The Code Template is parsed by Velocity templates, generates foundation code and document.
  9. 9. a kind of electronic equipment, which is characterized in that including:Processor, memory, bus and storage on a memory and can located The computer program run on reason device;
    Wherein, the processor, memory complete mutual communication by the bus;
    The processor realizes the method as described in any one of claim 1-4 when performing the computer program.
  10. 10. a kind of non-transient computer readable storage medium storing program for executing, which is characterized in that computer journey is stored on the storage medium Sequence realizes the method as described in any one of claim 1-4 when the computer program is executed by processor.
CN201711279428.4A 2017-12-06 2017-12-06 Accelerate the method and device of code efficiency in software development Withdrawn CN108228174A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711279428.4A CN108228174A (en) 2017-12-06 2017-12-06 Accelerate the method and device of code efficiency in software development

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711279428.4A CN108228174A (en) 2017-12-06 2017-12-06 Accelerate the method and device of code efficiency in software development

Publications (1)

Publication Number Publication Date
CN108228174A true CN108228174A (en) 2018-06-29

Family

ID=62653379

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711279428.4A Withdrawn CN108228174A (en) 2017-12-06 2017-12-06 Accelerate the method and device of code efficiency in software development

Country Status (1)

Country Link
CN (1) CN108228174A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110457031A (en) * 2019-08-21 2019-11-15 赛尔网络有限公司 A kind of software development methodology, device, equipment and medium
CN112799638A (en) * 2021-01-12 2021-05-14 杨飞 Non-invasive rapid development method, platform, terminal and storage medium
CN112799638B (en) * 2021-01-12 2024-07-02 杨飞 Non-invasive rapid development method, platform, terminal and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150293764A1 (en) * 2014-04-10 2015-10-15 Omprakash VISVANATHAN Method and system to compose and execute business rules
CN105242914A (en) * 2015-09-06 2016-01-13 江苏马上游科技股份有限公司 Model driven code generation method and system
CN106528112A (en) * 2016-10-25 2017-03-22 合肥东上多媒体科技有限公司 Model based drive software system development method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150293764A1 (en) * 2014-04-10 2015-10-15 Omprakash VISVANATHAN Method and system to compose and execute business rules
CN105242914A (en) * 2015-09-06 2016-01-13 江苏马上游科技股份有限公司 Model driven code generation method and system
CN106528112A (en) * 2016-10-25 2017-03-22 合肥东上多媒体科技有限公司 Model based drive software system development method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110457031A (en) * 2019-08-21 2019-11-15 赛尔网络有限公司 A kind of software development methodology, device, equipment and medium
CN112799638A (en) * 2021-01-12 2021-05-14 杨飞 Non-invasive rapid development method, platform, terminal and storage medium
CN112799638B (en) * 2021-01-12 2024-07-02 杨飞 Non-invasive rapid development method, platform, terminal and storage medium

Similar Documents

Publication Publication Date Title
CN105446966B (en) The method and apparatus that production Methods data are converted to the mapping ruler of RDF format data
CN103135976B (en) code automatic generation method and device
CN105335133B (en) Method and apparatus for generating business rule model
CN110032369A (en) A kind of code automatic generation method, device and medium
CN110058856A (en) Page configuration method and device
CN109189383A (en) The generation method of code file, calculates equipment and storage medium at device
CN106155686A (en) Interface creating method, device and system
CN104360859A (en) Visual service development method and system
CN103093000A (en) Database query modeling system and database query modeling method
CN104885074B (en) The cloud platform of management design data
CN106293664A (en) Code generating method and device
CN102598002B (en) System and method for producing editable three-dimensional models
CN102449598A (en) Package design and generation
CN109298861A (en) A kind of method and device automatically generating file according to interface document
CN105095237A (en) Method and device used for generating schema of not-only-structured-query-language database
CN103109264A (en) Creating a configuration file template
CN105354036A (en) Database operation code generating method and apparatus
CN104731588B (en) Page layout document generating method and page layout file creating apparatus
CN108427809A (en) A kind of attribute assignment method and device based on assembled architecture
CN111198868A (en) Intelligent sub-database real-time data migration method and device
CN104267962A (en) Description-based interface UI control configuration method
CN107526746A (en) The method and apparatus of management document index
CN105653255A (en) Method arranging report template to automatically generate report files in office frame
CN105446952B (en) For handling the method and system of semantic segment
CN109976803A (en) A kind of generation method and device of file

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication

Application publication date: 20180629

WW01 Invention patent application withdrawn after publication