Angela Yu Xcode 12 Course - Part 19 (lectures 185 to 190)
Get link
Facebook
X
Pinterest
Email
Other Apps
Two entries in a day?! Yes! Well the previous one was more of a 'what I did before' so not that much of an achievement, really. Anyway, I am going back to Angela's course after a brief detour for my own project. I've already got an idea for another project, a much more tricky one - Guess Who! With that, I would have a number of different pictures i.e. 16. The computer would randomly choose one, then the player would select questions to eliminate the pictures that do not match to it. Until there is just one left - number of questions it took gives them a score. Anyway, leaving that for now and doing some more learning! Let's go!
Start Time - 15:52
Flash Chat App
This has got about storing data - cloud-based. That could be really interesting. Also table view controller...again something else that I want to know more about. Firebase, cocoa pods....so some technical stuff again!
Firebase
A service from google. It has cloud based infrastructure to save and receive data. It means we don't have to create our own site for that - google take care of that! Cool. So storing the messages on the server and receiving these on to a device/devices. It can run on iPhone and Android - using the same database. Cloud-based. Authentication feature - register and login options too to authenticate the user. Cool!
Firebase account
So this uses a Google Account. No probs.
So I have created a new project.
Ah one thing with the Flash Chat download is that it needs to be on my desktop...so let me download that all again! Bit of a setback - getting a GitHub desktop app before I can get the project there....
A note about this -
As some of the steps we will ignore, e.g. for step 5, we will be verifying installation in our own way so you don't need to worry about this part on the firebase website.
Second, remember that we are working with the Firebase Realtime Database and not the Cloud Firestore.
OK, so bearing those things in mind!
I've been playing around for ages now and to put it simply, the button to add the iOS app to the project DOES NOT WORK! Gonna try rebooting the computer to see if that helps....
Paused at 16:32 (20 minutes so far - time taken into account for faffing with firebase)
Rebooted - YES now it works! Something so simple!
OK got the google service p list copied over now.
Then Terminal to do the pods!
Right so various steps to this - not writing about them all now. In fact, a good time to stop where I have all of the pods etc. added.
Paused at 16:55 Continued at 18:21
So I've done most of the steps at this stage - as usual, cocoapods are fiddly. Checked the messages again from Angela and will skip the fifth part.
Some warnings on the above link as the Firebase site is different now.
*This is one of things with tutorials in general - stuff gets updated so often it's hard to follow all steps. Anyway, it's fine for now.
Finished time - 18:25 (total time approx 45 minutes)
So some interesting stuff again. It's exciting learning new content! This will give me some new 'tools' down the line even though I'm a way off making proper sense of it yet.
It's Christmas Eve and time to code! To think, a year ago, I was plodding along with some eBook, blindly convincing myself that I was on a steady road to coding greatness. Really, it was from June where I made the decision to start again, humbling as that may seem. It would have been comforting to have completed endless 'beginner' courses but branching out and applying the theory is the key thing, which brings us to this entry. Yes, my second Xcode OWN project! I thought about doing an educational one, as there is certainly a lot of scope and relevance for that, being a teacher and all. However, making a quiz makes sense, for various reasons. First off, I have made this before through Angela's excellent tutorial. No offence to Sandra, but hers is not even close to the elegance and effectiveness of Angela's project. The one thing to take from Sandra is the stack views. Definitely something I will use from now on. This is one of the great things about learning from...
Well, it was inevitable really! In typical fashion, I've managed to go a couple of months without any coding activity. Bad Josh! I half-expected it yet am still disappointed. So, this entry is just to establish that I cannot allow that to happen again. One of the reasons that I decided to organise my coding 'experience' via Blogger was so that the live date and time stamp meant that I couldn't do a catch up session at some point. Essentially, there is nowhere to run or hide! So I've been caught out. Caught out not using or organising my time well enough to get any coding in. But that's going to change. I'm going to do some tomorrow - that is a guarantee! When I do, it will be continuing with the eBook that I was already working steadily through. At some point, I'll do a consolidation of what I know and summary of targets etc. For now, it's just a quick - 'Hey, I'm still alive!' - reminding me that coding is something I want to do and ...
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...
Comments
Post a Comment