Posts

Showing posts with the label operators

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

Image
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 - precisi...

Sandra L Course Part 1 (lectures 1 to 10)

Image
And here we are - ANOTHER new course! I know it's getting repetitive now - me getting to around a third of a way through each course before hankering for a new one. However, I've had my reasons each time. Last time, Bob's course was getting so technical and inaccessible. The conceptual leap between chapters 2 and 3 was too much. Plus, no challenges or tasks along the way made it very difficult to stay motivated. So, starting a new Intermediate course from Sandra L. Let's see how we go! Start Time - 15:42 Variables and constants Real basics so far. I think I'll be able to skim a lot of this simple recap. Mutability etc. There's not much need to type anything else - I know this so it's all good! One nice point - a variable is called so because THE VALUE CAN VARY. That's nice and logical! *A key point: it's good changing between courses in the sense that you get a fresh take on a concept or another way of looking at something. Type Inferen...

Bob Lee Course Part 9 (Consolidation of chapter 1 - lectures 1 to 15!)

Image
Yes, it's time for some consolidation baby! I could just do so for the past few lectures but it makes more sense to go through chapter one in its entirety. If anything does seem really familiar, that's fine - I will obviously spend less time on that! OK, here we go! Start Time - 17:35 Lecture 1 - Course Overview (skipped!) Lecture 2 - Introduction Key tip to takeaway from this summary is NOT just to click on the 'fix errors' when the 'red' errors come up. They can lead to more errors and mess up the code - then be impossible to track back and sort out! Lecture 3 - Optionals So the big question here is WHY use optionals in the first place. Something to remember here is that Swift is the only language (well, one of the very few at least) that uses optionals. They are a great feature! *Right, rather than play the videos again, I am actually going to use Bob's lecture notes from here: https://www.bobthedeveloper.io/course/swift/1000-swift-fundame...

Bob Lee Course Part 8 (lectures 12 to 15)

Image
Next day, next lecture! I literally have 25 minutes now so I will see if I get to a natural end point... Extensions Now I know about these already. Extensions are a way of adding more code to different types. E.g. to Int, I could add a function or something that gives more usability. I can also extend custom types e.g. structs and classes. *Udemy course not loading properly. Going to have to delay start time for now.  Start Time - 15:39  *I only have around 15 minutes for now so will have to continue the entry for later. OK, so the issue here is that you CANNOT have STORED properties in extensions. Right, so in this case, the description property is computed. So this is a cool example of using a new property (computed!) for Int. Squared! So that is everything we can do with extensions. Most of these are later as you can see. So far, that's good. I had to race through some of the using init...