Skip to content

Conversation

@Hossein-Fazel
Copy link
Contributor

@Hossein-Fazel Hossein-Fazel commented Sep 6, 2025

Add an introduction to index file in section design patterns(9) - creational design patterns

Summary by CodeRabbit

  • Documentation
    • Expanded Chapter 9 intro for Creational design patterns with a tooltip-enhanced title and a multi-paragraph overview.
    • Added goals covering object creation/instantiation and decoupling from concrete implementations; clarified these patterns manage when, where, and how objects are created.
    • Listed the five core creational patterns (Factory, Abstract Factory, Singleton, Prototype, Builder) and refined pattern names for clarity.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Sep 6, 2025

Walkthrough

Replaced the short chapter title with a tooltip-wrapped title and expanded the Creational Patterns chapter index into a multi-paragraph description; added explicit goals and responsibilities for creational patterns and listed five patterns: Factory Method, Abstract Factory, Singleton, Prototype, and Builder.

Changes

Cohort / File(s) Summary
Docs: Creational Patterns Overview
content/chapter 9/creational patterns/_index.md
Rewrote chapter index: replaced short title with tooltip-wrapped title, expanded to multi-paragraph description, added goals (creation/instantiation, decoupling), clarified responsibility (time/place/manner of object creation), and listed five creational patterns: Factory Method, Abstract Factory, Singleton, Prototype, Builder.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

A bunny hops through chapters nine,
Leaves trails of patterns, crisp design.
Factory, Builder—names in a row,
Singleton’s burrow, Prototype’s glow.
Abstract fields where ideas convene—
I thump my paws: “Creation, clean!”


📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 8256526 and a307ce3.

📒 Files selected for processing (1)
  • content/chapter 9/creational patterns/_index.md (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • content/chapter 9/creational patterns/_index.md
✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments (2)
content/chapter 9/creational patterns/_index.md (2)

9-11: Use a single Persian term for consistency

Prefer one of "سازنده" or "ایجادی" throughout; suggest aligning Line 11 with the title.

Apply:

-به طور کلی، الگوهای طراحی ایجادی در پی آن هستند که **زمان، مکان و چگونگی ایجاد اشیاء** را به صورت انتزاعی مدیریت کنند.
+به‌طور کلی، الگوهای طراحی سازنده در پی آن هستند که **زمان، مکان و چگونگی ایجاد اشیاء** را به‌صورت انتزاعی مدیریت کنند.

13-14: Fix typos and punctuation

Join “الگو های” → “الگوهای”, place colon tight to the heading, and use ZWNJ in “شده‌اند”.

-**انواع الگو های طراحی سازنده** :
-این الگوها به پنج نوع اصلی تقسیم می‌شوند که در ادامه بیان شده اند.
+**انواع الگوهای طراحی سازنده:**
+این الگوها به پنج نوع اصلی تقسیم می‌شوند که در ادامه بیان شده‌اند.
📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 409948d and dab26c1.

📒 Files selected for processing (1)
  • content/chapter 9/creational patterns/_index.md (1 hunks)
🧰 Additional context used
🪛 markdownlint-cli2 (0.17.2)
content/chapter 9/creational patterns/_index.md

15-15: Lists should be surrounded by blank lines

(MD032, blanks-around-lists)

🔇 Additional comments (1)
content/chapter 9/creational patterns/_index.md (1)

7-7: LGTM on intro and tooltip usage

The inline tooltip and opening paragraph read well.

@ja7ad ja7ad merged commit d58face into GoFarsi:main Sep 6, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants