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.



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

Telegram today rolling out an update which brings with it several new features.The update also adds interactive emoji. When you send one of the select animated emoji in chat, you can now tap on it to initiate a full screen animation. The update also adds interactive emoji. When you send one of the select animated emoji in chat, you can now tap on it to initiate a full screen animation. This is then visible to you or anyone else who's also present in chat at the moment. The animations are also accompanied by vibrations. This is then visible to you or anyone else who's also present in chat at the moment. The animations are also accompanied by vibrations.

What is Telegram Possible Future Strategies?

Cryptoassets enthusiasts use this application for their trade activities, and they may make donations for this cause.If somehow Telegram do run out of money to sustain themselves they will probably introduce some features that will not hinder the rudimentary principle of Telegram but provide users with enhanced and enriched experience. This could be similar to features where characters can be customized in a game which directly do not affect the in-game strategies but add to the experience.

Developers from de


Telegram Developers
FROM Deutschland