Coding standard? Programming Software Development by vicky_dev … that we are calling a member function. What is the coding standard here? And what could be wrong with the first version… Re: Coding standard? Programming Software Development by Narue >What is the coding standard here? Different people/standards do different things. It's a … Re: Coding standard? Programming Software Development by jwenting And why would that be clearer? There's no reason at all to do that, unless maybe you've been stupid enough to define one of your class' methods to have an identical signature to a standard library function. But in that case you should rename your own method... Re: C++ coding standard Programming Software Development by Bench …]rules[/i]? There are no [i]rules[/i] for Coding style - such coding standards are usually based upon one or more of… Stroustrup [url]http://www2.research.att.com/~bs/bs_faq2.html#coding-standard[/url] Re: C++ coding standard Programming Software Development by Supriyo …]rules[/i]? There are no [i]rules[/i] for Coding style - such coding standards are usually based upon one or more of… Stroustrup [url]http://www2.research.att.com/~bs/bs_faq2.html#coding-standard[/url][/QUOTE] Thanx. But how can I know whether my… Re: Coding standard? Programming Software Development by Ancient Dragon The only time I use [inlinecode]this->[/inlinecode] is to resolve ambiguous names. Re: Coding standard? Programming Software Development by Narue >The only time I use [INLINECODE]this->[/INLINECODE] is to resolve ambiguous names. Same here, and I only have ambiguous names when I'm maintaining code I didn't have control over in writing or when I'm stuck in a corner and can't use unique names. In other words, not often at all. ;) Re: Coding standard? Programming Software Development by vicky_dev [QUOTE=Narue;287215] Different people/standards do different things. It's a stylistic issue.[/QUOTE] Yes, but there are some widely accepted ways to do certain things, like using all caps for constants. I was thinking what would that be here. [QUOTE=Narue;287215] Well, it adds unnecessary clutter that distracts from the meat of the code. I… Re: Coding standard? Programming Software Development by Narue >Yes, but there are some widely accepted ways to do certain things, like >using all caps for constants. I was thinking what would that be here. From what I've seen, the widely accepted way of doing it is to omit [INLINECODE]this->[/INLINECODE]. >but it would help anyone taking a glance. If you're reading for comprehension (the … Re: Coding standard? Programming Software Development by vicky_dev K, I got my answer... thanks!! Re: Coding Standards and Best Practices Community Center by griswolf … odds with Ancient Dragon: I think that coding standards are useful prior to peer review, …a tool that tris to enforce someone's coding standard on the world.[/QUOTE] Ok, on a… to try to create some kind of coding standards filter that could read the equivalent… of the one-page company coding standards doc and emit a critique of my… Re: Coding Standards and Best Practices Community Center by griswolf Somewhat at odds with Ancient Dragon: I think that coding standards are useful prior to peer review, because code … with lots of new coders, because a truly useful coding standard should fit on a single sheet of paper in easily…]what do you find missing from your day to day coding[/QUOTE] Clarity, cleverness (but not too clever), consistency, good… Re: Coding Standards and Best Practices Community Center by Ancient Dragon >>Somewhat at odds with Ancient Dragon: I think that coding standards are useful prior to peer review, I did not say code standards are not useful. Just the opposite. You can't have a peer review without them. My objection was for a tool that tris to enforce someone's coding standard on the world. Re: C++ coding standard Programming Software Development by Stefano Mtangoo … already said there is no such a thing as "standard coding", so is the definition of Big project. I think… it depends on definitions of "big" and "standard" you have in your head. ;) That said, many people… person. So drop your fears in trash can and start coding and finish up your project. Then take cup of coffee… Re: C++ coding standard Programming Software Development by StuXYZ … seem to think that you don't need a c++ standard but more likely to want a static analysis, e.g… posts above, there is no such thing as "the standard", but a lot of things in a code that… Re: C++ coding standard Programming Software Development by xtrmR … and lotsa programs. Even now i dont write a perfect standard program. Standards are something u fix. Just keep practicing. Write… C++ coding standard Programming Software Development by Supriyo Hello. Apart from practice and books (like C++ coding standards by Sutter and Alexandrescu) what is the fastest and surest way to acheive coding standards in c++? Supriyo Re: C++ coding standard Programming Software Development by Aranarth … I know whether the code is well formed and mantaining coding standards?[/QUOTE] By looking at it. Seriously though, there is… no such thing as [i]the[/i] coding standards. Quality of code isn't something that can be… Re: C++ coding standard Programming Software Development by Aranarth [QUOTE=Supriyo;1262305]Can a standalone programmer design large scale C++ projects?[/QUOTE] In theory, if said programmer is very experienced. However, experience does not come by learning "good coding style rules" by heart. Re: C++ coding standard Programming Software Development by Supriyo [QUOTE=Aranarth;1262328]In theory, if said programmer is very experienced. However, experience does not come by learning "good coding style rules" by heart.[/QUOTE] Thanx. So the alternative is to work with a large team? Re: C++ coding standard Programming Software Development by Supriyo I have a very large program in C++ that is running without any errors from the compiler. But how can I know whether the code is well formed and mantaining coding standards? Re: C++ coding standard Programming Software Development by Supriyo How to acheive the coding standards in C++? Re: C++ coding standard Programming Software Development by Ancient Dragon …?[/QUOTE] Don't change a program just to improve its coding style. "Don't fix it if it ain't… Re: C++ coding standard Programming Software Development by Ketsuekiame The questions he's asking look suspiciously like exam practise questions on design methods and coding theory... ;) If this is true, I suggest you ask your [b]lecturer[/b]. They are there to help. Asking them questions about something you don't understand will not penalise you in any way ;) Re: does .c source file support c++ coding standard? Programming Software Development by mike_2000_17 …, i.e. low-level libraries. Or often "scientific" coding involves algorithms that were programmed in C (or even in…; or "... will violate strict aliasing rules", etc. But coding c++ code in a .c file is not a good… does .c source file support c++ coding standard? Programming Software Development by tehb As I know that .c is the extension format for c coding while cpp is the extension for c++. But I noticed that there are some c++ project use .c extension instead of cpp, is it both extension is supported in c++ compiler? Re: Good coding practice? Programming Software Development by StuXYZ … really getting somewhere. Have a read of the linux kernel coding standard [URL="http://www.yolinux.com/TUTORIALS/LinuxTutorialC++CodingStyle.html…/TUTORIALS/LinuxTutorialC++CodingStyle.html[/URL] and the book [I]C++ Coding StandardsL 101 Rules, Guidelines and Best Practices by Herb Sutter… Re: Coding Standards and Best Practices Community Center by CharlesKramer I imagine that by "coding standards" you mean things like requiring code to be…adhere to some process from flow chart to beta. Historically standard-setting organizations have given their "seal of approval&…quot; to companies who comply with their standard -- sometimes genuinely hoping to advance the industry as a … Standard Code Indentation Programming Software Development by mattyd … is important to indent and indent properly, it is industry standard, and it is simply utilitarian. I always think: "Well… and have them become a part of my real-time coding, as I write code, not as an end project before… Re: Standard Code Indentation Programming Software Development by DavidRyan … is important to indent and indent properly, it is industry standard, and it is simply utilitarian. ... I wish to learn proper… and have them become a part of my real-time coding, as I write code, not as an end project before…