شكرا جزيلا, الفكرة ان هنا احيانا بيبقى فى بعض الاختلافات حسن انت بتحاول تكتب كود لايه ولكن يوجد تشابه وتكرار, فممكن تعمل قالب او تجيب اى كود معمول قبل كده وتعدل فيه حسب احتياجك www.tutorialspoint.com/design_pattern/factory_pattern.htm
@@devgeeksacademy3340 Before I watch any video, I like to know how many likes / dislikes it has ... i like the first video "Singleton design pattern" , but this video has 23 dislikes ... I'm confused.
@@lafha4630 It's completely up to you to see how many likes/dislikes on any video, but this video does not have the number of dislikes you mentioned, it has 48 likes and 1 dislike, if it has that count of dislikes I would have published another video (I don't have any problems with doing so)
الله يجزاكم خير ويزيدكم من فضله يا رب
عاش يا هندسة أسلوبك مميز وبسيط وبتقدر تبسط وتوصل المعلومة من اقصر الطرق استمر بالتوفيق ان شاء الله
شكرا جزيلا فضل من ربنا والله
شرح جميل شكرا لك
الله ينور وربنا يباركلك ويجعله فى ميزان حسناتك
ممتاز ربنا يباركلك
شرح جميييل
شكرا جزيلا واتمنى الاستمرار
شكرا جزيلا
عظمة يا هندسة شرح جميييل💙💙💙
شكرا جزيلا فضل من الله
تحفة بجد ما شاء الله
شكرا جزيلا
مية مية يا هندسة، عندي سؤال، مفيش template بتمثل الclass diagram زي اللي كانت موجودة في شرح الsingleton ؟
وبالتوفيق ليك وشرحك أكثر من رائع
شكرا جزيلا, الفكرة ان هنا احيانا بيبقى فى بعض الاختلافات حسن انت بتحاول تكتب كود لايه ولكن يوجد تشابه وتكرار, فممكن تعمل قالب او تجيب اى كود معمول قبل كده وتعدل فيه حسب احتياجك
www.tutorialspoint.com/design_pattern/factory_pattern.htm
روحت فين يا هندسه ؟
هل يا هندسه
Factory
هو نفس
Factory
اللى بنستخدمه فى
flutte
عند نريد عمل
return constructor
انا بعتبرها function
ممكن مثال للكود او كده عشان اقدر اتأكد اني فهمتك صح؟ وشكرا جزيلا
class WeatherModel {
DateTime date;
String weatherStateName;
double temp, minTemp, maxTemp;
WeatherModel(
{required this.date,
required this.weatherStateName,
required this.temp,
required this.maxTemp,
required this.minTemp});
factory WeatherModel.fromjson(dynamic data) {
var dataTemp = data['forecast']['forecastday'][0]['day'];
String time = '2019-10-30T10:12:00';
DateTime dateTime = DateTime.parse(time);
return WeatherModel(
date: dateTime,
minTemp: dataTemp['mintemp_c'],
weatherStateName: dataTemp['condition']["text"],
temp: dataTemp['avgtemp_c'],
maxTemp: dataTemp['maxtemp_c']);
}
}
Why you have 23 dislikes?
I cannot get ur point?
I can't find what you're refering to
@@devgeeksacademy3340 Before I watch any video, I like to know how many likes / dislikes it has ... i like the first video "Singleton design pattern" , but this video has 23 dislikes ... I'm confused.
@@lafha4630 It's completely up to you to see how many likes/dislikes on any video, but this video does not have the number of dislikes you mentioned, it has 48 likes and 1 dislike, if it has that count of dislikes I would have published another video (I don't have any problems with doing so)
@@devgeeksacademy3340 It's been 5 months now and the video still have only one dislike :D , the video is simple and clear . great job dude !