[Qt-interest] article about static analysis of Qt
Jason H
scorp1us at yahoo.com
Tue Jul 19 02:17:30 CEST 2011
I credit the robust unit testing. Unit testing matters little in the early days, but as the code base grown morphs and goes through several heads, the more risky it is to change a heavily used function. This is where the quality takes a dive, because without unit tests enforcing contracts of old, you'll break the seldom used bits of code, and quality plummets.
Then Qt added benchmarks... and it got even better.
The S_OK issue is a small one. Really, Microsoft picking 0 for S_OK was Microsoft's dumb idea. Really S_OK really indicates a zero error condition, as all the other versions for HR are errors.
________________________________
From: "Malyushytsky, Alex" <alex at wai.com>
To: "qt-interest at qt.nokia.com" <qt-interest at qt.nokia.com>
Sent: Monday, July 18, 2011 7:55 PM
Subject: Re: [Qt-interest] article about static analysis of Qt
There was a famous Russian singer and actor who said (my own translation):
”quality of police is not defined by the presence of criminals, but rather how police can shut down the criminal activity”
The same thing I would say about software bugs.
Even though I am often unhappy about reported by me bug silently dying,
I would say that quality of QT in general is the highest I've seen if compare to all free available packages I ever used.
I would say rare of the software library of comparable size can compete with Qt.
To be fair I would still prefer 'case' instead of table concept,
most of the case usage will not allow to use table concept and
in the long run it is easier to maintain similar structured code.
I am not sure if "the mentioned article is completely unnecessary",
Any study is better than none,.
but I would advise person who wrote it at least to try to compile his examples.
I doubt the following will compile on any compiler (and this is first min of reading, wo where is advantage?):
struct {
QSysInfo::WinVersion; m_ver;
const char *m_str;
} Table_WinVersionToString[] = {
{ WV_Me, "WinMe" },
{ WV_95, "Win95" },
{ WV_98, "Win98" },
{ WV_NT, "WinNT" },
{ WV_2000, "Win2000" },
{ WV_2003, "Win2003" },
{ WV_XP, "WinXP" },
{ WV_VISTA,"WinVista" }
};
Just my personal few cents,
Alex
From: qt-interest-bounces+alex=wai.com at qt.nokia.com [mailto:qt-interest-bounces+alex=wai.com at qt.nokia.com] On Behalf Of Jesus Fernandez
Sent: Sunday, July 17, 2011 7:04 AM
To: Bill Crocker
Cc: qt-interest at qt.nokia.com
Subject: Re: [Qt-interest] article about static analysis of Qt
I think this article is completely unnecessary.
Qt libraries are huge and cannot be free of errors. But these comments...
On Sun, Jul 17, 2011 at 15:26, Bill Crocker <william.crocker at analog.com> wrote:
>>
>> http://www.viva64.com/en/a/0075/
>
> I was actually a bit disappointed with this.
>
He also says this...
"The code of the Qt library is of a very high
quality and it's almost free of errors."
which reveals his limited Qt experience. :-)
Qt may have a low error count per line of code
but there is a *lot* of code.
Bill
> Bo Thorsen,
> Fionia Software.
>
_______________________________________________
Qt-interest mailing list
Qt-interest at qt.nokia.com
http://lists.qt.nokia.com/mailman/listinfo/qt-interest
---------------------------------------------------------------------------------------------------
Weidlinger Associates, Inc. made the following annotations.
“This message and any attachments are solely for the intended recipient and may contain confidential or privileged information. If you are not the intended recipient, any disclosure, copying, use, or distribution of the information included in this message and any attachments is prohibited. If you have received this communication in error, please notify us by reply e-mail and immediately and permanently delete this message and any attachments. Thank you.”
“Please consider our environment before printing this email.”
_______________________________________________
Qt-interest mailing list
Qt-interest at qt.nokia.com
http://lists.qt.nokia.com/mailman/listinfo/qt-interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110718/b25f72b3/attachment.html
More information about the Qt-interest-old
mailing list