Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialMark Brady
6,239 PointsIf programmers use someone else's code for text shadows etc, are they required to ask permission or give her/her credit?
Guil did it in the CSS Basics course on text shadows and I was curious about this detail.
1 Answer
Kevin Korte
28,149 PointsI would agree, it's okay in this example. If you're copying some functionality, than you may need to reconsider. They may ask you credit them in some way, in which you would follow.
But I've done things like copy the padding used on a button from another site, because I liked it's size. Or copy what particular color of green, because it's a pleasant green to look at.
A lot of these moral questions can be answered by switching shoes. If it was your text-shadow code, what would you want someone to do if they copied it. Me, I can morally say nothing, to be honest. It wouldn't bother me.
But if I wrote code that say morphed a submit button into some cool, fancy animation while it was submitting, and that transformed into a success or failure icon..and I didn't specificity put that code out there to be found, you just stumbled acrossed it, I might not be as happy if I found out you took it. However, if you emailed/tweeted me saying you loved it, and wanted to know if you could use it, 99% of the time I'd say absolutely yes, have at it, just because you asked.
Us family of developers are pretty sharing, and giving individuals, just treat us, and our code when decency and respect, and it'll be a-ok.
Mark Brady
6,239 PointsThank you guys for your thoughts and answers! That cleared it up for me.
Happy coding!
Chris Thomas
Front End Web Development Techdegree Graduate 34,909 PointsChris Thomas
Front End Web Development Techdegree Graduate 34,909 PointsI'd say for the most part, no, you don't need to at all. A lot of common techniques and code snippets are copy and pasted around the internet and in projects all the time. Now, if you took a huge chunk of code that performed something substantial then you might need to. This is especially true if you're making money off of it.
For the most part though I wouldn't worry about it. Say you're stuck on a problem. You Google it and find someone who worked it out. Feel free to use it.