jsmith: Yea, I use boost daily in my job too; and all developers I hire must have knowledge of boost.
@framework: multi-platform can also refer to variants of Windows.
I never said review the code, only the style in which the code is written. |
Firstly, you said review your coding style. Which covers everything from the actual layout of your braces through to how you solved the problem (or how the code was written).
You said don't worry about functionality, so I've not said whether you're code was right or wrong in it's application of the solution.
If you wan't people to review the way you write code, then you should've asked them to review the way you write code; or simply provide a better example of code for them to review that didn't have so many obvious flaws.
Some simple problems (IMO of course):
- Way too many comments
- Comments should be in a consistent format (e.g Doxygen compatible)
- Class declaration and implementation inline
- Constructor is ambiguous (this shouldn't really even compile)
- C I/O not C++ I/O
- No encapsulation
- Using a naked pointer
- Using a pointer to store a single value
- Poor naming convention for members and methods
- Poor naming - abbreviating names of variables (InitValue)
I suggest you take the advice many of the people have posted on this thread, instead of coming back with disputing comments. You have to remember that you did ask us for our opinion, and many of us are Snr level professional developers or software architects with many years experience in development.
I am happy to elaborate on any of my listed points above, but again remember that my comments, and everyone else's, are our own opinions.