|
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
|
|
|
|
|
I very rarely use ANY code from articles here on CP, I feel that it would be stealing and I like to write my own code anyways. I usually like to look through the code to see how the implementation is done. When I am working on a project of my own I will sometimes look through some articles dealing with the same or similar problem and compare it to my implementation.
█▒▒▒▒▒██▒█▒██
█▒█████▒▒▒▒▒█
█▒██████▒█▒██
█▒█████▒▒▒▒▒█
█▒▒▒▒▒██▒█▒██
|
|
|
|
|
Captain See Sharp wrote: I feel that it would be stealing
Just curious as to why you think taking code verbatim is close to stealing while taking the concepts and ideas isn't?
regards,
Paul Watson
Ireland & South Africa
Shog9 wrote: And with that, Paul closed his browser, sipped his herbal tea, fixed the flower in his hair, and smiled brightly at the multitude of cute, furry animals flocking around the grassy hillside where he sat coding Ruby on his Mac...
|
|
|
|
|
If there is no difference then we're all in for a heap of trouble when Microsoft comes after all of us for "robbing the concepts and ideas" from MSDN. ![Poke tongue | ;-P](https://www.codeproject.com/script/Forums/Images/smiley_tongue.gif)
|
|
|
|
|
Big software companies already ban their programmers from looking at the code of other companies when implementing competing software to avoid lawsuits.
Plus their are patents and all that guff.
Sad state of affairs.
regards,
Paul Watson
Ireland & South Africa
Shog9 wrote: And with that, Paul closed his browser, sipped his herbal tea, fixed the flower in his hair, and smiled brightly at the multitude of cute, furry animals flocking around the grassy hillside where he sat coding Ruby on his Mac...
|
|
|
|
|
I don't personally see it as stealing unless you don't give credit. Typically, I use the code here for guidance. Often, read into it far enough to say, "ah I use the blue widget to do this task". And from there I strike off on my own. I learn much more that way.
|
|
|
|
|
Captain See Sharp wrote: I feel that it would be stealing
What if someone use the code you provided? Do you think they are stealing your work? Strange!
You decided to show your work and help others by letting them use ityourself, no one forced you
//This is not a signature
while (I'm_alive) {
cout<<"I Love Programming";
}
|
|
|
|
|
Hamed Mosavi wrote: What if someone use the code you provided? Do you think they are stealing your work? Strange!
I wouldn't want people to use my code in a commercial application unless I say I don't mind. If I post an educational article demonstrating how to do something then I don't mind at all. However if I post a complete application I wouldn't want people ripping off my code or documentation. I don't mind people using my ideas though.
I like people to look at my code and play with it and if someone wants to use it then I don't mind. However if they plan on making money from it then I might not like that. I am aware that people can and probably will rip off my code verbatim but thats the price to pay for making my source code public, its no big deal really.
█▒▒▒▒▒██▒█▒██
█▒█████▒▒▒▒▒█
█▒██████▒█▒██
█▒█████▒▒▒▒▒█
█▒▒▒▒▒██▒█▒██
|
|
|
|
|
Your reply begs the qustion:
Why do you think the author published the code to CodeProject to begin with, if not for others to use?
Much as I like to roll-my-own, there's a lot to be said for sharing. That is how we, as a species, are able to progress. Sharing and passing down information. A true gestalt.
Balboos
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein
|
|
|
|
|
Balboos wrote: Much as I like to roll-my-own, there's a lot to be said for sharing.
I don't like to just use other peoples code because I too like to "roll-my-own". I like to learn from existing code and attempt to create my own implementation hence the title "For learning purposes".
█▒▒▒▒▒██▒█▒██
█▒█████▒▒▒▒▒█
█▒██████▒█▒██
█▒█████▒▒▒▒▒█
█▒▒▒▒▒██▒█▒██
|
|
|
|
|
Captain See Sharp wrote: I feel that it would be stealing and I like to write my own code anyways
I don't think you can really qualify using source code that has been deliberately published without a license as "stealing". But I think it's nice to contact the author if you're going to make extensive use of their code.
I'm currently writing a control which combines features from two articles here. I thought there was going to be enough of the original code left for it to count as a sort of joint venture, so the first thing I did was drop the authors a line to let them know what I'm doing. Although I don't think I need to have their permission, I do think it's a common courtesy, and while some authors will just say "go ahead and have fun", others are interested in knowing how I've adapted their code, which can lead to an informative dialogue.
Aside from that, though, I've mostly used CP to see how other developers went about solving problems I'm facing. I find I usually need to code my own solutions, as I never find exactly what I want!
|
|
|
|
|
Lou Zhu ,Ni Tai You Cai Le :P
just copy and do some re-write job is good enough ~
everybody here to share their expriences, use their code ,in another word, is the way to show our respect for their hard working and their genius.:->
Today is a gift, that's why we call it present
|
|
|
|
|
If it's a small amount of code, I'll usually just copy and paste it (giving proper attribution to its source and creator). If it's a substantial amount of code (such as a custom control), I'll usually copy the source files into my project. I don't usually just reference a library straight off the Web, in case there are bugs to fix in that code...
|
|
|
|
|
Hi
I agree with you. It depends on the code
What to do with that.
|
|
|
|