WEB development method and device based on code file route

A code file and routing technology, applied in the field of WEB development, can solve the problems of messy code organization structure, code coupling, and high maintenance cost of WEB products, and achieve the effect of convenient web system maintenance and expansion development, clear structure, and avoiding code coupling problems

Inactive Publication Date: 2017-03-22
SURFILTER NETWORK TECH
View PDF4 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, in the process of developing WEB products or projects, it is easy to have problems such as messy code organization structure and code accumulation in one file, which will lead to code coupling, resulting in relatively high maintenance costs for WEB products, and often lead to inability to quickly Issues such as code refactoring

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
  • WEB development method and device based on code file route
  • WEB development method and device based on code file route
  • WEB development method and device based on code file route

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0039] The embodiment of the present invention provides a WEB development method based on code file routing, see figure 1 , the method can include:

[0040] Step S11, storing corresponding codes in separate code files in the server according to the preset code file routing rules.

[0041] In this embodiment, the code files are stored independently in the server according to the preset code file routing rules, which can help developers reasonably arrange the code directory structure and the files where the code is located, thus solving the problems of code bloat and The problem of high code maintenance cost.

[0042] Specifically, the preset code file routing rule may be: according to different functional modules in the developed web system, code file routing is set for different pages or for different operations on the same page.

[0043] In this embodiment, a developed web system generally consists of multiple functional modules according to different functions, each functi...

Embodiment 2

[0065] The embodiment of the present invention provides a WEB development device based on code file routing, which adopts the WEB development method based on code file routing described in Embodiment 1, see Figure 4 , the device may include: a storage module 100 and a processing module 200 .

[0066] The storage module 100 is configured to store corresponding codes in separate code files in the server according to preset code file routing rules.

[0067] In this embodiment, the code files are stored independently in the server according to the preset code file routing rules, which can help developers reasonably arrange the code directory structure and the files where the code is located, thus solving the problems of code bloat and The problem of high code maintenance cost.

[0068] The processing module 200 is configured to obtain the route of the code file by parsing the parameters of the http request, and call the code in the corresponding code file to complete the corresp...

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 invention discloses a WEB development method and device based on a code file route. The method comprises the steps of storing corresponding code to respectively independent code files in a server according to a preset code file routing rule; and obtaining the code file route by analyzing an http request parameter and calling the code in the corresponding code files to finish corresponding web development work. According to the method provided by the invention, a web system is divided into a plurality function modules according to different functions; the different function modules are isolated through different catalogues; different pages and different operations of the same page in each function module are isolated through independent code files; in this way, the function modules and code file structures of the web system are relatively clear; and the code coupling problem in the development process is avoided, thereby facilitating follow-up web system maintenance, expansion and development.

Description

technical field [0001] The invention relates to the technical field of WEB development, in particular to a WEB development method and device based on code file routing. Background technique [0002] With the development of the Internet, various WEB development technologies emerge in an endless stream, such as Java Server Pages (Java Server Pages, referred to as "JSP"), Active Server Pages (Active Server Pages, referred to as "ASP"), Hypertext Preprocessor (Hypertext Preprocessor, referred to as "PHP") and so on. For example, PHP is a cross-platform, embeddable Hyper Text Markup Language (Hyper Text Markup Language, referred to as "html") scripting language that is interpreted and executed. It is easy to learn and is a good choice for rapid WEB development. [0003] However, in the process of developing WEB products or projects, it is easy to have problems such as messy code organization structure and code accumulation in one file, which will lead to code coupling, resulting...

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): G06F9/44G06F17/30
CPCG06F8/31G06F16/9566G06F16/972
Inventor 李少敏王毅敏范娜刘刚唐新民沈智杰景晓军
Owner SURFILTER NETWORK TECH
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