I AM WATCHING YOUR VIDEOS AND PRACTICING THEM SINCE TODAY MORNING AND WHEN I SAW HOW REST RUclipsRS TEACH, IT WAS LIKE ARE THEY SPEAKING ENGLISH????THIS SEREIS IS THE BEST
I've created apps already, but this is the first time I really understood what all the parts of the function syntax actually mean and do. Thank you for such clear explanations!
Chris, Thank you! This video helped me finally understand these basic principles of Functions. I wish you could add this format to explain more complex coding solutions for your entire "How to make iPhone Apps..." series.
so how long before I can make an app? Should I watch all the learn swift for beginner videos and then pursue that goal? or mingle in both worlds and watch some videos on how to make apps while watching these tutorials?
Is Arg essentially what your variable is called outside of the function, and para is what it's called inside of the function? Thanks for the great videos by the way
I tried this code: let _ = 12 _ = 14 let sum = _ + 12 and got this error: '_' can only appear in a pattern or on the left side of an assignment, what is the actual benefit of using the underscore_?
This way you don't have to write the parameter names when you call the functions in your code. If you need the names as reference, its all good, your preference but if you want to make it short, it's possible too: areaOfARectangle(with: 2, length: 4) areaOfARectangle(2, 4) @AdrienVillez
I never use the underscore. Sometimes you use a variable name in a function or a guard statement that is never used anywhere and Xcode will invite you to make an underscore. I never do it. Now like your example above, if you need that variable in the future, you have to give it a name. Regarding the place in memory, I do not know the answer to that. There are ways to test this but for beginners, this is not much of an issue or concern. @AdrienVillez
What is the difference if I use func addTwoNumbers(arg para : Int) then passing the values from addTwoNumbers(arg : 2) and fucn addTwoNumbers(numbers : Int) then passing the values from addTwoNumbers(numbers : 2). You have used in 13.33 mins. Are they both alike?
Methods and Functions are not the same thing. Per Hacking With Swift: "Some folks use “function” and “method” interchangeably, but there’s a small difference: both of them are reusable chunks of code, but methods belong to classes, structs, and enums, whereas functions do not."
Hello, if you meant data type label (like string, int, etc) then yes. unless you use var to declare it will use the first data type you have used - Francis
I think those videos would be more helpful if you used more examples and references to some real-life projects as you speak instead of just describing each step.
Swift's developers could make the swift more simple . I dont see any reason in require underscore char before a parameter name. Sorry but that makes no sense.
QOTD ⚡Are you learning Swift as a hobby? Let me know! 👇 Kick start your own app with my free 7 Day App Action Plan ➡️ bit.ly/7dplan
I AM WATCHING YOUR VIDEOS AND PRACTICING THEM SINCE TODAY MORNING AND WHEN I SAW HOW REST RUclipsRS TEACH, IT WAS LIKE ARE THEY SPEAKING ENGLISH????THIS SEREIS IS THE BEST
THANK YOU SO MUCH SO MUCH FOR LEARNING WITH US. I HOPE YOU ARE GOING TO ENJOY THE REST OF THE LESSONS TOO!
-Adrien
by far one of the harder videos in this series to understand, either way i guess it was much easier than any other way of learning this i have found
I've created apps already, but this is the first time I really understood what all the parts of the function syntax actually mean and do. Thank you for such clear explanations!
Thank you for existing Chris. Very clear explanations and the best way of teaching. I finally learned something useful in my life. Cheers my friend
I have to say that I'm really enjoying your 28 day code challenge! Thank you for such clear, high quality content!
Thanks for learning with us! Hope you'll enjoy the other lessons too!
-Kat
In this video, you'll learn about return values and parameters in functions!
Chris, Thank you! This video helped me finally understand these basic principles of Functions. I wish you could add this format to explain more complex coding solutions for your entire "How to make iPhone Apps..." series.
+Dwight Collins thanks Dwight. I'll do that!
some where I tried to learn function untill I found this great tutorial about function. Thank you.
I came here years ago and other lessons and never continued to learn and progress but I’m here again!
Great decision to come back! Best to start here: codewithchris.com/start :) -Arthur
Great video! Especially loving the tip on how to logically name the parameters!! Thanks Chris!
Hmm, I actually know it, but it's the most clear explanation I've ever heard. Good job, go on!
+Andy Yermakov nice :) thanks!
Very good lesson. I was trying to get what underscore is using for and your lesson make it clear.
I had some questions while watching the video, and you had the answers right away :)
Cheers!
Thank you so much! This is the only video that’s helped me understand return values.
Awesome Sullivan! Thanks for learning with me!
Simple & understand able ,Thank you for great videos.
Speaking clear for my self. I use the term "method" for Object-Oriented programming, and I use the term "function" on procedural programming.
Yeah! the clearest explanation that I've ever heard too!!!
Great! We want to make sure we are as simple as possible to help anyone!
-Adrien
Thank you for these series chris!
Welcome! Thanks for learning with us! 🙌
-Kat
Great Job! Keep up
Amazing lessons Chris... thank you very much
Glad to know that you are learning with us! :-) -Arthur
Круто мужик большое тебе Русское человеческое спасибо!
Brilliant. Thanks
Ok, I may have to rewatch this one... It makes sense watching it, but I'm not sure I understand which way was the best coding practice.
you are just awesome
Thank you for great videos.
+Ahsan Karim thanks for learning with me!
what sign is used before the arguments to alter their values as well ... like we do in c++ by adding a & sign before the argument
so how long before I can make an app? Should I watch all the learn swift for beginner videos and then pursue that goal? or mingle in both worlds and watch some videos on how to make apps while watching these tutorials?
You could do this...
func hello() -> Int{
return 5;
}
print(hello()) | It will print 5!
thank you
Thank YOU!!!
Is Arg essentially what your variable is called outside of the function, and para is what it's called inside of the function? Thanks for the great videos by the way
That's how I understand it.
Would be able to add Generics and Closures to these series please? Thank you very much in advance.
Thanks for suggesting! They're on our list!
-Kat
Hey Chris
Could I request you to explain more deeper and some more easy to understand how function calling works
Hello, we have a more updated playlist for Swift bit.ly/LearnSwift2019, it might help ruclips.net/video/AT5_lx4PbVM/видео.html
-Kat
Helpful Video Sir,
But I would like to understand function complitionHandler block.
.
Thank You.
Chris, Do you have any tutorials on Multiple tableViews? am trying to code a multi-stcked push.
15:33 what are the underscores called or referred to as?
Also, are they stored in memory (if so, how do you reference them), are there any other uses for the _?
I tried this code: let _ = 12
_ = 14
let sum = _ + 12 and got this error: '_' can only appear in a pattern or on the left side of an assignment, what is the actual benefit of using the underscore_?
This way you don't have to write the parameter names when you call the functions in your code.
If you need the names as reference, its all good, your preference but if you want to make it short, it's possible too:
areaOfARectangle(with: 2, length: 4)
areaOfARectangle(2, 4)
@AdrienVillez
I never use the underscore. Sometimes you use a variable name in a function or a guard statement that is never used anywhere and Xcode will invite you to make an underscore. I never do it.
Now like your example above, if you need that variable in the future, you have to give it a name.
Regarding the place in memory, I do not know the answer to that. There are ways to test this but for beginners, this is not much of an issue or concern.
@AdrienVillez
What is the difference if I use func addTwoNumbers(arg para : Int) then passing the values from addTwoNumbers(arg : 2) and fucn addTwoNumbers(numbers : Int) then passing the values from addTwoNumbers(numbers : 2). You have used in 13.33 mins. Are they both alike?
methods are functions belonging to a particular class. functions can be on any other scope i.e. not tied to a class
Hello Simon, thanks for mentioning that!
-Kat
Wouldn't arg be an external name while param is the argument label?
Methods and Functions are not the same thing. Per Hacking With Swift: "Some folks use “function” and “method” interchangeably, but there’s a small difference: both of them are reusable chunks of code, but methods belong to classes, structs, and enums, whereas functions do not."
Make a video of functions with deep & more information..
Yes! We can't wait to dive into deeper, detailed lessons!
All this coming after all those basic lessons
@AdrienVillez
Are u working in apple company sir
Nope, Chris never worked in Apple.
- Kat
Nice super I can easier to understand
Glad to hear that!
- Kat
@@CodeWithChris thank u sir
What is the difference between printing and returning a value?
print returns value to the human user, return returns the value from the function to the variable where the function was called
good, but i wish you used examples from apps that people use daily, would've made more sense
Thanks for the feedback! You also might want to check the updated version of this tutorial: bit.ly/LearnSwift2019
-Kat
Hey... how are you?
I am not getting results in the side & bottom pannel.. please advice
Hey Edge, we can help you with that in our community here: facebook.com/groups/codewithchriscommunity/
Dose New swift need to type argument label?
Yes we need .
No we needn’t .
Hello, if you meant data type label (like string, int, etc) then yes. unless you use var to declare it will use the first data type you have used
- Francis
can you help me please
+Earl Alexander what're you having trouble with?
i've understand something....
That's awesome!
I think those videos would be more helpful if you used more examples and references to some real-life projects as you speak instead of just describing each step.
OK! We are working on some more detailed videos to publish on RUclips soon. We will make sure to give examples.
-Adrien
Swift's developers could make the swift more simple . I dont see any reason in require underscore char before a parameter name. Sorry but that makes no sense.
So basically _ = Null
Whatever it been called, it everything all just different type of numbers.
Thanks for the insight.
-Kat
Wouldn't you call a function a "method" when it's a function of a class.
Yeah, we do use method and function all the time when we should indeed call them a method.
@AdrienVillez
Pls reply me sir
How can we help?
- Kat
@@CodeWithChris no sir I am asking u are ubworking in apple company or not, or where u working
@@CodeWithChris I didn't understand what u asked me sir,
@@CodeWithChris what is "how can we help Kat"
Because I only having the government laptop
Try the solutions here if you're using a Windows laptop: bit.ly/CWCWindows
- Kat
@@CodeWithChris thank you for reply me sir I will try it and then I tell u back
shole tu munutunus hoii....bengali baba ka shruup lagega