My first Python web development Framework (21)--Summary

Source: Internet
Author: User

This small site finally successfully on-line, small white in addition to harvest a little more than the cost, but also get the goddess of Mei's appreciation, heart full of sense of accomplishment. After work this day, he invited the old vegetables together to eat a meal, cashing in the promise of dinner, the way to let the old food reviews.

  Xiao Bai: boss, under your guidance finally completed my life in the first project, thank you very much.

  old food: quite good, in such a short time completed a project, it is worth congratulating.

  Little white: boss, code you see no, do you think there is any problem or need to improve the place?

  old dish: What do you think of re-viewing the code after you've done it yourself?

  Small white: Well, I think there are a lot of local code are the same, repeat, copy and paste after the error, some other places feel the code is a bit awkward, but can not say.

  Old dishes: It seems that your technology has improved a lot since the project was completed. Code duplication is a framework must go through the development process of the stage, of course, many people directly use other people's framework to modify can skip this stage, but their perception is not so deep.

A lot of software development framework at the outset is very simple and easy to leak, it can meet the general needs, straightforward, generally as long as strictly follow the development specifications, such code readability is also the best.

And developers in the entire project implementation process has been progressing, when the completion of the project back to look at what you write, you will find that it actually exists a lot of unreasonable places, and in the process of growing up will also learn a lot of new knowledge, can be integrated into the existing system, so that the framework has been developed to become better and more mature. In their own continuous learning and growth process, through the reconstruction of the old framework to upgrade, the development framework will become more mature and strong.

You this framework code I looked, there are several problems: the code to interact with the data duplication, no reasonable encapsulation, the front and rear system interface is not separated, the rights management confusion, background management system no Rights Management module, unable to control the page permissions, easy to trigger security issues;

If you have the time, you can take a moment to reconstruct, separate the database read and write operations, carefully pondering the law of SQL code, encapsulated into ORM Unified management; Add a logical layer between the interface and the manipulation of data to place various logical functions of data manipulation, and to facilitate the encapsulation and management of the code. The backstage and the foreground code each separate out, divides into each independent two big front and back end system, facilitates the management, the backstage management system increases the privilege management module and so on, temporarily thought these, you may first make.

To do these things well, this development framework can be considered more mature.

  Small white: OK, thank the boss of the guidance, I will seriously study, and then pondering. The dishes are on, we are chatting while we eat.

......

The first part of the series finally finished, more than expected to spend a lot of time, the second half because of the end of various things, plus participate in the Agile personal online practice took a lot of time, so no time to write, has been dragged, did not expect to drag so long.

Before writing in fact there are a lot of ideas, for the front end also want to write very fine and fine, but the writing process will always encounter this thing, there are such a variety of concerns, so sometimes will be a bit, write is not too satisfied. No front-end base of friends may seem a little hard, and so after this series all finished, see if it is possible to record some video, direct explanation may be easier to understand, after all, a lot of things directly speaking easier, with words do have a headache.

The second part of the outline of the preliminary arrangement, about 30 chapters, in the year after the time will be scheduled to improve the update, if you have any suggestions can directly send me information.

A security incident caused by XXX Project version control and interface document code review and refactoring what is the application of Ormorm base class to NoSQL in ORM Logic Layer class development and test interface code refactoring background Management system permissions design permissions database structure design background menu management function Background main Interface menu Implementation Department (role group) management function position (role) Management features administrator management functions background interface permissions access control processing interface access encryption processing background operations log processing front and back separation and deployment

Copyright NOTICE: This article was originally published in the blog Park, the author for Allempty This article welcome reprint, but without the author's consent must retain this paragraph statement, and in the article page obvious location to the original link, otherwise considered infringement.

Python Development QQ Group: 669058475 Author Blog: http://www.cnblogs.com/EmptyFS/

My first Python web development Framework (21)--Summary

Related Article

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.