Changes

Jump to navigation Jump to search
1,445 bytes added ,  11:32, 27 July 2008
Line 24: Line 24:  
You ask why there is so many files, the answer is that my code is modular and easy to work with. And please, don't edit my user page, put it on the talk page instead ;). Also don't forget to sign when writing on my talk page.
 
You ask why there is so many files, the answer is that my code is modular and easy to work with. And please, don't edit my user page, put it on the talk page instead ;). Also don't forget to sign when writing on my talk page.
 
I think that this version is much better to work on since it's easy to edit and has well thought out algorithms instead of slowly aggregated code that happens to work. I think that if we work on it, we can get it up to the point of the old one within this week.--[[User:Henke37|henke37]] 23:42, 24 July 2008 (CEST)
 
I think that this version is much better to work on since it's easy to edit and has well thought out algorithms instead of slowly aggregated code that happens to work. I think that if we work on it, we can get it up to the point of the old one within this week.--[[User:Henke37|henke37]] 23:42, 24 July 2008 (CEST)
 +
 +
I chose c++ because I like how it works with object and due to it's extremely powerful standard template library (good luck finding a binary tree that can mostly be treated like an array indexed by text strings that is easy to use in C).
 +
As I stated before, I use more than one file because I want maintainability and easy access. Keeping too much in a single file (Yes, I am looking at you) just makes the file hard to use. It also helps the build time staying low since it only needs to recompile the changed stuff.
 +
 +
For your question about classes, I would recommend a C++ book or tutorial, but here it is in brief. Think of a C++ class as of a C struct. That's pretty much what they are, glorified structs. As you probably have noticed, these structs can have associated methods. It's pretty much the same thing as adding the struct name before the function name in C, just a shorter syntax. Of course classes got things like constructors and inheritance, but that's just lacing on the top, it's still glorified structs.
 +
 +
About your request to rewrite it in C, I have only one question, why? Why do you feel that we should throw away the existing code just to redo it in c? The cleaned up design would not change, it would just be slightly syntasticaly different. Again, I am happy to be the bridge from C to C++ for you. I mean, you wouldn't be the first person I help with programing.--[[User:Henke37|henke37]] 11:32, 27 July 2008 (CEST)
351

edits

Navigation menu