For reference and ideas, I'm curious...
What standards, conventions, etc do you use when writing code.
Having come from C/C++ I use hungarian style notation, but I also am starting to use a Linux style when writing procedural...I can't explain why exactly, just that it's rubbing off on me now that I've gotten away from Windows development using MFC.
I do however name my classes, methods and members as I did in C++...
For me personally, I find that by having different styles for classes, methods, functions, etc...it almost further helps organize my source...if I look at a function (besides the obvious using -> or ::) I can immediately determine it's a method or a global function, which I find makes it "stick" out that much more, like adding colorizing to editors helps comments stick out almost. So I justify my convention in that regard.
So, what techniques, etc do you use to make code more readble, structured, etc...?
Do you use Camelcase or whatever it's called? Java's style?
If you can, please explain why with an answer...
I'm NOT looking for a "read this document it explains what you are after"...I'm just as tech savvy as you are and I know how to use Google too...
I'm looking for personal opinions, etc...
For instance, I personally don't use this technique, but:
Code: Select all
if(0 == $a)I for one, can say I have honestly never made that error in either C/C++ or any other language which provides a different operator for comparison and assignment.
Anyways, that is a technique or coding convention which is easily justified because it's answer is obvious and it does serve it's purpose, just not for me.
This is ideally what i'm looking for...
So please, if someone has already answered with I use CAMELCASE because...
and your answer is the same, there isn't really a need to answer...or reply to this topic...
You get my idea
Cheers