Posts

Showing posts with the label constant

Constants; Conventions and Rules; Strings

With renewed vigour, I'm restarting my Swift journey, going over familiar ground! This has happened before, as it's comforting and easy to go through information I already know. However it is necessary and important. Along with the Treehouse tutorial videos, I've found another eBook 'App Development with Swift', which I'll use to supplement and check any of the key points.  Swift Basics Video 4: Constants The analogy he makes here is that computers are not smart enough to figure out if something has changed. The purpose of constants is to create a value that will NEVER be changed. We can see what is inside the box (the glass box analogy!) but CANNOT change it! let language = "Swift" This is a simple example to show how a constant is created. If we try to change the value of 'language', then there will be errors! This is because it is a constant. Makes total sense. Xcode will show the 'red error' with the icon, which will the...

How I learned Swift and what I know about Swift - Part 1

Following on from my 'Brief History' post, this other retrospective is to help me make sense of what I know about Swift so far and to summarise the journey I've been on with it. Subsequent posts in this blog will involve up-to-date thoughts and reflections on my current learning of Swift. Here is how I went about learning Swift: In April 2015, I started off learning Swift with several Udemy courses, including one by Rob Percival, which was very popular and highly-rated. At first, I had the naive assumption that it would all be very straightforward and easy to pick up. It wasn't! Rob's course was great if you were confident with the language, but the halfway point I was lost. The tasks seemed to be impossible to figure out without some insider knowledge. Anyway, I supplemented that course with several others on Udemy, which helped me to learn what the basics were. From there, I found a useful site: 'WeHeartSwift', which were useful in carrying out cha...