Intro to Programming Flashcards
What are the four major levels of programming for all web languages?
Procedural, Object-Oriented Programming (OOP), MVC, ORM
What is procedural programming?
Runs code from top to bottom
What is object oriented programming?
Re-create objects or blocks of code with 1 command, reducing code and increasing efficiency.
What is MVC?
Object Oriented with more structure. we have certain files or blocks of code that are dedicated to a certain job.
Models - files or blocks of code that talk to the database
Views - Files or blocks of code that load as templates, usually HTML files
Controllers - Files or blocks of code that direct the server to get information from models or load views
What is ORM?
O.R.M. is a way of structuring our models, and more specifically the relations between models in a way that we can use the O.R.M. commands to query the database more efficiently. With a few words, we can retrieve or add data to a database that would normally take 1-2 lines of SQL statements.