Code Exchange - Is there a default license?

There’s lots of great examples in the Code Exchange, but something’s unclear to me. I’m not sure of the usage rights. Is the code open source? Does it default to the MIT license if no license is specified?

I’m thinking about mentioning some of the examples in my book, possibly improving the code or combining examples, but I don’t want to reprint the code if that’s not cool with the authors. [import]uid: 13264 topic_id: 7223 reply_id: 307223[/import]

Hey that is not the way to go if oyu are doing a commercial project. Come up with your own examples. [import]uid: 5712 topic_id: 7223 reply_id: 25403[/import]

I intend to create my own examples. That’s exactly what I did with my previous textbook, but the comic book example is really good and I’m wondering if it’s open source. If it is, maybe I can add to it. There were some bugs and I think I might be able to fix them… and I can add new features too.

If commercial projects couldn’t be built upon open source, this website wouldn’t exist. [import]uid: 13264 topic_id: 7223 reply_id: 25410[/import]

Hey that is not the way to go if oyu are doing a commercial project. Come up with your own examples.

Although I agree that when writing learning materials (eg. a textbook) you ought to write up new examples, that’s mostly a politeness thing. I don’t know what the official policy is, but my assumption is that a resource like Code Exchange is for anyone to use that code in any way they feel like. I certainly view my own contributions as basically public domain; I’d be miffed if someone went around claiming they wrote a function I posted, but otherwise I don’t expect to receive credit for a couple lines of code buried in the middle of someone’s project.

hm, I guess my view is that all my contributions to Code Exchange are MIT licensed. So if there isn’t already an official policy, yeah I agree with that suggestion. [import]uid: 12108 topic_id: 7223 reply_id: 25419[/import]

I am not sure which license covers stuff in the Code exchange, that doesn’t have a license attached to it, but if he wants to make money with his book, he should not take freely available stuff and commercialize it.

[import]uid: 5712 topic_id: 7223 reply_id: 25455[/import]

I personally think if you going to use someone else`s code
give them credit for it since you did not write them. But I
am always thankful to those who write for us to learn and those
who kindly help us out with great examples like code exchange.
So that being said if you found some bugs on some codes and
are able to fix them and helps us out that would be great.

And Jhocking thanks for your contribution you have helped me
in previous post and your codes and good luck Photics ! [import]uid: 30314 topic_id: 7223 reply_id: 25484[/import]

>> but if he wants to make
>> money with his book, he
>> should not take freely
>> available stuff and
>> commercialize it.

This is so ironic to me.

Once again… Lua is open source. By creating and selling apps with Corona, you are taking open source work and applying it commercially.

Two… if I can’t use the code in a book, then why should it be used in an app? What’s the difference of mentioning the Comic Book code in a book, and selling a comic book on the iTunes App Store with the example code?

Three… I’m asking what the license is. If code examples are not for commercial use, I can ignore them. [import]uid: 13264 topic_id: 7223 reply_id: 25529[/import]

Photics, a perfect example:

We open sourced and MIT licensed our Ghost vs Monsters code. There are four apps out there that make use of the source code. But the difference is that the apps use different graphics. So yes, you are correct in your statement. You can do whatever you want with the open source code. The problem would have been if they would have sold the game “as is”.

The other thing you can do, most of the source in our code repository have an owner. Feel free to contact them directly and tell them what you are doing.

I know the Director class is open sourced and people are using in paid apps. And no attribution is given. So I don’t think you would have a problem as long as you can reach out to the authors ahead of time, and give proper credit where appropriate.

Let me know what else we can help you with to get your book going.

Carlos [import]uid: 24 topic_id: 7223 reply_id: 25593[/import]

Hi Carlos,

I’m having to rethink how I approach the book. I haven’t completely given up on it, but yesterday it got a lot harder. Getting the legal issues straight is tricky.

  1. I think I’ll have to make my own examples if I continue work on this book. Even if it is permissible to use open source code, it makes some members of the community angry. The main example I was looking at was the Comic Book. I could just skip that or maybe make my own system. People don’t just want a rehash of what’s online already, so this can actually make the book stronger.

  2. Most of my iOS games were made with GameSalad, but I can’t just reverse engineer GameSalad. That’s against their license. So… I have to write the book, and port my games, in more general gaming terms. I can’t just create a cheat sheet of GameSalad behaviors in Lua code.

So basically, I can’t really cite the examples here and I have to be careful how I use my previous examples. It’s not impossible, but it certainly increases the difficulty. Heh, and I’m already struggling with the code.

I’m working on two main projects at once…

The Textbook / Learning About Corona and Lua
http://photics.com/learning-about-corona-and-lua

BOT
http://photics.com/bot-game-design-and-progress-reports

These are both extremely ambitious projects. When I get frustrated with one project, I jump to the other. Today, I’m working on BOT.

For tomorrow, I’m going to post a Corona tutorial at my website. That will help me gauge the difficulty of the project. If I can at least write one helpful article about Corona, then I can build on that. [import]uid: 13264 topic_id: 7223 reply_id: 25689[/import]