Open juancgarcia opened 7 years ago
-What is the Active Record pattern in a nutshell? Objects carry both persistent data and behavior which operates on that data. Ensures data access to business logic
-At a high level, what are ORM's and how might they be useful? Object Relational Mapping- Connecting the objects of an application with the relevant parts of the database.
-What is the importance of interfacing the server with the database? Allows the application to interact with the database without SQL
Perry/Matt's answers
...I copied that from wiki... basically, when you make a new instance of an object it is added as a row to a data table.
An ORM takes data from table into objects accessible by a programming language.
If you use a large amount of data... you need to store and access it!
1- Active Record : An object that wraps a row in a database table or view, encapsulates the database access, and adds domain logic on that data. 2-ORM: Object-relational mapping ,it is a programming technique for converting data between incompatible type systems using object-oriented programming languages.
1.the Active Record pattern is a 'package' of generally used business methods
2.ORMs standardizes info across databases
3.Creates a universal way of accessing / interacting with info
What is the Active Record pattern in a nutshell? The Active Record Pattern is a framework which uses ORM techniques to represent, validate, and perform operations on models.
At a high level, what are ORM's and how might they be useful? ORMs allow us to use a programming language to manipulate and work with data from a database. It helps you to maintain DRY code.
What is the importance of interfacing the server with the database? It is important in order to store and manipulate data. What if someone wants a different profile name? Password? ORMs can help with this.
It is an architectural software pattern connection database with objects communication between database and client.
The active record is the M in MVC which stands for model, facilitates creation and manipulation of objects.
ORM is a mapping tool that facilitates the creation of objects from a set or sets of data.
Let's us store information that is reusable and more secure.
ORM is object relational mapping Active record is a database for different structures For better fidelity
What is the Active Record pattern in a nutshell? An architectural pattern found in software that stores in-memory object data in relational databases.
At a high level, what are ORM's and how might they be useful? A technique for converting data between incompatible type systems in object-oriented programming languages.
What is the importance of interfacing the server with the database? Easier to communicate with the server and easier to understand for the user
Try to answer these questions: