My public appeal to CodeCall members: Please post your complete source codes.
After being a CodeCall member for days and weeks now, I realized that something is wrong. Our members are asking for help with fixing their code but they don't get exactly adequate code analysis.
The reason seems obvious to me: there is *no runnable code* to make any code analysis. For example, someone is asking why his code is not working. He also posts a block of code along. What follows?
1. Proofreading the posted code: not many people will bother to do that. Reason is so simple, it is a hard work. Especially if code is spaghetti-like.
2. Running and debugging your code: this is the *best method* to do code analysis. But it is also not possible, because... no one posts their *full runnable* code.
3. Copying and pasting your code to a new solution: anyone thinking that this really takes place is just a lame. It won't happen, thus no one will see how your code is working. "Looking at code" is not enough, it needs to be "seen in action" if you catch my drift.
Let me summarize. If you are interested in us solving your problems, then post full, compilable and runnable source codes. Also it's good to mention what IDE you are using for it.
Now, blame on me. Tell me it does not happen and everyone are happy with their responses...
proudly presenting my personal website and game website: F1Simulation. a thrilling Managed DirectX racing game... also my Ask Me
look at my tutorials about cropping images and Mono: bundling Mono with programs and lambda expressions
I like the idea and full post code helps. I suggest you post the problematic code block in code tags and then attach the full project. I agree, it helps to be able to run the entire project.
Thread Stuck
Agreed. With certain languages, this will involve posting multiple files. For example, Delphi has a .dfm file(the form layout) for forms that is just as necessary as the .pas file. Project files for IDE's/compilers can also be crucial.
I think one of the things that confuses new programmers is the variety of files that may actually be necessary for a project to be compiled. If you don't know what you need to include, ask. We generally know.
I hear that
9 out of 10 times every thing in your source directory - E.G where you save you main solution Delphi and any Visual project if your project is big go into each project in the directory check for a build folder and delete that,
All'so don't forget to state any plugin's your using like ADO.NET, MySQL Plugin for .Net, just so we know what you using if we have it and we might need to learn it a little to help you.
I accept with information :"The reason seems obvious to me: there is *no runnable code* to make any code analysis. For example, someone is asking why his code is not working. He also posts a block of code along. What follows?
"
I admit, I was pretty dissapointed in how some people post their code (minor portions of it). I could have said that with less emotions. But oh well... You see how it is.
proudly presenting my personal website and game website: F1Simulation. a thrilling Managed DirectX racing game... also my Ask Me
look at my tutorials about cropping images and Mono: bundling Mono with programs and lambda expressions
I agree. If you only include some of the code you do not get the whole picture.It could have been something earlier in a previous section of code which we havent seen. The problem may arise if you write a windows forms application where some of the cod eis not included though...
Good thread ArekBulski
Agree........
Yes and it also helps if you describe what you have done so far and explain clearly what it is try to do-bullet points or numbered points are useful.
Last edited by Roger; 09-04-2010 at 10:00 AM.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks