Skip to content

Commit 4de10f8

Browse files
committed
Translate a part of article
1 parent 26d728e commit 4de10f8

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

  • 1-js/09-classes/04-private-protected-properties-methods

1-js/09-classes/04-private-protected-properties-methods/article.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,27 +9,27 @@
99

1010
معمولا، دستگاه‌هایی که ما استفاده می‌کنیم بسیار پیچیده هستند. اما محدود کردن رابط داخلی از رابط بیرونی به ما این امکان را می‌دهد که بدون مشکل از آن‌ها استفاده کنیم.
1111

12-
## A real-life example
12+
## یک مثال در زندگی واقعی
1313

14-
For instance, a coffee machine. Simple from outside: a button, a display, a few holes...And, surely, the result -- great coffee! :)
14+
برای مثال، یک قهوه‌ساز. از بیرون ساده است: یک دکمه، یک نمایشگر، چند سوراخ...و قطعا، نتیجه -- یک قهوه عالی :)
1515

1616
![](coffee.jpg)
1717

18-
But inside... (a picture from the repair manual)
18+
اما از درون... (تصویری از دفترچه راهنمای تعمیرات)
1919

2020
![](coffee-inside.jpg)
2121

22-
A lot of details. But we can use it without knowing anything.
22+
مقدار زیادی جزئیات. اما می‌توانیم بدون دانستن چیزی از آن استفاده کنیم.
2323

24-
Coffee machines are quite reliable, aren't they? We can use one for years, and only if something goes wrong -- bring it for repairs.
24+
قهوه‌سازها بسیار قابل اطمینان هستند نه؟ می‌توانیم برای سال‌ها از آن‌ها استفاده کنیم و اگر چیزی درست نبود -- آن را به تعمیراتی ببرید.
2525

26-
The secret of reliability and simplicity of a coffee machine -- all details are well-tuned and *hidden* inside.
26+
راز قابل اطمینان و ساده بودن یک قهوه‌ساز -- تمام جزئیات به خوبی تنظیم شده و درون آن *پنهان* است.
2727

28-
If we remove the protective cover from the coffee machine, then using it will be much more complex (where to press?), and dangerous (it can electrocute).
28+
اگر ما پوشش حفاظتی را از قهوه‌ساز برداریم، سپس استفاده از آن پیچیده‌تر (کجا را فشار دهیم؟) و خطرناک‌تر (می‌تواند باعث برق گرفتگی شود) خواهد بود.
2929

30-
As we'll see, in programming objects are like coffee machines.
30+
همانطور که خواهیم دید، در برنامه‌نویسی شیءها مانند قهوه‌سازها هستند.
3131

32-
But in order to hide inner details, we'll use not a protective cover, but rather special syntax of the language and conventions.
32+
اما برای مخفی‌سازی جزئیات درونی،ما از پوشش حفاظتی استفاده نمی‌کنیم، بلکه از سینتکس خاص زبان و قراردادها استفاده می‌کنیم.
3333

3434
## Internal and external interface
3535

0 commit comments

Comments
 (0)