ga-wdi-lessons / activerecord-intro

Test description. [ruby,activerecord]
Creative Commons Zero v1.0 Universal
0 stars 15 forks source link

Information Dive #10

Open juancgarcia opened 7 years ago

juancgarcia commented 7 years ago

Try to answer these questions:

cwcox commented 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

Gelmo890 commented 7 years ago
  1. with out changing content
mattcfilbert commented 7 years ago

Perry/Matt's answers

  1. The active record pattern is an approach to accessing data in a database. A database table or view is wrapped into a class. Thus, an object instance is tied to a single row in the table. After creation of an object, a new row is added to the table upon save.

...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.

  1. An ORM takes data from table into objects accessible by a programming language.

  2. If you use a large amount of data... you need to store and access it!

Rami-Taha commented 7 years ago

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.

jdpolakoff commented 7 years ago
sanjaywallah commented 7 years ago
  1. AR enables the use of Business Objects that require storage to a database.
  2. Object-relational mapping (ORM, O/RM, and O/R mapping tool) is a programming technique for converting data between incompatible type systems using object-oriented programming languages.
  3. Facilitate data persistence.
awandres commented 7 years ago

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

kadkins4 commented 7 years ago
  1. Active Record is the framework used to access data
  2. ORM - Object Relational mapping makes info compatible across systems.
  3. Does not require SQL
jessamarie commented 7 years ago

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.

jhosuedeveloper commented 7 years ago

It is an architectural software pattern connection database with objects communication between database and client.

jacobg1 commented 7 years ago

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.

colleeno commented 7 years ago
  1. active record pattern - 'model' view, the way to access the data base
  2. ORMs - 'virtual database', connects the info across database
  3. so you can store information from server to database, and access the database info from server
TimGafvert commented 7 years ago

ORM is object relational mapping Active record is a database for different structures For better fidelity

ddandrea00 commented 7 years ago

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

Amarinder1 commented 7 years ago
  1. objects carry both persistent data and behavior which operates on that data
  2. allows the coder to access code written in another language
  3. easier to store information