|
I use it as a resource, like a FAQs, and have found some useful information buried in them there hills. I have never used any of it in production code, but have used it in my own programs that I write for learning purposes as much as anything else.
I find CP much more useful and informative than other sites that attempt to do the same thing. The DBs are great and I usually enjoy my visits to CP, because I usually learn something when I am here.
P.S. Chris I would still like to see a pure C++ forum, instead of people (C++/CLI) telling questioners to post their C++ question to the ‘Visual C++’ forum. People on both forums should be able to answer the questions, but a pure language forum would probably eliminate that problem.
INTP
"Program testing can be used to show the presence of bugs, but never to show their absence."Edsger Dijkstra
|
|
|
|
|
I tend to use code project to get an idea of how something could be done... then implement it myself, as most (NOT all) of the projects submitted have numerous bugs or problems or are not "production quality" code.
There are exceptions, of course, but for the most part... the projects leave a lot to be desired, therefore I get the big picture and move towards a more stable and robust version of my own.
|
|
|
|
|
When I've posted code on CP or newsgroups, it's been for one of several reasons:
1. I had a problem, researched it and couldn't find the answer. When I belatedly solve the problem, I want to share the solution so other fellow programmers don't have to waste their time they same way I did.
2. I had an idea that I liked, and I wanted others to know about it and start using it.
3. Proping up my fragile ego.
Really, it's pay back for all the times when I found an answer to a problem, or an elegant technique by searching CP, Groups or the web. If I post something here, I truely expect it to be used, source code and all, with or without attribution.
|
|
|
|
|
I agree, I post because reading other posts have helped me. I have found many times over the years that I do not necessarily agree with how the code was written, but the ideas behind them I can always use.
INTP
"Program testing can be used to show the presence of bugs, but never to show their absence."Edsger Dijkstra
|
|
|
|
|
I steal it, use it uncredited, and then turn a profit ... j/k
File Not Found
|
|
|
|
|
|
Ennis Ray Lynch, Jr. wrote: I steal it, use it uncredited, and then turn a profit ... j/k
It's usual , some admit like u and some don't admit
|
|
|
|
|
I mostly see the code and the given explanation just to get some ideas and learn something new. But including the source code files and dlls in my project is something that I won't do definitely. Specially, when somebody is developing commercial softwares which should be made error and risk free. It's always informative to learn how somebody implements something. Sometimes, one has to stuggle alot in solving simple problems and when one sees the way how somebody else implemented it, he says "Oh, why I didn't think in this way?"
Atta ul Qayyum Arif
|
|
|
|
|
Some people steal CP's code.
Trinity: Neo... nobody has ever done this before.
Neo: That's why it's going to work.
|
|
|
|
|
That is a heinous crime and most disgusting thing on earth. What do you say?
|
|
|
|
|
Vasudevan Deepak Kumar wrote: That is a heinous crime and most disgusting thing on earth. What do you say?
I say it's totally wrong, and whoever is responsible should be heavily fined.
Trinity: Neo... nobody has ever done this before.
Neo: That's why it's going to work.
|
|
|
|
|
MatrixCoder wrote: I say it's totally wrong, and whoever is responsible should be heavily fined.
The problem is that it usually is up to the author to prove that the code was indeed copied and then the author has to take whom ever to court to seek damages. This is usually a very costly action as lawyers are no cheap, you are not guaranteed to win.
John
|
|
|
|
|
I guess you could say that code project is a smaller version of open source projects... and people wonder why open source is not "catching on" like they thought it would...
|
|
|
|
|
What goes around. comes around.
People that "steal" code, are not real coders, or take short cuts. They will eventually get into a of problems later, one way or the other
Real coders look, learn, and progress, people that copy are coders for a day and forgotten tomorrow (because they cannot maintain the code they copied
|
|
|
|
|
I'll occasionally include a whole file, but no matter what I do, I always review the code for DBCS/Unicode correctness, and move hard-coded strings into a string table.
|
|
|
|
|
We all put code here to help each other. How each of us uses the code is up to that person. But I also feel that each of us would like to know how our code is used.
Started out with nothing and still have most of it left!
|
|
|
|
|
Why in a multiple choice question is the first answer worded so it's mutually exclusive?
|
|
|
|
|
Exactly what I was wondering about, too.
company, work and everything else @ netis
|
|
|
|
|
Ed.Poore wrote: Why in a multiple choice question is the first answer worded so it's mutually exclusive?
I think you can use one article just for learning and guidence, paste snippets from another, use whole files from a third, and build a fourth into a utility library.
|
|
|
|
|
I rewrite all of the code or use it as guidance. Basically, I usually don't trust code to perform well or to have bugs. It pays off, because when problems arise, I immediately have someone to point fingers to — myself.
One of the things I've rewritten (partially) is the BitStreamReader/Writer class. In fact, the code was completely different that I might say it's completely unrelated other than the purpose. I might post the code soon (and thus write my first article after a couple of years since I signed up on The code Project ) and have people review my work.
ROFLOLMFAO
|
|
|
|
|
For small projects I think this is fine but I don't think this works well on code samples that have a lot of lines. As I certainly would not want to rewrite Chris Maunders' Grid Control...
John
|
|
|
|
|
I ported much of Chris's code to the VCF's TableControl, and it was a *lot* of work. Plus, I had to change a lot use our Model/View design. But it sure made for a great starting point.
|
|
|
|
|
Jim Crafton wrote: I ported much of Chris's code to the VCF's TableControl, and it was a *lot* of work. Plus, I had to change a lot use our Model/View design. But it sure made for a great starting point.
You did?
I think I will be checking out VCF very soon..
John
|
|
|
|
|
Excellent!
|
|
|
|
|
I generally put code from here or other places in a library (most likely a dll) because if the code passed my brief evaluation and was good enough for one project it probably will be useful for current and future projects. Once it is in the library I add it my source control pretty much unmodified but then I usually make modifications to the code to fix bugs and to remove duplicate functionality as a lot of projects ship with their own utility classes and some of them I have the same or similar classes already in my library. After that I add some test cases/examples to my test program that is part of the library project. If I am behind a deadline the last two steps are usually delayed until I get my project out...
John
|
|
|
|