CSC/ECE 517 Fall 2010/ch2 2a mw

From Expertiza_Wiki
Revision as of 04:57, 15 September 2010 by Mlwiles (talk | contribs)
Jump to navigation Jump to search

Introduction

In the previous article [final S24 link here], we learn that metaprogramming is where the computer code that interacts with other programs, such as databases, as data and performs many of these interactions at compile time rather than runtime. This built-in interaction allows the programmers to take advantage of these capabilities and focus their time on the rest of their program logic instead of the details of some of the lower level coding. In this article, we will take a closer look at of the styles of metaprogramming referred to as language extensions for object-relational mapping (ORM).

Language Extensions

Language extensions for ORM have often been classified as design patterns or software tools used to perform create, read, update and delete (C.R.U.D.) operations on relational databases, that is, until recent new approaches such as ActiveRecord . ActiveRecord is not just a design pattern it is an increase of function to the active record pattern approach. ActiveRecord is tightly integrated support that is built into the Ruby on Rails framework. In this article we will examine other language extensions that try to use this same approach and then we will compare the ease of programming using these language extensions with the ease of programming using external tools.

ActiveRecord

Other Examples of Language Extensions

  • Java - Enterprise Objects Framework, Mac OS X/Java, part of Apple WebObjects
  • .NET - ADO.NET Entity Framework, Microsoft's ORM, part of .Net 4.0
  • Python - Django, (ORM is included in Django framework) open source

Programming using Language Extensions

Programming using External Tools

Conclusion

References

  1. Comparison of web application frameworks
  2. List of object-relational mapping software