GithubHelp home page GithubHelp logo

codeviith / python-p4-constraints-and-validations-intro Goto Github PK

View Code? Open in Web Editor NEW

This project forked from learn-co-curriculum/python-p4-constraints-and-validations-intro

0.0 0.0 0.0 4 KB

License: Other

python-p4-constraints-and-validations-intro's Introduction

Intro to Constraints and Validations

Learning Goals

  • Define constraints and validations in data processing.
  • Restrict database input to specific formats using constraints.
  • Ensure that only acceptable input is sent to the database using validations.

Key Vocab

  • Constraint: a rule enforced on the data columns of a table. Ensures that only appropriate data is saved to the database.
  • Validation: an automatic check to ensure that data entered is sensible and feasible.
  • Forms: A web form (or HTML form) is a place where users enter data or personal information that's then sent to a server for processing.

Introduction

Invalid data is the boogeyman of web applications: it hides in your database until the worst possible moment, then jumps out and ruins everything by causing confusing errors.

For most of the curriculum so far, we have been entering our own data. This isn't always perfectly safe as far as data validity is concerned, but at least we know that we're causing any errors on our own. Now that we're working on the web, there are a lot more users capable of causing errors (maybe even in the hundreds of millions, if you're at Meta or Google).

It is critical (and expected in your Phase 4 project!) that you consistently and thoroughly validate data in your applications. In this module we will learn how to deal with invalid data using SQLAlchemy constraints and validations.


Resources

python-p4-constraints-and-validations-intro's People

Contributors

pgill97 avatar professor-ben avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.