1 Attachment(s)
Is my programming good enough?
Hi
I've written a console program in C++ and I'm wondering if the standard of the code is acceptable on a professional level. Now that I've finished studying, I'd like to use the program as my 'calling card' to get commercial work. Is my programming good enough for that level?
Your feedback would be much appreciated. I've attached a text document containing the code to this message.
Panther2
Re: Is my programming good enough?
Quote:
Originally posted by panther2
Hi
I've written a console program in C++ and I'm wondering if the standard of the code is acceptable on a professional level. Now that I've finished studying, I'd like to use the program as my 'calling card' to get commercial work. Is my programming good enough for that level?
Your feedback would be much appreciated. I've attached a text document containing the code to this message.
Panther2
(1) You mix stdio and iostream
(2) You use <iostream.h> -- deprecated; use <iostream>
(3) The code is hard to read and hard to maintain
(4) The code is not well structured -- very repetitive
(5) You use "magic numbers"
(6) You don't check the user input
The same program could be written in half the lines you needed.
You asked for critique and oppinions, so here is my oppinion: the code is beginner level -- very far away from the professional level. Don't show this code in a job interview.
Sorry for being so direct, but I'm trying to be honest.
Re: Re: Is my programming good enough?
Quote:
Originally posted by Gabriel Fleseriu
(5) You use "magic numbers"
What are "magic numbers"?
:confused:
Re: Re: Re: Is my programming good enough?
Quote:
Originally posted by Doctor Luz
What are "magic numbers"?
:confused:
Magic numbers are nontrivial numbers hard coded inmiddle of the code.
Quote:
Originally posted by KevinHall:
Anyone else with ideas on what other books should Panther read?
"The C++ Programming Language", 3rd Ed., by Bjarne Stroustrup
"Exceptional C++" and "More Exceptional C++" by Herb Sutter
"Effective C++" and "More Effective C++" by Scott Meyers
I know that many people would call these books "heavy artilery" but that's what I'd go with.