The difference between model models and module modules

Source: Internet
Author: User
Tags postgresql

Information is from the Internet to find, specifically who wrote the first, not clear.

Model is usually referred to as models. This model may be what you need to analyze, perhaps your algorithm. But the most likely is the MVC site, or the model in M in the GUI development pattern.

So when to use model depends on what you are going to do. You were going to take a long time to do it. If you do a short project you can use the model. If the project is more than 1 days, you can still use the model. Then you should design your model according to the frame you are using.

Module refers to modules, the concept is originally from the structure of programming. In short, it is a standalone Python program file. Can be used by other program import methods. This thing will be used in most cases. This is a good programming habit as long as the program is more than 50 lines or so it usually builds a module independently.

There are also 1000 lines of programmers who are a file. The program that is written is not necessarily bad. This is the main control of their own ability. I am accustomed to limiting my thinking to a small area, so I will make a unit, module, and test independently for each good one problem. Re-use later.


Yes, there is a mod thing, often seen in the game, is the abbreviation of modification.


The difference between model models and module modules

Alibaba Cloud Hot Products

Elastic Compute Service (ECS) Dedicated Host (DDH) ApsaraDB RDS for MySQL (RDS) ApsaraDB for PolarDB(PolarDB) AnalyticDB for PostgreSQL (ADB for PG)
AnalyticDB for MySQL(ADB for MySQL) Data Transmission Service (DTS) Server Load Balancer (SLB) Global Accelerator (GA) Cloud Enterprise Network (CEN)
Object Storage Service (OSS) Content Delivery Network (CDN) Short Message Service (SMS) Container Service for Kubernetes (ACK) Data Lake Analytics (DLA)

ApsaraDB for Redis (Redis)

ApsaraDB for MongoDB (MongoDB) NAT Gateway VPN Gateway Cloud Firewall
Anti-DDoS Web Application Firewall (WAF) Log Service DataWorks MaxCompute
Elastic MapReduce (EMR) Elasticsearch

Alibaba Cloud Free Trail

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.