What is the main or what are the main differences between the active record pattern and the table data gateway pattern?
I am relatively new to programming so apologies if it is a dumb question but they seem so similar to me.