Should a like method go on User or Post?
I'm learning object-oriented programming and trying to figure out where an action belongs. A user likes a post, but the like also changes data associated with the post.Would…
I'm learning object-oriented programming and trying to figure out where an action belongs. A user likes a post, but the like also changes data associated with the post.Would…