Probably, but i wanted something to program and learn from so here i am =)
Probably, but i wanted something to program and learn from so here i am =)
"Anyone can aspire to greatness if they try hard enough."
- Me
Again, I'm glad you're enthusiastic. Just make sure you can pull it off. You are, after all, dealing with the grades of REAL people here. Not only is this information very important to the individual students, it is protected by various privacy laws like FERPA.
Personally, I'd rather people gained their experience writing NON-mission-critical software. But of course in the real world most software is crap whether it is critical or not, so that's just wishful thinking :-)
7. It is easier to write an incorrect program than understand a correct one.
40. There are two ways to write error-free programs; only the third one works.*
Not exactly. A truly organized programming project would not need a global header file becauseOriginally Posted by Junior89
1. The project has already been divided into modules that can be compiled individually for unit testing.
2. All the modules can also be compiled together when the program is ready to be actually used.
3. The programmers know that global headers would increase the risk of unnecessary dependancies, code bloat, and extra long compile time.
4. The programmers know that forcing all classes under one namespace ( via using namespace vomit; ) is bad.
5. The programmers know that unnecessary global variables increase the risk of violating data integrity.
Pretty much what people told you, but no the answer is not "dump it into main.cpp"
Just some quickie tinkering, but why wouldn't something like this work?
7. It is easier to write an incorrect program than understand a correct one.
40. There are two ways to write error-free programs; only the third one works.*
I suppose it would but the whole *point* was to give me something to program
I'll figure it out on my own i suppose, thanks for crushing my hopes and dreams! hahaha =P
But yeah, i'm doing it in C++ and i'm not changing my mind =D
"Anyone can aspire to greatness if they try hard enough."
- Me
I'm not trying to crush your hopes or end your C++ practice exercises. I'm just paraphrasing an old adage of "when all you've got is a hammer, everything looks like a nail".
This plays perhaps a greater meaning than you take. That is, choose the correct tool for the job. Why spend months or years developing something that is already available to you for free and debugged and easy to use with wonderful choices for output? In another way, why try to run a 100-yard-dash wearing a 200-lb backpack if you have the choice of taking it off? The lesson to be learned is likely, "don't wear the 200-lb backpack".
What you intend can be done, and you will reinvent a decades-old wheel. The practice of programming has generally centered around making our lives easier by using appropriate tools. Ignoring them is a mistake that I feel should be pointed out.
I myself undertake such exercises regularly, and I usually end up with the finding that a better solution would have been to heed such advice in the first place. That is pretty much the reason I offer it.
But along the way, you do gain valuable knowledge before you inevitably (most likely, IMO) abandon the project unfinished. So it is in this spirit that I have offered my remarks.
We may stand on the shoulders of giants, but ...
[/rant=I'll just stop now]
Do continue with your project. Keep posting questions as they arise. It has drawn the interest of a number of folks already -- we wish you good results and will endeavor to assist you as best we can.
7. It is easier to write an incorrect program than understand a correct one.
40. There are two ways to write error-free programs; only the third one works.*
I hear what you're saying, and thank you =)
And yeah, the global variable is still the problem =(
"Anyone can aspire to greatness if they try hard enough."
- Me