Skip to content
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

Merged
merged 40 commits into from
Aug 29, 2024
Merged

Правки по спринту 14 #1

merged 40 commits into from
Aug 29, 2024

Conversation

freeagles1991
Copy link
Owner

No description provided.


import Foundation

enum Weekday: String, CaseIterable, Codable {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

лучше вынести в отдельный файл


import Foundation

class TrackerDataService {

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 {

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 {

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 {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

давай тоже пометим final

@freeagles1991 freeagles1991 merged commit a5d9332 into main Aug 29, 2024
@freeagles1991 freeagles1991 deleted the sprint_14 branch December 3, 2024 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants