Web baccarat: began to be interested in the refactoring and design of code to pay attention to the packaging idea

Source: Internet
Author: User

I remember last year when I first came to the home unit, is a relatively large pressure to do the front, because the first year of work, What I do in Wuhan is the development work of vb.net, technical training is very few, logical thinking and SQL aspects of exercise more, because the company to do ERP system, has a good package of technology platform, set up with the line, so work is spent on writing business logic and data logic; I came to Beijing in the second year, in the UF do software implementation, tossing the big six months, and finally Still feel that in Beijing to do the most money, and returned to the bank, when the home unit, the situation is: The company was no front end, there is no packaging front-end anything, I did not specifically do the front end, The development of the past is still vb.net background development, so I was also more worried about not complete the task at the time.

Although the name is a file descriptor, but they do not necessarily connect to a file on the hard disk, Web Baccarat may also connect the keyboard, screen, file pointers, networks and so on.

The first three items of the descriptor descriptor are perpetual: 0 for standard input, 1 for standard output, 2 for standard error, for other items to be empty, or for connecting process open traffic. For example, when the program opens a file for reading and writing, it opens an item.

Each time the process is created, the default 0 (standard input) points to the keyboard, 1 (standard output), and 2 (standard error) to the screen.

So the question is, is the first three not perpetual? So how do I control the flow of data?

A lot of the content is from the original English website and the original bootstrap official English document translation, but I feel his translation quality is higher (because the first two sites are also translated), some cases more understood.

Open the browser access to the server, if the normal access, description Nginx and UWSGI configuration succeeded, Web baccarat but real project on the line is still a short period, because Uwsgi is directly in the foreground, when our connection terminal and the server disconnected when the UWSGI process was closed, So we need to get UWSGI running in the background.

It will be built on the previous transformation matrix. The red rectangle drawn first in the following code is consistent with the position of the red rectangle, and once again the transform (1,math.pi/6,-math.pi/6,1,30,10) is called to change the canvas, This transformation is transformed on the current canvas state so the blue rectangle does not overlap with the red color.

Okay, I'm going to restart. Complete, test Web baccarat tell me about it, okay? I went on with the function module, after half an hour of planning to tell me again wrong, I again need to restart to debug,
All right, let's just get into a dead loop and eat me at night. And I just said changed the afternoon code go out to the activity activities eat back continue to look at
When I come back I will not modify the code, just wait to test this function;

Back to the beginning of the problem, according to the form specification of the selected property is a Boolean attribute, which means that if this attribute (attribute) exists, even if the attribute does not have a corresponding value, or is set to an empty string value, or even "false", The corresponding attribute (property) is still true.

Web baccarat: began to be interested in the refactoring and design of code to pay attention to the packaging idea

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.