4 ms·
Most projects have a set of coding guidelines. I don't see why it cannot specify things like: "Don't use operator overloading!". Google does, for one thing. W
by thedigitalengel 15y ago
Most projects have a set of coding guidelines. I don't see why it cannot specify things like: "Don't use operator overloading!".
Google does, for one thing.
Without discipline both C and C++ will blow you up completely. With some discipline both the languages are manageable, and C++ more so; which is what the OP points out.
- peterbotond 15y agothat's exactly right and correct. any language can be screwed up without descipline, and understanding of the solution trying to be implemented. me for example, put comments in code that what direction of design, execution path is taken to correct less efficient idioms. so, at a later time, new code can be added with some direction. this prevents the urge to copy and paste by the new guy. coding guidelines are also to include programming idioms, primitives, to use and build the solution around it. for c++, c and others i wrote many of guidelines, and seeing the benefit later i can say the above.