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: |

The Singapore stock market has alternated between positive and negative finishes through the last five trading days since the end of the two-day winning streak in which it had added more than a dozen points or 0.4 percent. The Straits Times Index now sits just above the 3,060-point plateau and it's likely to see a narrow trading range on Monday.

What Is Bitcoin?

Bitcoin is a decentralized digital currency that you can buy, sell and exchange directly, without an intermediary like a bank. Bitcoin’s creator, Satoshi Nakamoto, originally described the need for “an electronic payment system based on cryptographic proof instead of trust.” Each and every Bitcoin transaction that’s ever been made exists on a public ledger accessible to everyone, making transactions hard to reverse and difficult to fake. That’s by design: Core to their decentralized nature, Bitcoins aren’t backed by the government or any issuing institution, and there’s nothing to guarantee their value besides the proof baked in the heart of the system. “The reason why it’s worth money is simply because we, as people, decided it has value—same as gold,” says Anton Mozgovoy, co-founder & CEO of digital financial service company Holyheld.

Developers from sg


Telegram Developers
FROM USA