في البوست دة هشرح طريقة تسمية كل شيء في لغة 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.
في البوست دة هشرح طريقة تسمية كل شيء في لغة 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.
In general, many financial experts support their clients’ desire to buy cryptocurrency, but they don’t recommend it unless clients express interest. “The biggest concern for us is if someone wants to invest in crypto and the investment they choose doesn’t do well, and then all of a sudden they can’t send their kids to college,” says Ian Harvey, a certified financial planner (CFP) in New York City. “Then it wasn’t worth the risk.” The speculative nature of cryptocurrency leads some planners to recommend it for clients’ “side” investments. “Some call it a Vegas account,” says Scott Hammel, a CFP in Dallas. “Let’s keep this away from our real long-term perspective, make sure it doesn’t become too large a portion of your portfolio.” In a very real sense, Bitcoin is like a single stock, and advisors wouldn’t recommend putting a sizable part of your portfolio into any one company. At most, planners suggest putting no more than 1% to 10% into Bitcoin if you’re passionate about it. “If it was one stock, you would never allocate any significant portion of your portfolio to it,” Hammel says.
Telegram hopes to raise $1bn with a convertible bond private placement
The super secure UAE-based Telegram messenger service, developed by Russian-born software icon Pavel Durov, is looking to raise $1bn through a bond placement to a limited number of investors from Russia, Europe, Asia and the Middle East, the Kommersant daily reported citing unnamed sources on February 18, 2021.The issue reportedly comprises exchange bonds that could be converted into equity in the messaging service that is currently 100% owned by Durov and his brother Nikolai.Kommersant reports that the price of the conversion would be at a 10% discount to a potential IPO should it happen within five years.The minimum bond placement is said to be set at $50mn, but could be lowered to $10mn. Five-year bonds could carry an annual coupon of 7-8%.