Page 2 of 2

Re: Lua Chunks.com - A new website for sharing Lua code

Posted: Tue Nov 13, 2012 4:34 pm
by Nikolai Resokav
Nixola wrote:Well, if you prevent people from using custom IDs shorter than 8 characters you already have at least 78'364'164'096 chunks to be created before private ones could accidentaly become public... Or, you could tell them to use at least one symbol, it will never become public
I've changed the chunk id system to use a random alphanumeric string in addition to a standard id. This should prevent people from accessing a chunk without a direct link unless they get really lucky and guess the id or are using a brute-force method to generate ids, although both of these are probably very unlikely.

Re: Lua Chunks.com - A new website for sharing Lua code

Posted: Wed Nov 14, 2012 8:49 am
by Roland_Yonaba
Great Job. And a very simple yet effective design.
I actually submitted my first chunk.

Well, as Nixola already suggested, i'd like an account system to be able to track, list, manage my own chunks. As Github, with gists.
Or maybe that was not the original intent ?
You should submit it to the lua mailing list, you might have some nice suggestions from experienced people there, as well.
I'm keeping an eye on this.

Re: Lua Chunks.com - A new website for sharing Lua code

Posted: Wed Nov 14, 2012 8:58 am
by Nixola
Little bug - it doesn't recognize comments written in the form --[[something]], you can see it in Roland's script

Re: Lua Chunks.com - A new website for sharing Lua code

Posted: Wed Nov 14, 2012 12:32 pm
by Nikolai Resokav
Roland_Yonaba wrote:Great Job. And a very simple yet effective design.
I actually submitted my first chunk.
Thanks! Also, that chunk is awesome!
Roland_Yonaba wrote: Well, as Nixola already suggested, i'd like an account system to be able to track, list, manage my own chunks. As Github, with gists.
Or maybe that was not the original intent ?
I actually had those features in a previous version of the site. Perhaps if the site gains any popularity I will re-implement them.
Roland_Yonaba wrote: You should submit it to the lua mailing list, you might have some nice suggestions from experienced people there, as well.
I'm keeping an eye on this.
Interesting. I'll look into doing that.
Nixola wrote: Little bug - it doesn't recognize comments written in the form --[[something]], you can see it in Roland's script
This appears to happen due the start of the comment being right in front of a different character with no spacing. For example, in Roland's chunk the "--[[" characters are right in front of "for" with no spacing. This appears to be an issue with the current codemirror Lua parser that I am using. Unfortunately, I don't currently know much about how the parser works, so this might not get fixed for a while.