Section 1

Preview this deck

Controllers

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 (16)

Section 1

(16 cards)

Controllers

Front

Controllers perform the logic necessary connect your views and models. They process events.

Back

What is the difference between value types and reference types?

Front

The major difference is that value types are copied when they are passed around, whereas reference types share a single copy of the referenced information.

Back

What is an optional in Swift and what problem do optionals solve?

Front

An optional is used to let a variable of any type represent the lack of value. An optional variable can hold either a value or nil any time.

Back

Facade

Front

The Facade design pattern provides a single interface to a complex subsystem. Let's say you have NetworkManager class where you make HTTP requests and you have JSON response. With using Facade, you can keep your NetworkManager just focused on networking.

Back

By default what are all Swift properties?

Front

Strong

Back

Strong variables

Front

Back

Model-View-Controller

Front

three job categories: model, view or controller.

Back

View

Front

Views are the visual elements of an application. What you see on screen.

Back

what are retain cycles

Front

retain cycles are when an object referenced is pointing to another reference so it is not removed form memory.

Back

Weak variables

Front

we want to reference the variable, but it can go away and do not want to own it

Back

Singleton

Front

The Singleton design pattern ensures that only one instance exists for a given class

Back

Model

Front

Models are responsible for storing data and making it available to other objects.

Back

Singleton Plus

Front

you can create another object. Doesn't force you to use the shared one

Back

What are the various ways to unwrap an optional? How do they rate in terms of safety?

Front

forced unwrapping ! operator — unsafe implicitly unwrapped variable declaration — unsafe in many cases optional binding — safe optional chaining — safe nil coalescing operator — safe guard statement — safe optional pattern — safe

Back

unowned variables

Front

Back

What is Memory Management and ARC?

Front

ARC is automatic reference counting, there is no garbage collector and everything is managed automatically, (knowing that helps us with memory leaks)

Back