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

Classic OOP style? #131

Open
rubyFeedback opened this issue Aug 1, 2022 · 1 comment
Open

Classic OOP style? #131

rubyFeedback opened this issue Aug 1, 2022 · 1 comment

Comments

@rubyFeedback
Copy link

If I understand jrubyfx correctly then it is a DSL, where we use verbs to describe
what we want to have e. g.:

vbox {
}

And so forth.

Via ruby-gtk I am more used to:

x = Name.new

And then use .add() or << to chain widgets together.

Would it be possible for jrubyfx to also support that style? Where e. g. classes
from JavaFX are mapped 1:1? Like: JavaFX::TextArea.new or whatever the
name is?

I understand that in ruby everyone loves DSLs but I found them a lot more
complicated than classical OOP.

@byteit101
Copy link
Member

byteit101 commented Aug 1, 2022 via email

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

No branches or pull requests

2 participants