Guest User

Untitled

a guest
Jun 24th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. To take
  2. a common example that will be familiar to PHP developers, before using input from an
  3. online form, you need to make sure it doesn’t contain anything that could be used to sab-otage your database or relay spam. The procedural approach looks at the specific project,
  4. and writes tailor-made code, usually a series of conditional statements designed to check
  5. each input field in turn
  6.  
  7. ...
  8.  
  9. OOP looks at programming in a more generic way. Instead of asking “How do I validate this
  10. form?” the object-oriented approach is to ask “How do I validate any form?” It does so by
  11. identifying common tasks and creating generic functions (or methods, as they’re called in
  12. OOP) to handle them.
Add Comment
Please, Sign In to add comment