Jump to content

Public appeal: post your complete sources

- - - - -

  • Please log in to reply
19 replies to this topic

#1
ArekBulski

ArekBulski

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,376 posts
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...

#2
Guest_Jordan_*

Guest_Jordan_*
  • Guests
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

#3
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
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.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#4
barkermn01

barkermn01

    Newbie

  • Members
  • PipPip
  • 15 posts
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.

#5
photographers

photographers

    Newbie

  • Members
  • Pip
  • 1 posts
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?
"

#6
ArekBulski

ArekBulski

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,376 posts
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.

#7
gokuajmes

gokuajmes

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 518 posts

Jordan said:

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.
Thats superb thats what i like peope to do

#8
progcomputeach

progcomputeach

    Learning Programmer

  • Members
  • PipPipPip
  • 45 posts
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

#9
tjcool

tjcool

    Newbie

  • Members
  • PipPip
  • 18 posts
Agree........

#10
progcomputeach

progcomputeach

    Learning Programmer

  • Members
  • PipPipPip
  • 45 posts
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.

Edited by Roger, 04 September 2010 - 09:00 AM.


#11
ArekBulski

ArekBulski

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,376 posts

progcomputeach said:

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

#12
mpldwk

mpldwk

    Newbie

  • Members
  • Pip
  • 2 posts
keep Share :thumbup1::thumbup1:




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users