SlideShare a Scribd company logo
Active Record  Presentation by Mambe Churchill Nanje CEO, www.afrovisiongroup.com At Barcamp Cameroon 2009
What is Active Record?   Active Record is an implementation of Object Relational Mapping where in a database is manipulated by highly linked objects(MODELS) interfacing the database tables and their content e.g instead of  SELECT * FROM accounts WHERE user=1 with Active records we do  user=new User(1); //sql gets generated for you
Assumed Knowledge   To fully understand active record you need to understand the following ,[object Object],[object Object]
HOW IT WORKS Example: car park management system Database of Cars Code without Active Record: connection=new Connection(h,u,p); query='select * from cars where id=1';  rs=connection.statement.execute(query); car=rs.get(0); print(car.brand); //mercedes print(car.owner); //francis Code With Active Record: database=new Database(h,u,p); car=database.get('cars',1); print(car.brand); //mercedes print(car.owner); //francis
CASE STUDY WWW.UBSTUDENTS.COM : 2007 ,[object Object],[object Object],[object Object],[object Object],[object Object],University of Buea Students online portal
CASE STUDY WWW.NAIJABORN.COM  : 2009 CASE STUDY ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Online community of Nigerians and their career info
CASE STUDY WWW.AFRIKEO.COM  2008 ,[object Object],[object Object],[object Object],[object Object],Aggregator and search engine for African news, blogs, classified
CASE STUDY WWW.VILLAGEDIARY.ORG  : 2009 ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Online platform to record cases in villages
Advantages of Active Record •  Productivity –  Eliminates lots of repetitive code – focus on business logic –  Database code is generated automatically •  Maintainability –  Fewer lines of code – easier to understand –  Easier to manage change in the object model •   Performance –  Lazy loading – associations are fetched when needed –  Caching •   Database vendor independence –  The underlying database is abstracted away –  Can be configured outside the application
More about Active Record ,[object Object],[object Object],Cool Example Code allCars=database.find_all('cars'); cars=database.get_where_brand('cars','mercedes'); cars=database.get('cars',1).owner.name;
Thank you For more informationa about me www.afrovisiongroup.com http://mambenanje.blogspot.com www.twitter.com/mambenanje www.facebook.com/mambenanje other links www.blackamphi.com www.nexdimempire.com

More Related Content

Viewers also liked

Dtea Class Of 65
Dtea Class Of 65Dtea Class Of 65
Dtea Class Of 65
vilakku
 
1963 we shall overcome
1963   we shall overcome1963   we shall overcome
1963 we shall overcome
Jean-Paul BOULAND
 
Va pensiero
Va pensieroVa pensiero
Va pensiero
Jean-Paul BOULAND
 
Pps notre père (peteris vasks)
Pps notre père (peteris vasks)Pps notre père (peteris vasks)
Pps notre père (peteris vasks)
Jean-Paul BOULAND
 
Brandl March 19 2010 Talk
Brandl  March 19 2010 TalkBrandl  March 19 2010 Talk
Brandl March 19 2010 Talk
mwbrandl
 
Techhub Riga Saeimas Innovation & Science Sub-Commission presentation Februar...
Techhub Riga Saeimas Innovation & Science Sub-Commission presentation Februar...Techhub Riga Saeimas Innovation & Science Sub-Commission presentation Februar...
Techhub Riga Saeimas Innovation & Science Sub-Commission presentation Februar...
Andris Berzins
 
Portfolio Beatriz Braga
Portfolio Beatriz BragaPortfolio Beatriz Braga
Portfolio Beatriz BragaBeatriz Braga
 
3M Talk March 2010
3M  Talk  March 20103M  Talk  March 2010
3M Talk March 2010
mwbrandl
 
JWU April 2010 speech
JWU April 2010 speechJWU April 2010 speech
JWU April 2010 speech
mwbrandl
 
Banks under attack: Presentation to SEB Bank Baltics management about the #Fi...
Banks under attack: Presentation to SEB Bank Baltics management about the #Fi...Banks under attack: Presentation to SEB Bank Baltics management about the #Fi...
Banks under attack: Presentation to SEB Bank Baltics management about the #Fi...
Andris Berzins
 
Mesopotamia and the Fertile Crescent
Mesopotamia and the Fertile CrescentMesopotamia and the Fertile Crescent
Mesopotamia and the Fertile CrescentMISSRMANN
 

Viewers also liked (17)

Dtea Class Of 65
Dtea Class Of 65Dtea Class Of 65
Dtea Class Of 65
 
1963 we shall overcome
1963   we shall overcome1963   we shall overcome
1963 we shall overcome
 
Va pensiero
Va pensieroVa pensiero
Va pensiero
 
Pps notre père (peteris vasks)
Pps notre père (peteris vasks)Pps notre père (peteris vasks)
Pps notre père (peteris vasks)
 
Pan
PanPan
Pan
 
Ulysses
UlyssesUlysses
Ulysses
 
Brandl March 19 2010 Talk
Brandl  March 19 2010 TalkBrandl  March 19 2010 Talk
Brandl March 19 2010 Talk
 
Techhub Riga Saeimas Innovation & Science Sub-Commission presentation Februar...
Techhub Riga Saeimas Innovation & Science Sub-Commission presentation Februar...Techhub Riga Saeimas Innovation & Science Sub-Commission presentation Februar...
Techhub Riga Saeimas Innovation & Science Sub-Commission presentation Februar...
 
Portfolio Beatriz Braga
Portfolio Beatriz BragaPortfolio Beatriz Braga
Portfolio Beatriz Braga
 
3M Talk March 2010
3M  Talk  March 20103M  Talk  March 2010
3M Talk March 2010
 
JWU April 2010 speech
JWU April 2010 speechJWU April 2010 speech
JWU April 2010 speech
 
Pres
PresPres
Pres
 
A Tale Of Two Cities
A Tale Of Two CitiesA Tale Of Two Cities
A Tale Of Two Cities
 
Erewhon
ErewhonErewhon
Erewhon
 
Around The World In 80 Days
Around The World In 80 DaysAround The World In 80 Days
Around The World In 80 Days
 
Banks under attack: Presentation to SEB Bank Baltics management about the #Fi...
Banks under attack: Presentation to SEB Bank Baltics management about the #Fi...Banks under attack: Presentation to SEB Bank Baltics management about the #Fi...
Banks under attack: Presentation to SEB Bank Baltics management about the #Fi...
 
Mesopotamia and the Fertile Crescent
Mesopotamia and the Fertile CrescentMesopotamia and the Fertile Crescent
Mesopotamia and the Fertile Crescent
 

Similar to Active Records Barcamp Cameroon 2009

Symphony Driver Essay
Symphony Driver EssaySymphony Driver Essay
Symphony Driver Essay
Angie Jorgensen
 
The Recent Pronouncement Of The World Wide Web (Www) Had
The Recent Pronouncement Of The World Wide Web (Www) HadThe Recent Pronouncement Of The World Wide Web (Www) Had
The Recent Pronouncement Of The World Wide Web (Www) Had
Deborah Gastineau
 
DRM Webinar Series, PART 3: Will DRM Integrate With Our Applications?
DRM Webinar Series, PART 3: Will DRM Integrate With Our Applications?DRM Webinar Series, PART 3: Will DRM Integrate With Our Applications?
DRM Webinar Series, PART 3: Will DRM Integrate With Our Applications?
US-Analytics
 
Resume-Amar.compressed
Resume-Amar.compressedResume-Amar.compressed
Resume-Amar.compressedAmarjeet Kumar
 
Serverless_with_MongoDB
Serverless_with_MongoDBServerless_with_MongoDB
Serverless_with_MongoDB
Amazon Web Services
 
The Story of How an Oracle Classic Stronghold successfully embraced SOA (ODTU...
The Story of How an Oracle Classic Stronghold successfully embraced SOA (ODTU...The Story of How an Oracle Classic Stronghold successfully embraced SOA (ODTU...
The Story of How an Oracle Classic Stronghold successfully embraced SOA (ODTU...
Lucas Jellema
 
01 oracle application integration overview
01 oracle application integration overview01 oracle application integration overview
01 oracle application integration overview
nksolanki
 
apidays LIVE Paris 2021 - Building an analytics API by David Wobrock, Botify
apidays LIVE Paris 2021 - Building an analytics API by David Wobrock, Botifyapidays LIVE Paris 2021 - Building an analytics API by David Wobrock, Botify
apidays LIVE Paris 2021 - Building an analytics API by David Wobrock, Botify
apidays
 
Salesforce Presentation
Salesforce PresentationSalesforce Presentation
Salesforce Presentation
Chetna Purohit
 
Prabhu-Software-Engineer-3+-Year-Exp
Prabhu-Software-Engineer-3+-Year-ExpPrabhu-Software-Engineer-3+-Year-Exp
Prabhu-Software-Engineer-3+-Year-Exp
Prabhu S
 
Technology Overview
Technology OverviewTechnology Overview
Technology Overview
Liran Zelkha
 
Workday overview sigmora
Workday overview sigmoraWorkday overview sigmora
Workday overview sigmorabgadicha
 
Informatica Interview Questions & Answers
Informatica Interview Questions & AnswersInformatica Interview Questions & Answers
Informatica Interview Questions & Answers
ZaranTech LLC
 
Sap Interview Questions - Part 1
Sap Interview Questions - Part 1Sap Interview Questions - Part 1
Sap Interview Questions - Part 1
ReKruiTIn.com
 
Concevoir une application scalable dans le Cloud
Concevoir une application scalable dans le CloudConcevoir une application scalable dans le Cloud
Concevoir une application scalable dans le Cloud
Stéphanie Hertrich
 
MongoDB in a Mainframe World
MongoDB in a Mainframe WorldMongoDB in a Mainframe World
MongoDB in a Mainframe World
MongoDB
 
Using PHP and SOA for Situational Applications in the Enterprise
Using PHP and SOA for Situational Applications in the EnterpriseUsing PHP and SOA for Situational Applications in the Enterprise
Using PHP and SOA for Situational Applications in the Enterprisewebhostingguy
 
Brijesh Soni
Brijesh SoniBrijesh Soni
Brijesh Soni
Brijesh Soni
 

Similar to Active Records Barcamp Cameroon 2009 (20)

Symphony Driver Essay
Symphony Driver EssaySymphony Driver Essay
Symphony Driver Essay
 
The Recent Pronouncement Of The World Wide Web (Www) Had
The Recent Pronouncement Of The World Wide Web (Www) HadThe Recent Pronouncement Of The World Wide Web (Www) Had
The Recent Pronouncement Of The World Wide Web (Www) Had
 
DRM Webinar Series, PART 3: Will DRM Integrate With Our Applications?
DRM Webinar Series, PART 3: Will DRM Integrate With Our Applications?DRM Webinar Series, PART 3: Will DRM Integrate With Our Applications?
DRM Webinar Series, PART 3: Will DRM Integrate With Our Applications?
 
Resume-Amar.compressed
Resume-Amar.compressedResume-Amar.compressed
Resume-Amar.compressed
 
Serverless_with_MongoDB
Serverless_with_MongoDBServerless_with_MongoDB
Serverless_with_MongoDB
 
RavenDB overview
RavenDB overviewRavenDB overview
RavenDB overview
 
The Story of How an Oracle Classic Stronghold successfully embraced SOA (ODTU...
The Story of How an Oracle Classic Stronghold successfully embraced SOA (ODTU...The Story of How an Oracle Classic Stronghold successfully embraced SOA (ODTU...
The Story of How an Oracle Classic Stronghold successfully embraced SOA (ODTU...
 
01 oracle application integration overview
01 oracle application integration overview01 oracle application integration overview
01 oracle application integration overview
 
apidays LIVE Paris 2021 - Building an analytics API by David Wobrock, Botify
apidays LIVE Paris 2021 - Building an analytics API by David Wobrock, Botifyapidays LIVE Paris 2021 - Building an analytics API by David Wobrock, Botify
apidays LIVE Paris 2021 - Building an analytics API by David Wobrock, Botify
 
Salesforce Presentation
Salesforce PresentationSalesforce Presentation
Salesforce Presentation
 
Prabhu-Software-Engineer-3+-Year-Exp
Prabhu-Software-Engineer-3+-Year-ExpPrabhu-Software-Engineer-3+-Year-Exp
Prabhu-Software-Engineer-3+-Year-Exp
 
Technology Overview
Technology OverviewTechnology Overview
Technology Overview
 
Workday overview sigmora
Workday overview sigmoraWorkday overview sigmora
Workday overview sigmora
 
Informatica Interview Questions & Answers
Informatica Interview Questions & AnswersInformatica Interview Questions & Answers
Informatica Interview Questions & Answers
 
Sap Interview Questions - Part 1
Sap Interview Questions - Part 1Sap Interview Questions - Part 1
Sap Interview Questions - Part 1
 
L19 Application Architecture
L19 Application ArchitectureL19 Application Architecture
L19 Application Architecture
 
Concevoir une application scalable dans le Cloud
Concevoir une application scalable dans le CloudConcevoir une application scalable dans le Cloud
Concevoir une application scalable dans le Cloud
 
MongoDB in a Mainframe World
MongoDB in a Mainframe WorldMongoDB in a Mainframe World
MongoDB in a Mainframe World
 
Using PHP and SOA for Situational Applications in the Enterprise
Using PHP and SOA for Situational Applications in the EnterpriseUsing PHP and SOA for Situational Applications in the Enterprise
Using PHP and SOA for Situational Applications in the Enterprise
 
Brijesh Soni
Brijesh SoniBrijesh Soni
Brijesh Soni
 

Recently uploaded

When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
Elena Simperl
 
Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
OnBoard
 
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
Product School
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
Sri Ambati
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
DianaGray10
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Ramesh Iyer
 
Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*
Frank van Harmelen
 
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Product School
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
KatiaHIMEUR1
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
ThousandEyes
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance
 
Generating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using SmithyGenerating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using Smithy
g2nightmarescribd
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Product School
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
Alison B. Lowndes
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
BookNet Canada
 
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
UiPathCommunity
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
Laura Byrne
 
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
Cheryl Hung
 

Recently uploaded (20)

When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
 
Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
 
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
 
Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*
 
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
 
Generating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using SmithyGenerating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using Smithy
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
 
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
 
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
 

Active Records Barcamp Cameroon 2009

  • 1. Active Record Presentation by Mambe Churchill Nanje CEO, www.afrovisiongroup.com At Barcamp Cameroon 2009
  • 2. What is Active Record? Active Record is an implementation of Object Relational Mapping where in a database is manipulated by highly linked objects(MODELS) interfacing the database tables and their content e.g instead of SELECT * FROM accounts WHERE user=1 with Active records we do user=new User(1); //sql gets generated for you
  • 3.
  • 4. HOW IT WORKS Example: car park management system Database of Cars Code without Active Record: connection=new Connection(h,u,p); query='select * from cars where id=1'; rs=connection.statement.execute(query); car=rs.get(0); print(car.brand); //mercedes print(car.owner); //francis Code With Active Record: database=new Database(h,u,p); car=database.get('cars',1); print(car.brand); //mercedes print(car.owner); //francis
  • 5.
  • 6.
  • 7.
  • 8.
  • 9. Advantages of Active Record • Productivity – Eliminates lots of repetitive code – focus on business logic – Database code is generated automatically • Maintainability – Fewer lines of code – easier to understand – Easier to manage change in the object model • Performance – Lazy loading – associations are fetched when needed – Caching • Database vendor independence – The underlying database is abstracted away – Can be configured outside the application
  • 10.
  • 11. Thank you For more informationa about me www.afrovisiongroup.com http://mambenanje.blogspot.com www.twitter.com/mambenanje www.facebook.com/mambenanje other links www.blackamphi.com www.nexdimempire.com