maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   Say NO! to Qt-based Maemo! (https://talk.maemo.org/showthread.php?t=50557)

Joorin 2010-04-20 14:46

Re: Say NO! to Qt-based Maemo!
 
Quote:

Originally Posted by sevla (Post 619442)
All the GTK apps i've seen released on here and in ovi look bland outdated and wreak of black and gray.

If Qt /C++ can make apps look better and offer an easier development platform, which judging from demos they will, I'm all for it.

I really don't know why anyone would want to code in C in the year 2010.

This isn't 1995....

Let progress like the rest of the software development world.

Bling isn't everything. Me being able to change the theme is not worth anything if the system isn't stable on account of poor quality applications. Sad but true.

And when it comes to C being outdated, I'm sure them 100+ lines of C code commited into the main Linux kernel source tree every day is just 1995 all over again. Not to mention all the applications that form the base of everything you do on your N900 and on almost all other Linux based systems.

Ease of use is progress, bling is not.

TheLongshot 2010-04-20 14:47

Re: Say NO! to Qt-based Maemo!
 
Quote:

Originally Posted by smoku (Post 619426)
Exactly.
I spent a lot of time learning Gtk+, Gobject, GNOME & Freedesktop technologies, now Hildon stack on top of it. Got to love it.

Now you're telling me:
Forget it all! Here's Qt - which is so much better. You need to learn everything again.

Well, I disagree with the part of "learning everything again". Some basic concepts in software engineering don't change all that much from language to language.

As for learning, that's part of being a software engineer: There are always new languages and new libraries to learn. If you don't continually learn, you might be left behind eventually.

johnel 2010-04-20 15:03

Re: Say NO! to Qt-based Maemo!
 
I'm amazed that people here think the language defines how well a piece of software is written.

I thought things like principles of good design, problem solving, you know stuff like that is what makes you a good programmer.

I must be naive.

w00t 2010-04-20 15:04

Re: Say NO! to Qt-based Maemo!
 
Quote:

Originally Posted by johnel (Post 619502)
I'm amazed that people here think the language defines how well a piece of software is written.

I thought things like principles of good design, problem solving, you know stuff like that is what makes you a good programmer.

I must be naive.

I see you're new to this whole "let's flame things we know nothing about" thing.

TA-t3 2010-04-20 15:12

Re: Say NO! to Qt-based Maemo!
 
I'm fine as long as there's both GTK and Qt options. Among others. I prefer to write in C or Vala, but I see nothing wrong with hacking occasionally on C++ and Qt (got to learn it bit by bit), and I'm looking forward to nice Qt apps written by other folks (as well as any GTK apps they can churn out).

I for one don't agree with the 'written KDE looks bad in Gnome and vice versa' claim. I've always been using a mix of applications (on my desktop) written in everything under the sun (Motif, GTK, Qt, WxWorks, heck, even OpenLook, and more). Me happy still.

w00t 2010-04-20 15:27

Re: Say NO! to Qt-based Maemo!
 
Quote:

Originally Posted by TA-t3 (Post 619517)
I for one don't agree with the 'written KDE looks bad in Gnome and vice versa' claim. I've always been using a mix of applications (on my desktop) written in everything under the sun (Motif, GTK, Qt, WxWorks, heck, even OpenLook, and more). Me happy still.

Qt will be fine and happy under Gnome. If you're using the right style plugin (QGtkStyle or QCleanlooksStyle), widgets are actually drawn using Gtk - you can't get much more native than that.

(Qt on Maemo works the same: widgets are drawn using Hildon/Gtk.)

As for other platorms inside KDE (for instance), it depends on the capabilities of that toolkit. If you've set up a Gtk theme, you might be able to get close - but it's not fully native like the QStyles.

Joorin 2010-04-20 15:27

Re: Say NO! to Qt-based Maemo!
 
Quote:

Originally Posted by johnel (Post 619502)
I'm amazed that people here think the language defines how well a piece of software is written.

I thought things like principles of good design, problem solving, you know stuff like that is what makes you a good programmer.

I must be naive.

The problem is that too many put "It's ugly!" (which is purely subjective) against "It doesn't crash very often." (which is way more objective and you can actually count the times it happens) and prefer things that are pretty over things that are easy to develop, debug and maintain. And that's not even taking into account the difference in what code actually is run on the device.

Picking the right tool for something is usually the first step towards solving the problem in a good way. A great programmer can perform miracles even with a not so good tool but great programmers are scarce. This makes it important to pick the tool that gives the most programmers the best chances of at least not failing miserably given some time to practice.

Qt has very good documentation. The toolkit is versatile and is very actively developed and refined. This is all good. But, the easiest way[1] to harness the power of Qt is to write the business code in C++ too. With this you leave the comfy Qt corner and have to make your own design decisions and solve your own problems in a language that I find sub par for just that. Following the link posted by OP is a good introduction to at least thinking about this.

So, I'd say it's not you being naïve, since this is not a question of what makes someone a good programmer, but it's about you and many others asking, in my opinion, the wrong questions.

---
[1] Yes, there are things like PyQt but I haven't tried this out and approach this from a pure C/C++ angle.

w00t 2010-04-20 15:37

Re: Say NO! to Qt-based Maemo!
 
Quote:

Originally Posted by Joorin (Post 619530)
The problem is that too many put "It's ugly!" (which is purely subjective)

As I outline above, if you're calling Qt on any of today's platforms ugly, then you've the parent toolkit to blame. Qt isn't actually defining that style, it uses existing APIs to render the widgets.

Quote:

Originally Posted by Joorin (Post 619530)
"It doesn't crash very often." (which is way more objective and you can actually count the times it happens)

I question this. Are you saying Qt itself has these crashes? Because in some years of using it now (often pre-release, I've been using 4.7 on my desktop for well over three months now) and I'm still yet to experience many crashes caused by *Qt*. I thought I found one the other day, and it ended out (after a few days of investigation) to be my fault, not Qt's.

While this is just as subjective a statement as someone saying 'Qt is buggy', I don't think that's a statement that you can claim to *objectively* make without measurement and statistics.

Quote:

Originally Posted by Joorin (Post 619530)
Qt has very good documentation. The toolkit is versatile and is very actively developed and refined. This is all good. But, the easiest way[1] to harness the power of Qt is to write the business code in C++ too. With this you leave the comfy Qt corner and have to make your own design decisions and solve your own problems in a language that I find sub par for just that. Following the link posted by OP is a good introduction to at least thinking about this.

I don't see your logic here.

Your point implies that the easiest way to use the power of Qt, is to not use Qt, and go back to all the headaches of C++ that Qt helps relieve you of? (QObject signal/events, most of the details of memory management - unless you want to deal with it, etc).

This doesn't really make sense to me.

It's worth noting at this point that the link of the flaws of C++, while a good read, is actually addressed to some extents *by* Qt.

Quote:

Originally Posted by Joorin (Post 619530)
So, I'd say it's not you being naïve, since this is not a question of what makes someone a good programmer, but it's about you and many others asking, in my opinion, the wrong questions.

It's not even that, so much as people not asking questions, and using knee-jerk reactions based on misinformed opinions.

Really, the best way to get involved in this discussion is to find someone *knowledgable* on both sides of the debate, learn from them, ask them questions, and then you'll have a balanced opinion.

For the record, at least in my experience, PyQt/PySide are pretty useful. I've used them for prototyping a few times.

mikhas 2010-04-20 15:41

Re: Say NO! to Qt-based Maemo!
 
Quote:

Originally Posted by johnel (Post 619502)
II thought things like principles of good design, problem solving, you know stuff like that is what makes you a good programmer.

I must be naive.

You must have missed:
Quote:

Ease of use is progress
Recommended read:
Five Little Languages and How They Grew

Small languages that are yet expressive make all of your mentioned principles easier to follow.

mikhas 2010-04-20 15:47

Re: Say NO! to Qt-based Maemo!
 
Quote:

Originally Posted by w00t (Post 619529)
Qt will be fine and happy under Gnome. If you're using the right style plugin (QGtkStyle or QCleanlooksStyle), widgets are actually drawn using Gtk - you can't get much more native than that..

You must have never used a filechooser dialog on GNOME then, from a Qt app. Or try KDevelop on GNOME ... UI is look&*feel*, with *feel* relating to the app's behaviour, and whether its surprising to the user or not. The style plugins still have a long way to go, IMO.


All times are GMT. The time now is 16:50.

vBulletin® Version 3.8.8