IOS development with swift

IOS development with swift

memorize.aimemorize.ai (lvl 286)
Section 1

Preview this deck

string type string literal

Front

Star 0%
Star 0%
Star 0%
Star 0%
Star 0%

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Active users

0

All-time users

0

Favorites

0

Last updated

6 years ago

Date created

Mar 1, 2020

Cards (54)

Section 1

(50 cards)

string type string literal

Front

Swift's strings are represented by the ____ ___ and the most common way to define then is using a _______ ______

Back

String interpolation

Front

a syntax provided by swift that makes the inclusion of constants, variables, literals, and expressions easier

Back

Comments

Front

use ______ to include non-executable text in your code as a note or reminder to yourself

Back

contains(_:) method

Front

if you want to check if one string is somewhere written in another string

Back

December 2015

Front

when did Apple release the swift language as an open source project

Back

isEmpty

Front

if you need to check if a swift string is empty you can use the boolean property _______

Back

hasSuffix(_:) method

Front

if you want to match the end of the string

Back

Type Safety

Front

which enforces code that's less likely to crash your program

Back

operation

Front

is a special symbol or phrase that is used to check, change, and combine values

Back

hasPrefix(_:) method

Front

if you want to match the beginning of the string

Back

-unary -binary -ternary

Front

Operators can either be:

Back

Type Inference

Front

which speeds up development and allows the compiler to help identify common issues

Back

Type Inference

Front

similarly allows the compiler to infer the type of an object thereby saving you time and again ensuring that the compiler can enforce proper rules regarding what operations and functions can be performed w/ each type

Back

Map, Filter, reduce , and other functional programming patterns

Front

which simplify code and streamline common actions that previously required multiple lines of code

Back

closed range operator (a...b)

Front

defines a range that from a to b

Back

static typing

Front

types are determined during compile time

Back

Binary Operators

Front

operate on two targets and appear in between these targets

Back

Type-safe

Front

-swift is considered a _____ language -_____ languages encourage or require you to be clear about the types or values your code can work with

Back

Constants

Front

when you want to name a value that won't change during the life time of a program

Back

-whitespace characters -mathematical symbols -nor can they start with a number(numbers may used elsewhere in the string)

Front

Constant and Variables can't contain:

Back

Generics

Front

helps developers write codes that can be used in multiple scenarios

Back

Playground

Front

to make learning swift more enjoyable, Apple added a new tool called _______

Back

Type Safety

Front

forces you to be 'explicit' about the type of each object that you create, manipulate, and assign and only lets you write code that the given object can handle

Back

Types and multiple return values

Front

allows smaller units of code to do more

Back

Fast and Concise iteration over collection

Front

making swift a fast language

Back

fallthrough keyword

Front

Swift switch statement would automatically finish executing the entire switch statement this behavior can be overriden though by providing a ______ before ending a case

Back

Control Flow

Front

a ________ ______ statement breaks up the flow of a program by explaining decision making, loops, and branching which enables you to conditionally execute portions of your program

Back

lowercased() method

Front

use ___ if you want to ignore the capitalization of astring when checking for string equality

Back

Ternary conditional operator

Front

is the only one under the ternary category. It takes the form of a question ?answer1:answer2

Back

Automatic Reference Counting(ARC)

Front

for memory management which automatically handles some of the deeper technical challenges of native programming

Back

Type inference

Front

swift uses _______ to make assumptions about the type based on the values assigned to the constant or variable

Back

It's one that's safe,fast, and expressive

Front

What's a modern language?

Back

Optionals

Front

a new way of expressing when a value may not exist

Back

string interpolation

Front

swift uses _____ to include the name of a constant or variable as a placeholder in a longer string and to prompt swift to replace it with the current value of that constant or variable

Back

Clean Syntax

Front

makes code readable and easier to work with

Back

Nested multiline comments

Front

enable you to comment out large blocks of code quickly and easily

Back

-if statements -switch statements

Front

Switch has only 2 basic conditional statements

Back

Safe Language

Front

a no. of feats already mentioned make swift a ______ by helping you write code that is less likely to crash your app

Back

Open Development

Front

means that Swift is developing and improving

Back

String literal

Front

is a raw representation of a string value

Back

half range operator (a..<b)

Front

defines a range that runs from a to b but does not include b

Back

Variable

Front

when you want to name a value that may change during the lifetime of a program

Back

Unary operators

Front

operate on a single target and can appear before(prefix operators) or after (postfix operators) their target

Back

Type annotation

Front

to explicitly specify the type of constant or variable

Back

Playground

Front

a special Xcode document type that runs swift code in a simple format w/ easily visible results

Back

structs that support methods, extensions, and protocols

Front

allows swift to optimize for memory use and speed while providing flexibility for developers

Back

Optionals

Front

are somewhat unique to Swift and allow you to better express when a value may not exist

Back

Objective-C

Front

Swift is a new programming language developed by Apple as an alternative to _________

Back

dynamic typing

Front

types are determined during runtime

Back

Powerful error handling

Front

helps the developer write fewer bugs and better handle scenarios that would cause apps to crash or perform unexpectedly

Back

Section 2

(4 cards)

switch statements

Front

you can also use the _____ ______ to pattern match multiple values of strings or characters and to respond accordingly

Back

-name -opitional list of parameters -optional return type

Front

a function is made up of:

Back

structure

Front

you create a custom data type by declaring a _____

Back

count property

Front

the size of any collection can be determined can be determined using its __ ___

Back