Hacker News new | past | comments | ask | show | jobs | submit login

I checked the site, I checked Github, but I still have no idea what "ORM" means.

Wikipedia suggests several different meanings which seem to fit: Object-relational mapping, Object role modeling, Online Reputation Management, Online research methods, Outsourcing Relationship Management




ORM = Object Relational Mapping

Put as simply as I can put it, it's an abstraction layer in front of SQL.

The general logic (which I object to, though I still prefer ORM-based development) is that most of your class Objects relate to how you would store them in a database. Your 'User' object has a first name, a last name, a password, etc., which all map neatly to database records.

So, instead of doing "INSERT INTO users firstname, lastname, password) VALUES ('foo', 'bar', 'baz');", you create a user object:

User.firstname = 'foo'

User.lastname = 'bar'

User.password = 'baz'

User.save()


Thank you!


in this context 'Object-relational mapping' is the most likely meaning.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: