Skip to main content

Second Module: Exams

Premium
9:35

Comments & Discussion

DS
Dmytro Sakharuk ✓ Link copied!

In my opinion, by putting a foreign key in the table and defining the relation in the model, we lose the sense of modularity, because that creates a hard coupling. A module should expose an API for interactions, and it would be more appropriate to store simply the course identifier (without enforcing a foreign key). The service you built (the API) should then provide a method that returns a Course DTO given that identifier.

We'd Love Your Feedback

Tell us what you like or what we can improve

Feel free to share anything you like or dislike about this page or the platform in general.