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

15549487: Remove _initialize methods from Widget2 #474

Merged

Conversation

JohanBriglia
Copy link
Contributor

@JohanBriglia JohanBriglia commented Mar 21, 2024

It is a good practice to prefer composition over inheritance. And since we don't make widgets inheriting from other widgets anymore, we don't have to separate the initialization of instance variables and the initialization of subwidgets.

This is removing _initialize and _initializeSubwidgets in favor of always using the object constructor instead.


👉 Basecamp project/bug


This change is Reviewable

It is a good practice to prefer composition over inheritance. And
since we don't make widgets inheriting from other widgets anymore, we
don't have to separate the initialization of instance variables and
the initialization of subwidgets.

This is removing _initialize and _initializeSubwidgets in favor of
always using the object constructor instead.
Copy link
Member

@DamienCassou DamienCassou left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @BenjaminVanRyseghem)

@JohanBriglia JohanBriglia merged commit f37a329 into master Mar 21, 2024
2 checks passed
@JohanBriglia JohanBriglia deleted the 15549487/Remove_initialize_methods_from_Widget2 branch March 21, 2024 12:54
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.

None yet

2 participants