Posts

Showing posts with the label number

Numbers and Booleans; Type Safety and Type Inference

So, yes I am on much more of a roll now! The most consistent entries since starting this blog! As before, the issue will be, once the recap/consolidation process is complete, trying to stick to learning new aspects regularly will be the challenge. Anyway, we're cracking on with numbers and booleans first of all.... Numbers and Booleans  One of the concepts mentioned are floats - numbers which can have decimal places. I know that these are known as 'doubles' and tend to use these over 'floats'. And that's what he goes on to say! Indeed, Pasan explains that Double is preferable as it can store more basically. A lot of this is linked to type inference to e.g. if I declare a variable and give it 3.4 as a value, it will automatically make it of type Double. Booleans - now these are essentially true or false. String Interpolation - as a reminder - allows values from different types to be put in together. You can create a string made up of a mixture of other type...

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