Stephen DeStefano Swift 5 Course - Part 1 (Lectures 1 to 6)

After completing (yes ALL of!) Nick's Swift 5 course, I'm going to undertake another one on Udemy. I'm content to focus on these refreshers/building in some new info course. The reason why I want to do this one is because there are built in quizzes. I want to make sure I understand what I'm doing!

Start Time - 19:54

Intro

So the first part is the basics of Swift (I will skim over), then it will go into actual projects. Cool!

Language Intro

More intro and info! Stephen makes the point of skimming through the language part of the course if I am at an intermediate level. I really want to go through the info and ensure I have a secure understanding, before the projects!

Constants and Variables

Real basics here.

Yes all straightforward. Skimming through to get to the quiz!

10 out of 10 on first quiz! Now onto part 2...

Multiple statements on a single line - use semi-colons to separate. To be honest I don't think I will ever do this!

Double - precision of up to 15 decimal numbers; Float - up to 6 decimal numbers

A bit about Booleans and If Statements thrown in. Next quiz.... 10 out of 10 again!


Operators

Again, more recap to whizz through here.

Unary prefix operators - happens before the object!

Unary postfix - after the object

E.g. use of the ! for prefix etc.

Binary - two values being used (bi - 2 etc.)

Ternary - this is a conditional - tern being three. Three targets - check if something is true or false.

question ? answer1 : answer2

So if answer 1 is true, it is used; if not, answer 2 will be

Assignment operator - use of one =

Assignment with tuples... Just a brief mention of this

Concatenation - adding two strings together

Remainder operator (modulo) - I know these. They come in handy!

Unary minus operator - putting in a minus sign before the object that it is an int. Just makes it into a neg value.

Lots of technical stuff here! Worth looking at.

Compound assignment operator - this is the use of += or -= etc.

8 out of 10! To be fair, this was such a mathematical section and the questions were more about that than actual coding....

Now onto comparison operators....

Skimming through this as I'm happy with all of the greater than/equal to etc.

Suddenly brought in comparing tuples! You can have the numbers as the same but the string as different (alphabetical).

Nil coalescing - use of the ??



So in the above, possibleBabyName DOES NOT have a value, so it uses the defaultBabyName instead.

Range operators - for loop suddenly mentioned!

Closed/half open ranges...

One side ranges


Don't think I've seen these before!

So it will go up to that index number (1 in that case above - first two items!)

10 out of 10 - a good effort considering how technical that was!

Finish Time - 20:45 (total time - 51 minutes)

OK so I am glad to be doing this course. It is VERY technical but a good challenge! Worth going over the basics with this in-depth explanation of things! Next time, I will tackle tuples, functions and properties - three sections!


Comments

Popular posts from this blog

*Xcode Project Entry 2* F1 Quiz - part 1

Angela Yu Course Part 10 (up to lesson 112)

Angela Yu Xcode 12 Course - Part 7 (lectures 74 to 79)