DEV Community

Cover image for Repository Design Pattern, Highlighting Packages via ADS, and New Arabic Article ✨
Mahmoud Ramadan
Mahmoud Ramadan

Posted on

Repository Design Pattern, Highlighting Packages via ADS, and New Arabic Article ✨

Here we go again with Digging Code, fully implementing the Repository Design Pattern. This enhances the code's cleanliness, eliminates redundancy, and speeds up the Blog's load time.⚡

Let me walk you through the steps I followed:

  1. I created a BaseDashboard class to hold the duplicated queries used in all repositories making other repositories simpler, as they only need to define the model in the constructor. 🤯
    article-extends-base-dashboard

  2. Based on the previous step, in the ArticleController, I can specify the SELECT statement's columns, and load the relationships. 😎
    article-index-dashboard

  3. Following this pattern, the Blog controllers become simpler. 🚦
    article-index-blog


Furthermore, The Blog now highlights the packages's features via ADS. 📢

ads-section-in-digging-code


Finally, a new article has been published that guides you on generating Arabic PDFs correctly. 📄

Top comments (0)