Someone asked me about the history of the method naming in activerecord and I wasn’t sure where to point them. For example, there was early criticism noted of has_and_belongs_to_many in this old post from 2005: http://hans.fugal.net/blog/2005/10/03/habtm/
I was mentioning that many_to_many is not used because there are a few different ways of doing that via has_many :through and has_and_belongs_to_many, and to me belongs_to seems reasonable since it is a model associated with a child table that has a foreign key to a parent table, however that could have been foreign_key_to or similar to eliminate confusion, I guess, though maybe that makes the name less flexible and more tied to relational DB terms? Maybe having some aliases would make sense, I don’t know. I’m kind of used to it all now, but maybe there is some way it could all be clearer.
Does anyone have links to discussions or pages where the history of association naming was discussed for those that think it doesn’t make any sense and want a better explanation as to why associative methods are named as they are? Thanks.