Telegram Group & Telegram Channel
في البوست دة هشرح طريقة تسمية كل شيء في لغة Dart طبقاً لتوصيات التيم بتاعهم. وبعض نصائحهم عشان تزوّد ال Readability بتاعة الكود بتاعك.

مبدأياً اعرف إن عندنا تلت طرق للتسمية:

أول طريقة: UpperCamelCase
"طريقة الجمل العلوي" .. متسميّة كدة لإنك بتخلّي الحرف اللي في كل أول كلمة كابيتال.
دي بتستخدمها مع كل ال Types، يعني كل ال Classes وال Enums وال Types. بستخدمها كمان مع حاجة مشهورة اسمها ال Extentions، زي في الصورة رقم واحد.

الطريقة التانية: lowerCamelCase
"طريقة الجمل السفلي" .. ودي زي اللي فاتت بالظبط باستثناء إن أول حرف في أول كلمة بس بيبقى Small مش Capital زي اللي فاتت.
أي حاجة عايز تعرّفها غير اللي ذكرناهم فوق دول استخدم الطريقة دي، سواء بقى Variables أو Functions أو Objects.

الطريقة التالتة: lowercase_with_underscores
هنا كل الحروف بتكون Small وبنفصل بين كل كلمة والتانية ب _ المعروفة بال Underscore.
دي بتستخدم في كل أسماء الملفات والفولدرات في المشروع (في دارت أي ملف اسمه Package وأي فولدر اسمه Library).
بتستخدمها كمان مع ال import prefixes بعد كلمة as .. زي في المثال رقم 3.
👍2



tg-me.com/developers_github/192
Create:
Last Update:

في البوست دة هشرح طريقة تسمية كل شيء في لغة Dart طبقاً لتوصيات التيم بتاعهم. وبعض نصائحهم عشان تزوّد ال Readability بتاعة الكود بتاعك.

مبدأياً اعرف إن عندنا تلت طرق للتسمية:

أول طريقة: UpperCamelCase
"طريقة الجمل العلوي" .. متسميّة كدة لإنك بتخلّي الحرف اللي في كل أول كلمة كابيتال.
دي بتستخدمها مع كل ال Types، يعني كل ال Classes وال Enums وال Types. بستخدمها كمان مع حاجة مشهورة اسمها ال Extentions، زي في الصورة رقم واحد.

الطريقة التانية: lowerCamelCase
"طريقة الجمل السفلي" .. ودي زي اللي فاتت بالظبط باستثناء إن أول حرف في أول كلمة بس بيبقى Small مش Capital زي اللي فاتت.
أي حاجة عايز تعرّفها غير اللي ذكرناهم فوق دول استخدم الطريقة دي، سواء بقى Variables أو Functions أو Objects.

الطريقة التالتة: lowercase_with_underscores
هنا كل الحروف بتكون Small وبنفصل بين كل كلمة والتانية ب _ المعروفة بال Underscore.
دي بتستخدم في كل أسماء الملفات والفولدرات في المشروع (في دارت أي ملف اسمه Package وأي فولدر اسمه Library).
بتستخدمها كمان مع ال import prefixes بعد كلمة as .. زي في المثال رقم 3.

BY Developers




Share with your friend now:
tg-me.com/developers_github/192

View MORE
Open in Telegram


Developers Telegram | DID YOU KNOW?

Date: |

In many cases, the content resembled that of the marketplaces found on the dark web, a group of hidden websites that are popular among hackers and accessed using specific anonymising software.“We have recently been witnessing a 100 per cent-plus rise in Telegram usage by cybercriminals,” said Tal Samra, cyber threat analyst at Cyberint.The rise in nefarious activity comes as users flocked to the encrypted chat app earlier this year after changes to the privacy policy of Facebook-owned rival WhatsApp prompted many to seek out alternatives.

Telegram Auto-Delete Messages in Any Chat

Some messages aren’t supposed to last forever. There are some Telegram groups and conversations where it’s best if messages are automatically deleted in a day or a week. Here’s how to auto-delete messages in any Telegram chat. You can enable the auto-delete feature on a per-chat basis. It works for both one-on-one conversations and group chats. Previously, you needed to use the Secret Chat feature to automatically delete messages after a set time. At the time of writing, you can choose to automatically delete messages after a day or a week. Telegram starts the timer once they are sent, not after they are read. This won’t affect the messages that were sent before enabling the feature.

Developers from it


Telegram Developers
FROM USA