Originally posted by brk0_0
View Post
Announcement
Collapse
No announcement yet.
GTK+ 3.90.0 Released, Advancing Towards GTK 4.0
Collapse
X
-
-
Originally posted by uid313 View PostWell it doesn't look or feel very object oriented with stuff like:
gtk_button_new_with_label("Ok") instead of new Gtk.Button("Ok")
And:
gtk_button_set_label(ok_button, "text") instead of button.set_label("text")
ok_button.label = "text"
Does that make it better than object-oriented?
Comment
-
Originally posted by uid313 View PostWell it doesn't look or feel very object oriented with stuff like:
gtk_button_new_with_label("Ok") instead of new Gtk.Button("Ok")
And:
gtk_button_set_label(ok_button, "text") instead of button.set_label("text")
1) not be what anyone actually hacking on gtk+ itself is interested in doing
2) be a massive waste of time and effort
3) not achieve anything
4) not be something you yourself would be involved in
5) sacrifice the multitude of language bindings - including the one that you're using.
Originally posted by uid313 View PostGTK could stay with C, but I just hope that there will be some improvements to Gtk.Paned because I find it lacking.
- Likes 1
Comment
-
Originally posted by uid313 View Post
What, C++ is not object oriented?
People like to say C++ is OO just because it has classes and inheritance. But these two are not requiriment for considering one PL OO, and by themselves doesn't make a PL OO.
Fun fact: It's possible to make a OO PL that doesn't have classes and inheritance.Last edited by Mateus Felipe; 04 April 2017, 05:26 AM.
Comment
-
Originally posted by ldo17 View PostPython doesn’t have (or need) the keyword “new” either. Does that mean it’s not object-oriented?
I often mistakenly write "new" when coding Python. Maybe it would be better if Python used "new", most other language seem to do it that way.
Originally posted by ldo17 View PostPython lets you implement “properties”, so you can write
ok_button.label = "text"
Does that make it better than object-oriented?
Properties are nice.
Comment
-
Originally posted by dkasak View PostDafaq, man? So you want gtk+ rewritten in a language that looks like the one you're using ( Python ), but is also Rust, and definitely not C, and fast, and stable, and ... what else exactly?
Originally posted by dkasak View PostI still don't get the reason why you don't just continue using Python. That's what you like to look at.
It is shit, I have to run my software then it crashes, then I do Ctrl+C, doesn't work, Ctrl+D doesn't work, Ctrl+Z then I'm back on the shell. Try to run it again, oh it doesn't work, I have to kill the Python process. Now I can run it again.
No type checking, bugs creep in easily, no interfaces. No compille-time checking, so you have to run the application and interact with it until it crashes so you can fix things.
I code in Python because the alternative would be C or Vala.
I would prefer to code in C# on .NET Core but unfortunately there seems to be no GObject Introspection bindings.
It would make it so much easier to architect a clean design and save me so much time to have all these static typing and compile-time checks. It would be so much more productive.
Originally posted by dkasak View PostThat's at least a more reasonable position. What's the bugzilla link for your GtkPaned issues? What's your opposition to writing your own container widget? I've written some custom widgets - mainly custom cell renderers for treeviews. It's not so hard. Maybe a container widget might be more challenging?
Comment
-
Originally posted by uid313 View PostC++.
Originally posted by uid313 View PostI would prefer to code in C# on .NET Core but unfortunately there seems to be no GObject Introspection bindings.
It would make it so much easier to architect a clean design and save me so much time to have all these static typing and compile-time checks. It would be so much more productive.
Comment
-
Originally posted by uid313 View PostPython is object-oriented but it uses this weird OO.
I often mistakenly write "new" when coding Python. Maybe it would be better if Python used "new", most other language seem to do it that way.
Because C++ only uses “new” for objects created on the heap, not for ones on the stack. Java (like Python) puts all objects on the heap. So you would think the word “new” would be redundant there, would it not? Yet Java requires the word “new” for object creation. Why?
Pretty much all object-oriented languages supports properties.
Comment
-
Originally posted by Mystro256 View PostWhat about gtkmm? I've never used it myself, I've only really used C directly with gtk.
I assume gtk# is lacking? Granted, my experience with C# is limited, let alone gtk#.
Gtk# is for .NET and is an outdated library.
I was requesting GObject Introspection for .NET Core which is the new .NET, and with GI you could have latest GTK and other libraries.
Comment
Comment