CN105511865A - Method and system using multi-language or multi-engine to do code development - Google Patents

Method and system using multi-language or multi-engine to do code development Download PDF

Info

Publication number
CN105511865A
CN105511865A CN201510863243.2A CN201510863243A CN105511865A CN 105511865 A CN105511865 A CN 105511865A CN 201510863243 A CN201510863243 A CN 201510863243A CN 105511865 A CN105511865 A CN 105511865A
Authority
CN
China
Prior art keywords
code
data
template
functional template
character string
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.)
Pending
Application number
CN201510863243.2A
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.)
DALIAN WENSENTE SOFTWARE TECHNOLOGY Co Ltd
Original Assignee
DALIAN WENSENTE SOFTWARE 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 DALIAN WENSENTE SOFTWARE TECHNOLOGY Co Ltd filed Critical DALIAN WENSENTE SOFTWARE TECHNOLOGY Co Ltd
Priority to CN201510863243.2A priority Critical patent/CN105511865A/en
Publication of CN105511865A publication Critical patent/CN105511865A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/44Encoding
    • G06F8/447Target code generation

Abstract

The invention discloses a method and system using multi-language or multi-engine to do code development; the method comprises the following steps: S1, creating a to-be realized data model; S2, at least selecting one code language or engine to do code edit development, if a preset template database has a function template matched with the data model, then calling the function template and entering step 3, if the function template does not exist in the database, entering the step 4; S3, editing and storing substitute character strings on the function template; S4, creating and storing new function plate, and identifying corresponding substitute character strings in the code editing process, and updating the template database; S5, respectively identifying and analyzing the function template edited by step3 and step4, and doing rendering output for all character strings on the function template. The method and system can effectively improve code reuse rate, thus reducing developing personnel cost, and improving developing efficiency.

Description

A kind of method and system that multilingual or multi engine can be used to carry out code development
Technical field
The invention belongs to development of software technology field, relate to a kind of method and system that multilingual or multi engine can be used to carry out code development specifically.
Background technology
Along with the develop rapidly of modern science and technology, the continuous renewal of the intelligent mobile terminal particularly in recent years headed by mobile phone is regenerated, the very important problem of in face of code development technician one of pendulum is exactly need for same software function or version, carry out the Code Edit of different language or different engine one by one to meet the user demand of different platform, as simple stroke reminding software function, even if between each code language there is the content repeated in partial code, also need respectively for iOS platform, Android platform, windows platform ... complete Code Edit is carried out one by one on platform, greatly reduce software development efficiency, and then cause exploitative waste.
Summary of the invention
In view of the defect that prior art exists, the object of the invention is to provide a kind of method that multilingual or multi engine can be used to carry out code development, this method can make code development technician only need carry out fragmentary Code Edit for each platform (engine) can to realize across language, across engine, cross-platform performance history.
To achieve these goals, technical scheme of the present invention:
Multilingual or multi engine can be used to carry out a method for code development, it is characterized in that:
Comprise the steps
S1: create the data model that will realize, described data model sets corresponding model creation data successively according to the development scheduling of required function process;
S2: based on above-mentioned data model and model creation data, at least selected a kind of code language or engine carry out Code Edit exploitation, and one by one following performance history is carried out to each code language corresponding to the code language of current selected or engine, if described performance history is be present in the functional template matched with described data model in the template database preset, then calls this functional template and enter S3; If there is not the functional template matched with described data model, then enter S4, described functional template is according to development scheduling established standards character string or replacement character string line by line, wherein said standard characters refers to when the model creation data setting to current functional template required function process, do not change and the character string that can be reused with model creation data variation, described replacement character string refers to when the model creation data setting to current functional template required function process, can not be reused, need the character string re-starting editor;
S3: the replacement character string on described functional template is edited and stored;
S4: create and store new functional template, and in edit code process, identify corresponding replacement character string; Upgrade template database simultaneously;
S5: respectively the functional template each code language corresponding to of discriminance analysis after performance history described in S2 and S3 or S4 edit after functional template, and carry out playing up output according to the alphabet string on each described functional template one by one.
Described method also comprises S6: if create multiple data model in S1 simultaneously, and determines output order in each data model, then above-mentioned multiple data model can be carried out merging and play up output.
Further, the model creation data in described S1 comprise functional description data, need carry out numerical data, the lteral data played up.
Further, file bag that Output rusults includes but not limited to export with the form of the source code of Multi-encoding language or multi engine, installation kit, text packets any one or multiple combination are played up in the merging in described S6.
The present invention also will provide a kind of and carry out system that is multilingual or multi engine code development simultaneously, it is characterized in that:
Comprise
User log-in block, for creating the data model that will realize, described data model sets corresponding model creation data successively according to the development scheduling of required function process;
User Exploitation module, for realizing based on above-mentioned data model and model creation data, at least selected a kind of code language or engine carry out Code Edit exploitation, and one by one following performance history is carried out to each code language corresponding to the code language of current selected or engine, described performance history is whether be present in the functional template matched with described data model in the template database judging to preset, if be present in the functional template matched with described data model, then call this functional template, replacement character string on described functional template is edited and stored, if there is not the functional template matched with described data model, then create and store new functional template, and the replacement character string identifying correspondence in edit code process upgrades template database simultaneously, described functional template is according to development scheduling established standards character string or replacement character string line by line, wherein said standard characters refers to when the model creation data setting to current functional template required function process, do not change and the character string that can be reused with model creation data variation, described replacement character string refers to when the model creation data setting to current functional template required function process, can not be reused, need the character string re-starting editor,
Play up output module, functional template after editing for the functional template respectively corresponding to discriminance analysis each code language after performance history described in S2 and S3 or S4, and carry out playing up output according to the alphabet string on each described functional template one by one.
Described system also comprises merging output module, and it for creating multiple data model simultaneously in user log-in block, and when determining output order in each data model, above-mentioned multiple data model is carried out merging and plays up output.
Further, described model creation data comprise functional description data, need carry out numerical data, the lteral data played up.
Further, file bag that Output rusults includes but not limited to export with the form of the source code of Multi-encoding language or multi engine, installation kit, text packets any one or multiple combination are played up in the merging of described merging output module.
Compared with prior art, beneficial effect of the present invention:
The present invention effectively improves rate of code reuse under or else distinguishing the prerequisite of application platform, achieves the recycling of the partial code in code development process, and developer only need develop for change character string (replacement character string); Simultaneously for development project problem, achieve a point function course sporadic development, reduce further developer's cost of development, improve development efficiency.
Accompanying drawing explanation
Fig. 1 of the present inventionly carries out method step process flow diagram that is multilingual or multi engine code development simultaneously;
Fig. 2 of the present inventionly carries out system architecture schematic diagram that is multilingual or multi engine code development simultaneously.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with accompanying drawing, the present invention is further elaborated.
As shown in Figure 1, a kind ofly carry out method that is multilingual or multi engine code development, it comprises the steps simultaneously
S1: determine the data model that will edit and related setting, namely creates the data model that will realize, and sets corresponding model creation data successively according to the development scheduling of required function process; Model creation data comprise functional description data, need carry out the numerical data, lteral data etc. played up;
S2: carry out code development, namely based on above-mentioned data model and model creation data, at least selected a kind of code language or engine carry out Code Edit exploitation and (select according to user demand, if only need a kind of code language then only to select this kind of code language, if desired multilingual or current engine platform-need multilingual as Android platform, after then selecting code language respectively, develop one by one) carry out Code Edit exploitation, and one by one following performance history is carried out to each code language corresponding to the code language of current selected or engine, if described performance history is be present in the functional template matched with described data model in the template database (if real-time update edits new functional template, needing to add in database) preset, then call this functional template and enter S3, if there is not the functional template matched with described data model, then enter S4,
Described functional template sets code character string line by line according to development scheduling or development requirement, described code character string comprises standard characters or replacement character string, wherein said standard characters refers to when the model creation data setting to current functional template required function process, do not change and the character string that can be reused with model creation data variation, described replacement character string or can be called that change character string refers to when the model creation data setting to current functional template required function process, can not be reused, need the character string re-starting editor, established standards character string can be seen as prototype code skeleton, only need compile once, effectively can save developer and compile workload and time, as described the code development process as (alarm clock function) at the said function based on a certain development language, if desired set at 3 to sound function with 6 alarm clocks, basically identical at whole code, only need to change time variable character string.
S3: the replacement character string on described functional template is edited and stored;
S4: create and store new functional template, and in edit code process, identify corresponding replacement character string; Upgrade template database simultaneously; This mark can adopt simple Symbol recognition program, identifies replacement character string as adopted " ";
S5: respectively the functional template each code language corresponding to of discriminance analysis after performance history described in S2 and S3 or S4 edit after functional template, and carry out playing up output according to the alphabet string on functional template described in each one by one and namely complete code development output procedure that is multilingual or multi engine.
Described method also comprises S6: if create multiple data model in S1 simultaneously, and determines output order in each data model, then above-mentioned multiple data model can be carried out merging and play up output.
Further, the model creation data in described S1 comprise functional description data, need carry out numerical data, the lteral data played up.
Further, file bag that Output rusults includes but not limited to export with the form of the source code of Multi-encoding language or multi engine, installation kit, text packets any one or multiple combination are played up in the merging in described S6.Subsequently user can more according to this content compile, be output into HTML5 program, mobile phone A PP, PC application, game ... etc. multiple application program.
As shown in Figure 2, the present invention also will provide a kind of and carry out system that is multilingual or multi engine code development simultaneously, it is characterized in that:
Comprise
User log-in block, for creating the data model that will realize, described data model sets corresponding model creation data successively according to the development scheduling of required function process;
User Exploitation module, for realizing based on above-mentioned data model and model creation data, at least selected a kind of code language or engine carry out Code Edit exploitation and (select according to user demand, if only need a kind of code language then only to select this kind of code language, if desired multilingual or current engine platform-need multilingual as Android platform, after then selecting code language respectively, develop one by one) carry out Code Edit exploitation, and one by one following performance history is carried out to each code language corresponding to the code language of current selected or engine, described performance history is whether be present in the functional template matched with described data model in the template database judging to preset, if be present in the functional template matched with described data model, then call this functional template, replacement character string on described functional template is edited and stored, if there is not the functional template matched with described data model, then create and store new functional template, and the replacement character string identifying correspondence in edit code process upgrades template database simultaneously, described functional template is according to development scheduling established standards character string or replacement character string line by line, wherein said standard characters refers to when the model creation data setting to current functional template required function process, do not change and the character string that can be reused with model creation data variation, described replacement character string refers to when the model creation data setting to current functional template required function process, can not be reused, need the character string re-starting editor, established standards character string can be seen as prototype code skeleton, only need compile once, effectively can save developer and compile workload and time, as described the code development process as (alarm clock function) at the said function based on a certain development language, if desired set at 3 to sound function with 6 alarm clocks, basically identical at whole code, only need to change time variable character string.
Play up output module, respectively the functional template each code language corresponding to of discriminance analysis after performance history described in S2 and S3 or S4 edit after functional template, and carry out playing up output according to the alphabet string on functional template described in each one by one and namely complete code development output procedure that is multilingual or multi engine.
As Fig. 2, create two data models, and determine both logic output orders by logical mappings module, carry out merging by described merging output module and play up output.
Further, described model creation data comprise functional description data, need carry out numerical data, the lteral data played up.
Further, file bag that Output rusults includes but not limited to export with the form of the source code of Multi-encoding language or multi engine, installation kit, text packets any one or multiple combination are played up in the merging of described merging output module.Subsequently user can more according to this content compile, be output into HTML5 program, mobile phone A PP, PC application, game ... etc. multiple application program.
The above; be only the present invention's preferably embodiment; but protection scope of the present invention is not limited thereto; anyly be familiar with those skilled in the art in the technical scope that the present invention discloses; be equal to according to technical scheme of the present invention and inventive concept thereof and replace or change, all should be encompassed within protection scope of the present invention.

Claims (8)

1. multilingual or multi engine can be used to carry out a method for code development, it is characterized in that:
Comprise the steps
S1: create the data model that will realize, described data model sets corresponding model creation data successively according to the development scheduling of required function process;
S2: based on above-mentioned data model and model creation data, at least selected a kind of code language or engine carry out Code Edit exploitation, and one by one following performance history is carried out to each code language corresponding to the code language of current selected or engine, if described performance history is be present in the functional template matched with described data model in the template database preset, then calls this functional template and enter S3; If there is not the functional template matched with described data model, then enter S4, described functional template is according to development scheduling established standards character string or replacement character string line by line, wherein said standard characters refers to when the model creation data setting to current functional template required function process, do not change and the character string that can be reused with model creation data variation, described replacement character string refers to when the model creation data setting to current functional template required function process, can not be reused, need the character string re-starting editor;
S3: the replacement character string on described functional template is edited and stored;
S4: create and store new functional template, and in edit code process, identify corresponding replacement character string; Upgrade template database simultaneously;
S5: respectively the functional template each code language corresponding to of discriminance analysis after performance history described in S2 and S3 or S4 edit after functional template, and carry out playing up output according to the alphabet string on each described functional template one by one.
2. a kind of method that multilingual or multi engine can be used to carry out code development according to claim 1, is characterized in that:
Model creation data in described S1 comprise functional description data, need carry out numerical data, the lteral data played up.
3. a kind of method that multilingual or multi engine can be used to carry out code development according to claim 1, is characterized in that:
Described method also comprises S6: if create multiple data model in S1 simultaneously, and determines output order in each data model, then above-mentioned multiple data model can be carried out merging and play up output.
4. a kind of method that multilingual or multi engine can be used to carry out code development according to claim 3, is characterized in that:
File bag that Output rusults includes but not limited to export with the form of the source code of Multi-encoding language or multi engine, installation kit, text packets any one or multiple combination are played up in merging in described S6.
5. multilingual or multi engine can be used to carry out a system for code development, it is characterized in that:
User log-in block, for creating the data model that will realize, described data model sets corresponding model creation data successively according to the development scheduling of required function process;
User Exploitation module, for realizing based on above-mentioned data model and model creation data, at least selected a kind of code language or engine carry out Code Edit exploitation, and one by one following performance history is carried out to each code language corresponding to the code language of current selected or engine, described performance history is whether be present in the functional template matched with described data model in the template database judging to preset, if be present in the functional template matched with described data model, then call this functional template, replacement character string on described functional template is edited and stored, if there is not the functional template matched with described data model, then create and store new functional template, and the replacement character string identifying correspondence in edit code process upgrades template database simultaneously, described functional template is according to development scheduling established standards character string or replacement character string line by line, wherein said standard characters refers to when the model creation data setting to current functional template required function process, do not change and the character string that can be reused with model creation data variation, described replacement character string refers to when the model creation data setting to current functional template required function process, can not be reused, need the character string re-starting editor,
Play up output module, functional template after editing for the functional template respectively corresponding to discriminance analysis each code language after performance history described in S2 and S3 or S4, and carry out playing up output according to the alphabet string on each described functional template one by one.
6. a kind of system that multilingual or multi engine can be used to carry out code development according to claim 5, is characterized in that:
Described model creation data comprise functional description data, need carry out numerical data, the lteral data played up.
7. a kind of system that multilingual or multi engine can be used to carry out code development according to claim 5, is characterized in that:
Described system also comprises merging output module, and it for creating multiple data model simultaneously in user log-in block, and when determining output order in each data model, above-mentioned multiple data model is carried out merging and plays up output.
8. a kind of system that multilingual or multi engine can be used to carry out code development according to claim 5, is characterized in that:
File bag that Output rusults includes but not limited to export with the form of the source code of Multi-encoding language or multi engine, installation kit, text packets any one or multiple combination are played up in the merging of described merging output module.
CN201510863243.2A 2015-11-30 2015-11-30 Method and system using multi-language or multi-engine to do code development Pending CN105511865A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510863243.2A CN105511865A (en) 2015-11-30 2015-11-30 Method and system using multi-language or multi-engine to do code development

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510863243.2A CN105511865A (en) 2015-11-30 2015-11-30 Method and system using multi-language or multi-engine to do code development

Publications (1)

Publication Number Publication Date
CN105511865A true CN105511865A (en) 2016-04-20

Family

ID=55719875

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510863243.2A Pending CN105511865A (en) 2015-11-30 2015-11-30 Method and system using multi-language or multi-engine to do code development

Country Status (1)

Country Link
CN (1) CN105511865A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106484896A (en) * 2016-10-21 2017-03-08 郑州云海信息技术有限公司 A kind of digital power file updating method, device and system
CN106843888A (en) * 2017-01-23 2017-06-13 恒生电子股份有限公司 Method and device for solving field conflict in multilingual development system
CN109918126A (en) * 2019-01-28 2019-06-21 平安普惠企业管理有限公司 Method, apparatus, computer equipment and the storage medium of Code Edit
CN110018822A (en) * 2019-04-16 2019-07-16 山东浪潮通软信息科技有限公司 A kind of method and system automatically generating micro services function
CN111813380A (en) * 2019-04-29 2020-10-23 厦门雅基软件有限公司 Coloring data processing method and device based on game engine and electronic equipment
CN112306498A (en) * 2020-11-13 2021-02-02 用友网络科技股份有限公司 Code generation method, ERP system and readable storage medium
CN112799638A (en) * 2021-01-12 2021-05-14 杨飞 Non-invasive rapid development method, platform, terminal and storage medium
CN115618887A (en) * 2022-10-17 2023-01-17 北京志凌海纳科技有限公司 Dynamic long text internationalization method, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060136868A1 (en) * 2004-12-20 2006-06-22 International Business Machines Corporation Automatically adding code to voice enable a GUI component
CN101114226A (en) * 2007-08-28 2008-01-30 北京中企开源信息技术有限公司 Code automatically generating device based on model component, system and method
CN101122854A (en) * 2007-09-13 2008-02-13 上海交通大学 Structured code automatic configuration method and device
CN101841515A (en) * 2009-03-19 2010-09-22 北京理工大学 Target variable protocol data unit codec code automatic generation implementation method
CN102508669A (en) * 2011-11-14 2012-06-20 浙江鸿程计算机系统有限公司 Automatic program code generating method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060136868A1 (en) * 2004-12-20 2006-06-22 International Business Machines Corporation Automatically adding code to voice enable a GUI component
CN101114226A (en) * 2007-08-28 2008-01-30 北京中企开源信息技术有限公司 Code automatically generating device based on model component, system and method
CN101122854A (en) * 2007-09-13 2008-02-13 上海交通大学 Structured code automatic configuration method and device
CN101841515A (en) * 2009-03-19 2010-09-22 北京理工大学 Target variable protocol data unit codec code automatic generation implementation method
CN102508669A (en) * 2011-11-14 2012-06-20 浙江鸿程计算机系统有限公司 Automatic program code generating method

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106484896A (en) * 2016-10-21 2017-03-08 郑州云海信息技术有限公司 A kind of digital power file updating method, device and system
CN106484896B (en) * 2016-10-21 2019-08-02 郑州云海信息技术有限公司 A kind of digital power file updating method, device and system
CN106843888A (en) * 2017-01-23 2017-06-13 恒生电子股份有限公司 Method and device for solving field conflict in multilingual development system
CN106843888B (en) * 2017-01-23 2020-03-17 恒生电子股份有限公司 Method and device for solving field conflict in multi-language development system
CN109918126A (en) * 2019-01-28 2019-06-21 平安普惠企业管理有限公司 Method, apparatus, computer equipment and the storage medium of Code Edit
CN110018822A (en) * 2019-04-16 2019-07-16 山东浪潮通软信息科技有限公司 A kind of method and system automatically generating micro services function
CN111813380A (en) * 2019-04-29 2020-10-23 厦门雅基软件有限公司 Coloring data processing method and device based on game engine and electronic equipment
CN112306498A (en) * 2020-11-13 2021-02-02 用友网络科技股份有限公司 Code generation method, ERP system and readable storage medium
CN112799638A (en) * 2021-01-12 2021-05-14 杨飞 Non-invasive rapid development method, platform, terminal and storage medium
CN115618887A (en) * 2022-10-17 2023-01-17 北京志凌海纳科技有限公司 Dynamic long text internationalization method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN105511865A (en) Method and system using multi-language or multi-engine to do code development
CN106534548B (en) Voice error correction method and device
CN100452021C (en) Computer program development system and method
CN101071378A (en) Source code generation method, apparatus and program
CN104331285A (en) Automatic code generation method and system
EP1766567A4 (en) System and method for developing animated visualization interfaces
CN108710704A (en) Determination method, apparatus, electronic equipment and the storage medium of dialogue state
JP7223574B2 (en) MANGA GENERATION SYSTEM AND MANGA GENERATION METHOD
CN106354492A (en) Automatic code generation method and system capable of rapidly adjusting transaction process connection
CN103400576A (en) User behavior log-based method and user behavior log-based device for updating voice model
CN110942763A (en) Voice recognition method and device
DE602005010221D1 (en) SYSTEMS AND METHOD FOR IDENTIFYING A COMPLEX TEXT IN A PRESENTATION DATA STREAM
CN110738997A (en) information correction method, device, electronic equipment and storage medium
CN111553138A (en) Auxiliary writing method and device for standardizing content structure document
CN109191078A (en) A kind of traffic flow modeling method, device and equipment
CN103810365A (en) Automatic grading method based on hydroelectric simulation training system
CN106383734A (en) Method for extracting detailed design from codes
CN110968307A (en) Micro-service construction method and device based on intelligent generation of basic codes
CN115879450B (en) Gradual text generation method, system, computer equipment and storage medium
CN101853248A (en) Decoding method of aviation weather report
CN108766513B (en) Intelligent health medical data structured processing system
CN116185853A (en) Code verification method and device
CN112181399A (en) Method for generating front-end code based on data analysis construction model
WO2005119439A3 (en) Retargetable instruction set simulators
CN109885396A (en) Character string construction method and device in a kind of game application

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160420

RJ01 Rejection of invention patent application after publication