|
|||||||
| General Programming Forum devoted to general, non-Qt programming issues. |
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi,
I have some thoughs about “Qt coding standards”. I've seen various standards, for example this link http://www.possibility.com/Cpp/CppCodingStandard.html and then code the Trolls wrote. I'm wondering about naming conventions of members for example: Qt Code:
Attributes? sError, msError, m_ErrorString; If it were two error variables I would say m_ErrorCode and m_ErrorString for example. Is it really important to ‘encode’ the variable type into the name? My guess is not really since we have type checking. But one should consider readability for the next person. Indent/braces: Then when it comes to placing the braces: Qt Code:
Qt Code:
Please provide some feedback or give me some example of your 'correct' coding standard. I know that each person/organization has a personal touch but there are some 'best practice' conventions out there. I'm especially interested in the Qt world's coding habits.
__________________
Derick Schoonbee |
|
#2
|
|||
|
|||
|
Have a look at this: http://doc.trolltech.com/qq/qq13-apis.html
|
| The following user says thank you to wysota for this useful post: | ||
derick (8th May 2008) | ||
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| c++ coding standards | guestgulkan | General Programming | 1 | 1st May 2008 10:05 |
| coding style | mickey | General Discussion | 2 | 16th March 2008 19:19 |
| Libraries (or other methods) for coding and decoding in H263 or similar | toratora | General Programming | 0 | 8th March 2007 10:16 |
| Qt Coding/Design Standards | bpetty | Newbie | 6 | 17th February 2007 10:15 |
| what will be the coding for Menu->File->open | jyoti | Qt Programming | 3 | 10th November 2006 13:16 |