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. 📄

Image of Datadog

How to Diagram Your Cloud Architecture

Cloud architecture diagrams provide critical visibility into the resources in your environment and how they’re connected. In our latest eBook, AWS Solution Architects Jason Mimick and James Wenzel walk through best practices on how to build effective and professional diagrams.

Download the Free eBook

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more