Page 1 of 2
Lua Chunks.com - A new website for sharing Lua code
Posted: Mon Nov 12, 2012 10:07 pm
by Nikolai Resokav
Lua Chunks.com is a website I have been working on in my spare time to learn more about PHP. It's primary function is to serve as a pastebin-like website but exclusively for Lua, with syntax highlighting for different kinds of Lua (like Lua written for LOVE). Currently, Lua Chunks supports the entire LOVE api, as well as several Garry's Mod libraries. I plan on adding support for more apis/libraries in the future.
url:
http://luachunks.com/
Let me know what you guys think and if you have any suggestions or encounter any errors feel free to PM me or make a post in this thread.
Re: Lua Chunks.com - A new website for sharing Lua code
Posted: Mon Nov 12, 2012 10:10 pm
by Nixola
I'd like an account system, but it's quite difficult to do, isn't it?
It's quite nice, anyway, I like Notepad++-like syntax color
First Lua chunk!
Re: Lua Chunks.com - A new website for sharing Lua code
Posted: Mon Nov 12, 2012 10:13 pm
by Nikolai Resokav
Nixola wrote:I'd like an account system, but it's quite difficult to do, isn't it?
First Lua chunk!
I actually made an account system in a previous version, but I felt like I was over-complicating things so I got rid of it.
Re: Lua Chunks.com - A new website for sharing Lua code
Posted: Mon Nov 12, 2012 10:14 pm
by Nixola
I'd like to be able to track my chunks easily, to access a list with a single click, but it's really useful like this too
Re: Lua Chunks.com - A new website for sharing Lua code
Posted: Mon Nov 12, 2012 10:19 pm
by Nikolai Resokav
Nixola wrote:I'd like to be able to track my chunks easily, to access a list with a single click, but it's really useful like this too
I might re-implement the account system in the future depending on how many people actually end up using the site.
Re: Lua Chunks.com - A new website for sharing Lua code
Posted: Mon Nov 12, 2012 10:21 pm
by Nixola
I also thought about having a button to read a random Lua chunk and the possibility to upload a private chunk, at least the first one shouldn't be hard to do, right?
Re: Lua Chunks.com - A new website for sharing Lua code
Posted: Mon Nov 12, 2012 10:37 pm
by Nikolai Resokav
Nixola wrote:I also thought about having a button to read a random Lua chunk and the possibility to upload a private chunk, at least the first one shouldn't be hard to do, right?
Neither would be too hard to implement. The only issue with having a private chunk is the current chunk id system. Chunk ids are currently really easy to guess so I'd likely have to implement a password system when trying to access a private chunk. I personally think it would be a little frustrating having to enter a password in order to access a private chunk.
Re: Lua Chunks.com - A new website for sharing Lua code
Posted: Mon Nov 12, 2012 10:39 pm
by Nixola
Isn't it possible to use strings as an ID? A public chunk could have both a numeric and a string ID while a private one may only have a hard-to-guess string ID
Re: Lua Chunks.com - A new website for sharing Lua code
Posted: Mon Nov 12, 2012 10:45 pm
by Nikolai Resokav
Nixola wrote:Isn't it possible to use strings as an ID? A public chunk could have both a numeric and a string ID while a private one may only have a hard-to-guess string ID
Chunk id's are strings already. Currently, chunk id's are created by converting an auto incrementing database id to base 36. This means that they will eventually be alphanumeric once more chunks have been created.
Re: Lua Chunks.com - A new website for sharing Lua code
Posted: Mon Nov 12, 2012 10:48 pm
by Nixola
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