-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Правки по спринту 14 #1
Conversation
…по выбранной дате
|
||
import Foundation | ||
|
||
enum Weekday: String, CaseIterable, Codable { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
лучше вынести в отдельный файл
|
||
import Foundation | ||
|
||
class TrackerDataService { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Давай проставлять ключевое слово final
классам для ускорения работы компилятора.
Это нужно для оптимизация работы компилятора: ты явно сообщаешь о том,
что класс не планируется расширять наследованием.
В таком случае комплятор будет быстрее находить адрес ячейки памяти при вызове функции.
Эта тема про диспетчеризацию, если интересно, можно почитать здесь:
https://habr.com/ru/post/673400/
https://habr.com/ru/company/simbirsoft/blog/673636/
import Foundation | ||
import UIKit | ||
|
||
class StatisticsViewController: UIViewController { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
давай тоже пометим final
import Foundation | ||
import UIKit | ||
|
||
class TabBarController: UITabBarController { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
давай тоже пометим final
import Foundation | ||
import UIKit | ||
|
||
class TrackerCell: UICollectionViewCell { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
давай тоже пометим final
No description provided.