String num2= stdin.readLineSync()!; Guys make sure to add the exclamation after that line to fix the Error, Dart updated its syntax i think in the 2.2 version
Timestamps: 0:00 - Introduction 1:57 - Environment overview 2:53 - What is programming? 4:42 - Print Statements 7:27 - Program execution flow 12:56 - Variables 24:30 - Data Types 31:38 - String Basics 42:50 - Numbers - ints & doubles 52:30 - Booleans 54:11 - Getting user input 59:29 - Building a basic calculator 1:07:07 - Building a madibs game 1:12:24 - Lists 1:21:49 - Functions 1:29:31 - Parameters & Arguments 1:35:43 - Return Statements 1:41:12 - Building a prompt function 1:46:50 - If Statements 1:58:45 - And & Or operators 2:03:54 - Else If 2:10:46 - Building a smarter calculator 2:21:10 - Switch Statements 2:27:16 - While Loops 2:34:33 - Building a guessing game 2:43:08 - For Loops 2:57:26 - Comments 3:01:54 - Classes & Objects 3:13:13 - Constructors 3:22:37 - Class Methods 3:28:20 - Final Project - Building a math quiz 3:52:25 - Outro & next steps
Make sure you guys add '?' after putting String in class as Dart was updated and cant be null unless initialized. e.g class Book { String? title; String? author; int? numPages; }
Hi Mike, I am a 12 years old student and I started programming like 8 months ago and I found it really entertaining. I know html, css, javascript, python, c# and dart. I am not an expert in these languages but I have a good knowledge of them. And my dream is to become a mobile developer. I tried xamarin for mobile development but my laptop can't run visual studio properly :(. I am trying to learn flutter for mobile development, that's why I'm here. This dart tutorial was really amazing. I had fun learning it. You are a good teacher, I really appreciate for your hard work. Keep it up!! And one thing I am struggling on is in data structures and algorithms. I haven't learned those things when I started learning programming. I tried learning but I couldn't. Idk why ;(. Can you pleaseee make a data structure and algorithms course? I really need it. Thanks in advance,
Hey mike , if u ever see this comment , Thanks alot for all ur tutorials , im a 2nd year student in Software engineering , if im at a good position now , its all because of you , Thanks alot once again ♥️
Important: You will get an error on stdin.readLineSync(); This is cause the version of dart. Solve it with an ! . Therefore the command is stdin.readLineSync()!;
Omg you are finally back and that too when I was struggling with Dart😭❤️ Thank you for existing!! Learning HTML was fun because of you. I've recommended that video to so many of my friends and told them that no one can explain you HTML better than Mike. Your videos on Mongo DB are also great. The King is back!👑
1:02:33 If you getting an error while taking int value follow below steps. User this to take integer value :- *int? num = int.parse(stdin.readLinesync()!);* // here you will get a int as an string value so you have to convert the string number into int number. NOW WHY WE USE "?" AND "!" :- In dart to prevent from getting a null value from the user we use "int?" instead of "int " .
It's easy once you get the general concept. Mostly they're C style languages so share similar syntax. Nonetheless still impressive as the man almost always delivers high quality
Wow, I can't believe that! this person teaches the whole dart language in 4hours without taking a single break. Really god gives him a great Butt. 🤣🤣🤣🤣🤣🤣
This man back to dropping dimes again let's gooo. Can you please do a course about data structures and algorithms and how to approach them and do some practice problems. And some framework and libraries like angular, Django, tensor flow
The best use of 4 hours of your time; Mike's such a natural. Whether you are new to programming or new to Dart; this is a great place to start. It will go by like a breeze - and if it doesn't just pause and think again; you will catch up. If you try and do this by hand simultaneously then you will learn better - so don't shortchange that step.
Quick tip, remember in the python video, were you had no background, and just your head? It seems much better and easier to focus with. Appreciate you videos tho really helpful
Hey! Totally agree, unfortunately I'm traveling at the moment so I don't have a proper studio, hopefully will be able to bring back the old format though at some point!
I started a course on Flutter and got confused at different instances, so I decided to learn dart and go back to the course. Mike just simplified it for me. I am now confident to take the course, from the beginning. Though I am looking forward to Mike's Flutter tutorial 😀
for anyone using dart3 , if you are having an error taking input from user add ! at the end of readLineSync()!; . this is a new feature which ensures input is not null
Its been about 5 months ago while I started learning Dart, but this course and exactly the way you’re teaching makes me understand pretty fast, and I’m really interested and waiting for the flutter course, Thank you so much! 🙏🏼
20:41 ...... is it really important to add the curly brackets or it would be fine? , cause when i put curly brackets, the issue pop ups that it is not necessary to put them.
Having problems in 3:10:27 class Book { String? author; } void main() { Book hacker = Book(); hacker.author = "draqaah"; print(hacker.author); } \\ YOU GOTTA ADD THE QUESTION MARK AFTER STRING IN THE CLASS \\ YOU GOTTA ADD THE QUESTION MARK AFTER STRING IN THE CLASS
I am from a business background and I just wanted to learn coding basics just so I can understand what my tech co-founders were talking about when they talked about the problem. But this video really helped me grasp the core concept of programming and because of this, I am thinking of changing my career to being a programmer. Thank you Dave for this huge SHIFT in my career. Really appreciate your effort. I am learning flutter from udemy but I would grasp on quickly with your teaching skills. Eagerly waiting for your flutter tutorial video with a demonstration of simple and a cool app.
Many thanks. Such a fantastic, well presented, introduction to Dart. You can see where Google has borrowed various concepts from other programming languages. I would love to see a tutorial on Flutter in the near future. Thanks again.
Hi Mike, I am currently getting an error on this please help out import 'dart:math'; import 'dart:io'; void main() { print("What is your name?:"); var username = stdin.readLineSync();
Help Please !!! My code: import 'dart:io'; void main() { print("Enter first string: "); String str1=stdin.readLineSync(); } Issue: My VS Code is not running this, displaying the message, A value of type 'String?' can't be assigned to a variable of type 'String'.Try changing the type of the variable, or casting the right-hand type to :(
4,8,15,16,23,42 ----> you are not supposed to know this Mike, why are you putting it out to the public. (Your explanation is perfect there is no way someone is lost in the middle)
you didn't say anything about null safety :(. I'm getting lots of error while coding in vs code IDE . please explain about null safety and hoe to use it ASAP
I watched one of your Python tutorials back many years ago and then started coding. Now I have been a developers for 2 years. Always very appreciated that you explain things clear and easy to understand for beginners.
You are just such an amazing teacher. That object oriented teaching approach should be taught that way at every university. So easy to understand. Thank you for the work and effort you put into your videos!
If you're learning dart in 2023, you should add "!" after stdin.readLineSync(), before ";" , if it's string, cause without this you'll get an error Like : "String x=stdin.reaLineSync()!;"
Hey mike, i really appricate that you made this tutorial continues for about 4 hours without such a gap and with such a neet content, Lots Of Love.. from India
April 28 2023 Minute 58:22 add a question mark at the end of "String" so it does not show error. import "dart:math"; import "dart:io"; void main() { print("What is your name?:"); String? username = stdin.readLineSync();
1:27:10 - Instead of typing function five times you can use this for loop void drawShape(){ print(" / |"); print(" / |"); print("/___|"); } void main(){ for(var i = 0; i < 5; i++) { drawShape(); } }
You are an inspiration to me 😊 Now I confidently teach others by building on the High quality lessons from you. 😁😁 Though am not really sure if I can fix dart into my brain for now 😂😂.
Mike, I really am glad to have found your tutorials. Girraffe academy or here, you rock mate. One quick comment though, at 1:06:28, I took your code and it didn't work in repl. Changed that to double? num1=double.parse(stdin.readLineSync()!); and it worked. Don't know if thet's because of repl or the syntax changed from 2021 to 2022. Anyhow, keep it up. I really enjoy your tutorials and your teaching method. It never gets boring.
I tried all of the syntax and everything worked fine except that now there is this new String type with the question mark at the end that also accepts null values('String?')
Dear Mike, thanks for your great video. I just ran into one issue which seems to deal with Null Safety. In 57:45 you define String username = stdin.readLineSync() . Doing this results throws me an error message: "Error: A value of type 'String?' can't be assigned to a variable of type 'String' because 'String?' is nullable and 'String' isn't." I am new to all this but using a question mark after String works. So the code is String? username = stdin.readLineSync(). Maybe there are others having the same problem. Kind regards Max Just one update: instead of String? username = stdin.readLineSync() , better make the input not nullable with an exclamation mark, hence: String username = stdin.readLineSync()!
Hi Mike, I took your course with my 11 year and grandson. He’s writing his own apps and now learning Flutter. Thanks for your great inspiration!!
String num2= stdin.readLineSync()!; Guys make sure to add the exclamation after that line to fix the Error, Dart updated its syntax i think in the 2.2 version
heyy! how about if I use int ? its giving me error ! 🤦🏽♂️
Thanks for the save!
We need more likes on this, saved us hours! Thanks.
According to current version of dart, u should use
String? num2 = stdin.readLineSync()!;
@@suryaa3198 correct, it ran without the ? mark, as long the ! was included.
i started this video expecting a "HEY WELCOME TO GIRAAF ACADEMY ,MY NAME'S MIKE!"
Or "my name is Mike, basically" 😅
Hey mike please continue making your next flutter tutorial we are waiting for you✌
Timestamps:
0:00 - Introduction
1:57 - Environment overview
2:53 - What is programming?
4:42 - Print Statements
7:27 - Program execution flow
12:56 - Variables
24:30 - Data Types
31:38 - String Basics
42:50 - Numbers - ints & doubles
52:30 - Booleans
54:11 - Getting user input
59:29 - Building a basic calculator
1:07:07 - Building a madibs game
1:12:24 - Lists
1:21:49 - Functions
1:29:31 - Parameters & Arguments
1:35:43 - Return Statements
1:41:12 - Building a prompt function
1:46:50 - If Statements
1:58:45 - And & Or operators
2:03:54 - Else If
2:10:46 - Building a smarter calculator
2:21:10 - Switch Statements
2:27:16 - While Loops
2:34:33 - Building a guessing game
2:43:08 - For Loops
2:57:26 - Comments
3:01:54 - Classes & Objects
3:13:13 - Constructors
3:22:37 - Class Methods
3:28:20 - Final Project - Building a math quiz
3:52:25 - Outro & next steps
thanks a lot
😊thank you
Hey Mike, if you ever get to read this, thanks for changing my life, greetings from Argentina!!!
mike sir , could please make a tutorial with flutter and dart fullstack
@@sivaramakrishna1049 yesssss
Make sure you guys add '?' after putting String in class as Dart was updated and cant be null unless initialized. e.g
class Book {
String? title;
String? author;
int? numPages;
}
Good looking out! I'm just starting this!
@@rexduvall7097 No worries. Good luck let me know if you run into any issues will be happy to help.
@@olivercameron6299 Thanks bro! I'm sure I will 😆
@@olivercameron6299 Hey I'm entering my name in the console, but it's not returning "Hi (name) nice to meet u"... so frustrating
Hi Mike, I am a 12 years old student and I started programming like 8 months ago and I found it really entertaining.
I know html, css, javascript, python, c# and dart. I am not an expert in these languages but I have a good knowledge of them. And my dream is to become a mobile developer. I tried xamarin for mobile development but my laptop can't run visual studio properly :(. I am trying to learn flutter for mobile development, that's why I'm here. This dart tutorial was really amazing. I had fun learning it. You are a good teacher, I really appreciate for your hard work. Keep it up!! And one thing I am struggling on is in data structures and algorithms. I haven't learned those things when I started learning programming. I tried learning but I couldn't. Idk why ;(. Can you pleaseee make a data structure and algorithms course? I really need it.
Thanks in advance,
read the unplugged alpha by Richard Cooper
Hey mike , if u ever see this comment , Thanks alot for all ur tutorials , im a 2nd year student in Software engineering , if im at a good position now , its all because of you , Thanks alot once again ♥️
same
Important: You will get an error on stdin.readLineSync(); This is cause the version of dart. Solve it with an ! . Therefore the command is stdin.readLineSync()!;
thanks a lot
Omg you are finally back and that too when I was struggling with Dart😭❤️
Thank you for existing!!
Learning HTML was fun because of you. I've recommended that video to so many of my friends and told them that no one can explain you HTML better than Mike.
Your videos on Mongo DB are also great.
The King is back!👑
I think i remember the video. Is he the one from Giraffe academy ?
@@josephtosin9335 Of course
@@abdullohmaraimov2022 ohhh thanks
1:02:33 If you getting an error while taking int value follow below steps.
User this to take integer value :-
*int? num = int.parse(stdin.readLinesync()!);* // here you will get a int as an string value so you have to convert the string number into int number.
NOW WHY WE USE "?" AND "!" :-
In dart to prevent from getting a null value from the user we use "int?" instead of "int " .
thankyou so much!
thank you so much
Very helpful
I was going crazy
latest update // String? name =stdin.readLineSync();
Dude how did you fit all of these languages in your head 🤯
It's easy once you get the general concept. Mostly they're C style languages so share similar syntax. Nonetheless still impressive as the man almost always delivers high quality
I also thought of it 😀😀😂😂
@@seetsamolapo5600 yeah agreed if you can master one you can master all just need to get the basic Syntax and your good to go
@@seetsamolapo5600 are you from South Africa or Botswana?
@@blessing8781 lol you're getting close, take another guess monna
Wow, I can't believe that! this person teaches the whole dart language in 4hours without taking a single break. Really god gives him a great Butt. 🤣🤣🤣🤣🤣🤣
Hahahaha. Seriously
Bruhhh
@@naedeezy8967 Sup man
This man back to dropping dimes again let's gooo. Can you please do a course about data structures and algorithms and how to approach them and do some practice problems. And some framework and libraries like angular, Django, tensor flow
The best use of 4 hours of your time; Mike's such a natural. Whether you are new to programming or new to Dart; this is a great place to start. It will go by like a breeze - and if it doesn't just pause and think again; you will catch up.
If you try and do this by hand simultaneously then you will learn better - so don't shortchange that step.
Mike you are not like majority of the teachers, your style of teaching is realy amazing! thnk so much for these great courses.
Quick tip, remember in the python video, were you had no background, and just your head? It seems much better and easier to focus with. Appreciate you videos tho really helpful
Hey! Totally agree, unfortunately I'm traveling at the moment so I don't have a proper studio, hopefully will be able to bring back the old format though at some point!
Dart is like the weird love child of Java and JavaScript.
Great tutorial. It's so easy to understand. Looking forward your Flutter tutorial. Thanks!
Hey mike this tutorial was amazing and we need the flutter tutorial ASAP.
you should make a node.js or angular video next
One of the best Dart tutorials I have ever learned. Thanks Mike 😊
And yes, we do need more dart tutorials and also intro to Flutter 😀
Since when Justin Timberlake is a programmer? haha, amazing tutorial!
hahahah
I started a course on Flutter and got confused at different instances, so I decided to learn dart and go back to the course. Mike just simplified it for me. I am now confident to take the course, from the beginning. Though I am looking forward to Mike's Flutter tutorial 😀
I did the same, I look forward to returning to the flutter course and seeing it with new eyes.
for anyone using dart3 , if you are having an error taking input from user add ! at the end of readLineSync()!; . this is a new feature which ensures input is not null
Its been about 5 months ago while I started learning Dart, but this course and exactly the way you’re teaching makes me understand pretty fast, and I’m really interested and waiting for the flutter course, Thank you so much! 🙏🏼
20:41 ...... is it really important to add the curly brackets or it would be fine? , cause when i put curly brackets, the issue pop ups that it is not necessary to put them.
Hello. I wondering this is first tutorial of Dart or never will continue. Thank you
Having problems in 3:10:27
class Book {
String? author;
}
void main() {
Book hacker = Book();
hacker.author = "draqaah";
print(hacker.author);
}
\\ YOU GOTTA ADD THE QUESTION MARK AFTER STRING IN THE CLASS
\\ YOU GOTTA ADD THE QUESTION MARK AFTER STRING IN THE CLASS
here is the full code updated
class Book {
String? name;
String? author;
int? pages;
}
void main() {
Book hacker = Book();
hacker.name = "hacker";
hacker.author = "draqaah";
hacker.pages = 100;
print(hacker.name);
print(hacker.author);
print(hacker.pages);
}
I am from a business background and I just wanted to learn coding basics just so I can understand what my tech co-founders were talking about when they talked about the problem.
But this video really helped me grasp the core concept of programming and because of this, I am thinking of changing my career to being a programmer. Thank you Dave for this huge SHIFT in my career. Really appreciate your effort.
I am learning flutter from udemy but I would grasp on quickly with your teaching skills.
Eagerly waiting for your flutter tutorial video with a demonstration of simple and a cool app.
Same
Amazing tutorial.......my question is that I know that void does not return anything but in flutter, it does. What is the easiest explanation for it?
Many thanks. Such a fantastic, well presented, introduction to Dart. You can see where Google has borrowed various concepts from other programming languages. I would love to see a tutorial on Flutter in the near future. Thanks again.
Yes pls mike
Hey Mike, really appreciate what you have done for us. keep doing and for sure, waiting for the flutter course. hope you will make it. :)
void saythanks(){
print("Thanks Mike");
print("A lot !");
}
void main(){
for(int i = 0; i
This is the best year of my life.
Mike, you are explaining things better than any teacher I got lessons either online or at college. Thanks a lot.
Hi Mike,
I am currently getting an error on this
please help out
import 'dart:math';
import 'dart:io';
void main() {
print("What is your name?:");
var username = stdin.readLineSync();
I saw Mike Dane so I clicked right away. You're an inspiration bro
I've not started yet but I feel good about it already.
I know dart, but I just feel like finishing a course and doing everything in it. Let's goooo!!
You just made my day Iron Man❤️❤️
Help Please !!!
My code:
import 'dart:io';
void main()
{
print("Enter first string: ");
String str1=stdin.readLineSync();
}
Issue:
My VS Code is not running this, displaying the message, A value of type 'String?' can't be assigned to a variable of type 'String'.Try changing the type of the variable, or casting the right-hand type to
:(
Do this -> " String? str1=stdin.readLineSync();
"
@@mamelishah Jazakallah ❤️
Thannnnks. The next one is *Flutter* . please.....
Ok now that's exactly what I want !!
Because I'm struggling with Flutter basics!!
Wonderful video, thanks Mike. Waiting for the Flutter tutorial video as well.
Could you make a complete video of something like tour of a coding bootcamp, how they function and any interview with any of coaches there...
4,8,15,16,23,42 ----> you are not supposed to know this Mike, why are you putting it out to the public. (Your explanation is perfect there is no way someone is lost in the middle)
Man these videos give me flashbacks to Giraffe Academy. Anyways, awesome video as always! Keep up the great work!
My Goodness...I think I'm goona fall in love with Programming 😀 cos of how u explain it...
Error: Operator '>=' cannot be called on 'double?' because it is potentially null.
Did you find a solution?
Thank You so Much for making this video......it is really helpful.
Yo mike, I’m about 40 min in and it’s looking really simple, was wondering how easy would it be to learn this coming from C++ (mainly)
you didn't say anything about null safety :(. I'm getting lots of error while coding in vs code IDE . please explain about null safety and hoe to use it ASAP
Thank you very much .
Best teacher, All respect
Btw guys if your code says: something doesn't allow null. (or something close to that) add a ? mark to the String, double, int etc
Hey Mike, I've just finished your whole course and it's very valuable! Thank you for taking the time and teaching us!
You are an amazing teacher. Can you please please please please make a Flutter beginner tutorial? Or a tutorial on BLoC?
I’m 45mins into this video and all I can say is , you are a great teacher
I’ve understood a lot in few minutes, thank you
Could you please make a tutorial with flutter and dart fullstack ?
Thanks a lot from Algeria.
Waiting for Flutter😍
Me tooooo
I just started flutter but not feeling good about that so I decided to learn dart first lol.
Tip: Dart is very similar to javascript. So JS devs can watch the video in 1.25x or higher.
Sir we need django+react integration full 10 hrs video
I hope you will make for the students
amazing
3:12:20, in dart 2.13.4
value shall be checked for null safety, all value type should replaced by "var"
thanks for this man. I've literally spent hours trying to figure out what's wrong with my dumb head.
Hey Mike, thanks for the great tutorial! Can't wait for the Flutter tutorial!
I can't be the only one who realized where the numbers from 1:17:18 came from right!?
I watched one of your Python tutorials back many years ago and then started coding. Now I have been a developers for 2 years. Always very appreciated that you explain things clear and easy to understand for beginners.
Hi Mike, the concept of Null SAfety in Dart is really confusing could you create a video explaining this concept?
the return of the king
PLEASE continue making your next flutter tutorial we are waiting for you!!!!! :( :(
You are just such an amazing teacher. That object oriented teaching approach should be taught that way at every university. So easy to understand. Thank you for the work and effort you put into your videos!
If you're learning dart in 2023, you should add "!" after stdin.readLineSync(), before ";" , if it's string, cause without this you'll get an error
Like : "String x=stdin.reaLineSync()!;"
Hey mike, i really appricate that you made this tutorial continues for about 4 hours without such a gap and with such a neet content, Lots Of Love.. from India
April 28 2023 Minute 58:22 add a question mark at the end of "String" so it does not show error.
import "dart:math";
import "dart:io";
void main() {
print("What is your name?:");
String? username = stdin.readLineSync();
or use ' ! ' at the last of the line like these : stdin.readLineSync()!; this would then consider the string to be non-nullable...
1:27:10 - Instead of typing function five times you can use this for loop
void drawShape(){
print(" / |");
print(" / |");
print("/___|");
}
void main(){
for(var i = 0; i < 5; i++) {
drawShape();
}
}
When he was teaching Variables, I thought I was watching "The Office".
Great tutorial.
I've been suspicious of it when Stanley's name was mentioned
i liked this video
and commented
waiting for flutter tutorial
If anyone is having errors with stdin.readLineSync() like me, then this tutorial explains null safety: ruclips.net/video/iYhOU9AuaFs/видео.html
right on bby.
Completed watching Dart, now want Flutter course!! ❤️❤️
Thank you for all the hard work. Looking for the next tut.
You are an inspiration to me 😊
Now I confidently teach others by building on the High quality lessons from you. 😁😁
Though am not really sure if I can fix dart into my brain for now 😂😂.
i really enjoyed this tutorial,please make one for flutter
dart pad doesnt support "dart:io" how are we supposed to move further then?
In 20 minutes, my struggle with OOPs concepts got cleared😻😻
lol i see 23:53 .... Office character names 😂 noiceee
Mike, I really am glad to have found your tutorials. Girraffe academy or here, you rock mate. One quick comment though, at 1:06:28, I took your code and it didn't work in repl. Changed that to double? num1=double.parse(stdin.readLineSync()!); and it worked. Don't know if thet's because of repl or the syntax changed from 2021 to 2022.
Anyhow, keep it up. I really enjoy your tutorials and your teaching method. It never gets boring.
Seeing this video in 2024 😭😭😭😭. A lot of syntax must have been changed
I tried all of the syntax and everything worked fine except that now there is this new String type with the question mark at the end that also accepts null values('String?')
Dear Mike, thanks for your great video. I just ran into one issue which seems to deal with Null Safety. In 57:45 you define String username = stdin.readLineSync() . Doing this results throws me an error message: "Error: A value of type 'String?' can't be assigned to a variable of type 'String' because 'String?' is nullable and 'String' isn't." I am new to all this but using a question mark after String works. So the code is String? username = stdin.readLineSync(). Maybe there are others having the same problem. Kind regards Max
Just one update: instead of String? username = stdin.readLineSync() , better make the input not nullable with an exclamation mark, hence: String username = stdin.readLineSync()!
bro same problem can you please solve this?
@@rahulmehta9143 did you try what I suggested?
@@maxyulu yes but it's not working. Terminal show debug running.... Or nothing else
Suggest me anything else
It WORKED!! Just an reminder to add the ; at the end like this
String username = stdin.readLineSync()!;
the giraffe guy who taught me php back then.
why the import "dart:io" does not work?
Great Tutorial Ever in 2024
Mike you are just great, thanks for making me believe i can do it.. Please waiting for the flutter tutorial, Love from nigeria
hello friend
Please make a GDscript video!
Please do,Angular js video !!
HEY Mike can you make some SWIFT too.
You are what i am searching for in my entire life, Thank you
Great tutorial .A flutter tutorial would also be very helpful
I will thank you in Arabic words: شرح رائع ومميز ، شكرا جزيلا أنت رائع
please make the flutter vid! also , awesome job man! thank you so much
👍
A flutter tutorial would be quite cool
Thank you very much mike ❤️
We need node.js or django tutorial