Posts

Showing posts with the label objects

Sandra L Course Part 5 (lectures 30 to 39)

Image
Well 3 days is better than the gap between the previous entries! My plan is to work through OOP today, then start working on my next independent app project. Let's go! Start Time - 10:50 Object Oriented Programming My take - this is about the creation of 'object's which are an instance of a particular class or type. There is functionality involved in this too. Let's see the actual definition! So data vs action is a key part. Procedural oriented programming - design program with a set of instructions. I get this as procedural text types/instructions is something I've taught. Data types - strings, ints etc. but also custom ones from classes/structs Coffee machine example - A good analogy for the fact that the machine has different functions and specifications (properties). The above are the functions. Engineers build the actual machine - it has specifications. It then has the propensity for different jobs/functions. An object is a coffee m...

Ray Wenderlich Course Part 2 (up to lesson 21)

Image
A brief entry here as I'm doing a bit of coding in between a hectic social time. The next time after this will be Monday, where I plan on doing a fair bit of Ray's course. Last time, some of the information wasn't all that clear, which he readily admitted at this stage. Still, there were lots of useful ideas. Here we go! Objects, Data and Methods Swift is object-oriented which basically means everything links to buttons, labels etc. An object can have both data and functionality. Example for methods - party! So sending messages is a conceptual way of seeing how methods work. Calling a method, invoking a method - all the same thing. Strings and Variables   @IBAction func sliderMoved( _ slider: UISlider ) {                  print ( "The value of slider is now: \ ( slider. value )" )     } Variables have a certain life-time. As it's a variable, the value can change etc. etc. currentValu...

Ray Wenderlich Course Part 1 (up to lesson 16)

Image
Here we go - a new course! I WILL come back to Angela's - I have not stopped it for any negative reasons whatsoever. I just feel at this point, it's best to get some more experience at a lower level before pushing on. My plan is to get to a similar point with Ray's course, then either switch back to Angela (if super confident) or back to Treehouse (safer option). Either way, I feel like I understand much more of the information and can apply it more readily now. So, here we go with Ray's course! Registering as an App Developer  I'm going to leave this - for now. It cost $99 a year. I will look into this once I am confident to make apps regularly! legalzoom.com  - Ray says there is some information on here that can be useful. https://developer.apple.com  - the main website for app development. I've logged onto this before and I have checked it works! *I've skimmed through some of these early lessons as they're about downloading Xcode, general in...

Angela Yu Course Part 13 (up to lesson 133)

Image
I'm back! And so is Angela! Well, the last bit of her epic course is - this time 'Intermediate Swift'. I was going to leave it after Auto Layout but actually felt this would be well worth exploring and completing. THEN it will be time for another Udemy course! Here we go! Classes and Objects The first bit of this is recap - a class containing blueprints e.g. properties and behaviours. The object is an instance of the class. So first up, I've created a new project under MacOS that is a 'command line' file. Something interesting - you cannot call instances/values a keyword e.g. var class would be too confusing! Putting back ticks around it is allowed though it should be discouraged! All of the rest is recap to be honest. Enums This is basically creating a new data type. In our example we're working on, it is a 'car' data type. enum CarMake {          case Ferrari     case Mercedes     case BMW     case...