DEV Community

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

Posted on

Repository Design Pattern, Promoting 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, simplifying all child repositories. They only need to define the model in the constructor. 🤯
    article-extends-base-dashboard

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

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


Additionally, the Blog now showcases the features of packages through ADS. 📢

ads-section-in-digging-code


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

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay