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...

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.

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 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

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

Our programming teacher uses a phrase "historical events", translation from polish is mine, to refer to side effects that happened before the place in code that we recognize as a proper place to modify some certain data.

Just another funny term to say "cannot see the whole picture from here"...