4

If you are stuck when making an app and someone answers your question. Are you allowed to use their code in whole or in part.

How does the legalities work?

What if you try to contact the poster and they have no chat or email or way of contacting them and the post they put is years old?

11
  • 5
    Just so long as you give me my cut, the rest doesn't matter.
    – Hot Licks
    Commented Nov 14, 2014 at 3:20
  • 5
    Better question: what if you write code, and you find out that someone else wrote that exact code before you. Can you use it?
    – MendyK
    Commented Nov 14, 2014 at 3:33
  • 6
    I believe section 3 of the TOS is the one you are interested in.
    – Jason C
    Commented Nov 14, 2014 at 4:07
  • 1
    Related cross-meta post: meta.stackexchange.com/questions/90538/…
    – Andrew T.
    Commented Nov 14, 2014 at 4:11
  • By asking this question, you may be trying to do the right thing. But I would love to see -- for every 10 questions like this one -- a meta question about how to reward, in cash, an SO poster with no email whose answer saved some company a large amount of time and/or money or saved their project. Google couldn't find a good match for "how can i reward someone in cash for a stack overflow answer?
    – Paul
    Commented Nov 14, 2014 at 4:50
  • 1
  • Im a single person who has now been coding in ios for about a year trying to learn how to make apps and make some money doing it. I always try to do the right thing if I can so I asked this question What does attribution is required mean? does that mean if I use a piece of code I just need to note that in my source code? Sorry Im not very good at legal stuff
    – Travis
    Commented Nov 14, 2014 at 5:45
  • @Paul Google couldn't find a good match because the answer, "find a way to contact the person and offer them cash," might be a bit too obvious to warrant any discussions. There are a few discussions about offering cash incentives on SE sites on various metas; I can't dig them up right now, but they were very poorly received (for many good reasons).
    – Jason C
    Commented Nov 14, 2014 at 8:42
  • @JasonC Yes, I'm aware of a few of those. I tried to turn my comment into a meta-SO question a few hours ago, and cited two of the other meta questions regarding money as anti-examples. I was more interested in monetary "Random Acts of Kindness" (wow, you saved us, here's $1,000 and a nice letter from the CEO/VP) associated with SO Q&A rather than "Hey, I still need an answer, how about $20" (which is covered explicitly in another meta as still not being enough for a true expert but instead inviting strife and poor quality guesses).
    – Paul
    Commented Nov 14, 2014 at 8:52
  • @JoshCaswell, now I really want to see a bot that scrapes code from SO and uses it to generate apps. Commented Dec 18, 2015 at 1:47
  • 5
    I think this post answers this: If I use SO code on my website, how should I give attribution?
    – zcoop98
    Commented Jul 21, 2022 at 20:54

0

Browse other questions tagged .