Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Development techniques that some programmers may not know

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article focuses on "some development techniques that programmers may not know". Interested friends might as well take a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn "some development techniques that programmers may not know".

Static web page

Many years ago, at that time, the Internet still used a modem, which could modulate the digital signal transmitted by the computer into an analog signal that the telephone line could transmit, then demodulated the received analog signal into a digital signal, and sent it to the computer through the network cable connected through the RJ45 interface.

At that time, the Internet speed was only a few dozen KB/s, and the web pages were all static files, not too many pictures, mostly colorful text.

At that time, the work of the web server was also very simple, sending static web page files to the browser through the HTTP protocol.

CGI era

Later, people began to feel boring, static web pages are too monotonous, everyone sees the same web page, is there a way to dynamically handle user requests on the server side to output different content, so that everyone sees different?

It is natural for people to think of a solution: write programs in programming languages to process these requests, and then let these programs and web servers find a way to interact.

As a result, a technology called Universal Gateway Interface (CGI) has been tampered with. CGI is a set of standard specifications, which prescribes the interaction protocol between the web server and the service extender. With it, the web server has wings and can dynamically process web browsing requests.

The first person to eat crabs was Perl, and then the game ended with Candlestick plus.

Int main () {printf ("\ n"); printf ("\ n"); printf ("hello,% s!\ n", user_ip); printf ("\ n"); printf ("\ n"); return 0;}

When the request received by the web server is within the responsibility of a CGI program, the web server is responsible for starting the CGI program and keeping in touch with the CGI process by means of command line parameters, environment variables, input and output, etc.

Era of dynamic web pages

This set of technology quickly became popular, and the original static websites became less rigid after using CGI technology.

CGI is popular, but at the same time, it also exposes a problem:

Each request has to start a process to process, the CGI process starts slowly, but also initializes, which is unbearable if a large number of requests come.

So, after a period of optimization, the smart Daniel made an upgraded version of CGI: FastCGI.

CGI adopts the master-slave mode, the slave process is responsible for working, and the master process is responsible for dealing with the Web server and managing the dispatch of requests. The main process is resident and starts several working processes in advance without having to start and initialize each time, which greatly improves the efficiency.

The rapid development of the Internet is unexpected, the business logic in the CGI process is getting heavier and heavier, and there is an urgent need for a more suitable programming language to write this kind of web back-end program. at this time, Perl begins to decline, and the operation string of Cpicard Cure + is very troublesome.

The so-called hero of the times, there are three new stars began to emerge: PHP, ASPX, and JSP, respectively, in the back-end development using PHP, C#, Java language to develop, Web back-end development of the three Kingdoms era has begun!

After all, it's too troublesome to generate HTML dynamically through printf or other output methods. PHP, ASPX, and JSP all choose a different path: dynamic assembly.

Insert some extended tags in the HTML template of web content that need to be dynamically changed. These tags are not recognized by the browser and do not belong to the specification of hypertext markup language HTML. The web back-end processor dynamically generates the final HTML file by identifying these tags and assembling the data:

In this way, web back-end development has entered the fast lane, a variety of powerful and colorful websites have been born.

This is an era of dynamic web pages!

Front and rear end separation

Glory lasted for several years, and changes began to occur.

Dynamic web technology, back-end developers are not only responsible for business logic, but also learn front-end technology, energy is scattered.

The front-end technology is developing rapidly and changing with each passing day, and the back-end development is struggling to cope.

Later, with the rise of mobile Internet, major websites have laid out mobile APP one after another, which aggravates the technological differentiation between front-end and back-end.

As a result, the slogan of front and back end separate development was loudly shouted out.

The back end is responsible for business logic, while the front end, Android side and iOS side are respectively responsible for interaction and presentation.

As long as the data interface is defined, all parties act in unity, and the era of one back-end and multiple terminals is coming.

After the separation, the front and rear ends began to take off.

Front end, from the early era of "library" represented by JQuery and BootStrap to the era of frame scaffolding in which AngularJS, React and VUE competed for hegemony, the front-end technology completely freed itself.

At the back end, with the continuous development of the scale of the Internet, a series of technologies such as cache technology, database, message queue, load balancing, container technology and so on emerge in endlessly.

Today's back-end development is not the same as the role played by CGI programs.

At this point, I believe you have a deeper understanding of "some programmers may not know about the development technology", might as well come to the actual operation of it! Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report