summaryrefslogtreecommitdiffabout
path: root/pwmanager/CodingStyle
authorulf69 <ulf69>2004-09-15 17:53:22 (UTC)
committer ulf69 <ulf69>2004-09-15 17:53:22 (UTC)
commitd3925ba5bd25224bc4a60d3d6a107c464994a1ea (patch) (side-by-side diff)
tree60f69da1d2b79ee3081e7ef5c09a46470ca6eda0 /pwmanager/CodingStyle
parentce83a3479d23b9e8a59c745ccd0a0b14f64ef4e8 (diff)
downloadkdepimpi-d3925ba5bd25224bc4a60d3d6a107c464994a1ea.zip
kdepimpi-d3925ba5bd25224bc4a60d3d6a107c464994a1ea.tar.gz
kdepimpi-d3925ba5bd25224bc4a60d3d6a107c464994a1ea.tar.bz2
initial revision
Diffstat (limited to 'pwmanager/CodingStyle') (more/less context) (ignore whitespace changes)
-rw-r--r--pwmanager/CodingStyle36
1 files changed, 36 insertions, 0 deletions
diff --git a/pwmanager/CodingStyle b/pwmanager/CodingStyle
new file mode 100644
index 0000000..67beae8
--- a/dev/null
+++ b/pwmanager/CodingStyle
@@ -0,0 +1,36 @@
+
+ PwManager coding style
+
+This program is being developed with the linux-kernel coding-style
+in mind. Please read these guidelines first, to get a basic
+knowledge of the style. You can find it in
+/usr/src/linux/Documentation/CodingStyle for example.
+
+A few other guidelines apply to this program, too:
+
+- Please use new-style C++ casts, if you need to make a cast.
+
+- The class PwMDoc is _only_ for internal document-data-
+ management. Don't put any view- or user-interface-stuff in
+ it. Not even a MessageBox. You may use the class PwMDocUi
+ to add UI-functionality to the document.
+
+- Don't add any document related stuff to another class
+ than PwMDoc. Exception: Put it into its own class and
+ invoke this class from within PwMDoc.
+
+- This program makes extensive use of inline functions, for
+ example to access data-members from outside of the class.
+ Please try to do so, too.
+
+- Don't try to optimize code for speed, where speed doesn't
+ matter. Instead optimize it for readability.
+
+- In the code we use the string "PwM" instead of "PwManager",
+ where needed. This has two reasons. The original name of
+ this program was "PwM". The second reason is that it's shorter.
+
+- It's an absolute requirement to have fun while developing
+ code for this application.
+
+ Michael Buesch