-
Что такое
полиморфизм? -
Что такое *инкапсуляция? Что такое *нарушение инкапсуляции? -
Чем
абстрактныйкласс отличается отинтерфейса? -
Расскажите о
паттерне MVC. Чем отличаетсяпассивнаямодель отактивной?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "3.3.1": "https://github.com/opencv/opencv/releases/download/3.3.1/opencv-3.3.1-ios-framework.zip" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class NetworkMidddleware { | |
| let container: Container | |
| init(container: Container) { | |
| self.container = container | |
| } | |
| func dispatch(_ dispatch: DispatchFunction?, getState: @escaping GetState) -> (@escaping DispatchFunction) -> DispatchFunction { | |
| return { next in | |
| return { action in |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| fileprivate class HandlerShim: NSObject { | |
| let handler: (UIGestureRecognizer) -> Void | |
| init(_ handler: @escaping (UIGestureRecognizer) -> Void) { | |
| self.handler = handler | |
| } | |
| func invoke(sender: UIGestureRecognizer) { | |
| handler(sender) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| struct Atomic<T> { | |
| private var _value: T | |
| var value: T { | |
| mutating get { | |
| var result: T | |
| _atomic_lock_object(&self) | |
| result = _value |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public struct Future<T> { | |
| public func onSuccess<U>(value: T -> U) -> Future<U> | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Foundation | |
| enum UserSessionState: Int { | |
| case Initialized, Opened, Closed | |
| } | |
| class UserSession { | |
| let identifier: String | |
| private(set) lazy var serviceLocator: ServiceLocator = { [unowned self] in |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @import Foundation; | |
| #import "TLKUserStore.h" | |
| @class RACSignal; | |
| @interface TLKUserStore (ReactiveCocoa) | |
| - (RACSignal *)authorizedUserSignalInContext:(NSManagedObjectContext *)context; | |
| - (RACSignal *)authorizedUserSignal; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #import <Facebook-iOS-SDK/FacebookSDK/FBSession.h> | |
| @class RACSignal; | |
| @interface FBSession (RACExtension) | |
| + (FBSession *)rac_activeSession:(BOOL)cachedOnly; | |
| + (void)rac_reset; |