This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
lesander's profile picture

Kit - write less, do more

Started by lesander, 27 June 2014 - 07:13 AM
lesander #1
Posted 27 June 2014 - 09:13 AM



Hello there fellow programmers!

Today, I present to you: Kit. With this API / Library, your programs will be much easier to make and understand, you can focus more on the intention of your program, instead of figuring out how to do the small stuff.

Kit has been around for a while on GitHub: AxTo/Kit, but I felt the urge to share it with you guys on the ComputerCraft forums ;)/>

Download

Kit is being hosted on GitHub, the place where you can view and collaborate with our code. We've also made some pastebin installers to use in-game. Please note that these installers require *.github.com to be enabled on your HTTP whitelist.

Kit installer from pastebin:
pastebin get 8EmNXzQr install-kit

Getting Started

Once you've downloaded the Kit installer, run install-kit. The installer will now fetch the latest files from GitHub and write them to your computer.

The Kit library is meant to be included in your program as follows: os.loadAPI("kit")
After that line of code, you'll be able to use the functions from Kit like this: kit.myFunction()
For all functions and their documentation, see the link below.

Documentation

The comprehensive documentation of Kit can be found here: https://github.com/AxTo/Kit/blob/master/README.md


Under development

Please note that Kit is still in development, and new features are added on a regular basis. If you stumble across any bugs or problems, don't hesitate to open a new issue on GitHub: https://github.com/AxTo/Kit/issues/new



Finally, I would like to hear from you guys what you think of Kit. Also, if you've got a function in mind that really should be added to Kit, don't hesitate to comment below or open an issue or pull request on the GitHub repository.

Since this is my first topic on the forums, I'd like to know if I did everything right :3

Cheers,
Alex
Edited on 27 June 2014 - 01:51 PM
Zudo #2
Posted 27 June 2014 - 05:07 PM
Isn't "write less, do more" jQuery's slogan?
lesander #3
Posted 27 June 2014 - 05:37 PM
Yes, it is, but since Kit and jQuery both have the same goal, I just copied it ;)/>
Edited on 27 June 2014 - 03:39 PM
newcat #4
Posted 27 June 2014 - 07:33 PM
Looks neat, I am looking forward to what will be implemented in the future…
lesander #5
Posted 27 June 2014 - 09:11 PM
Version 1.1.0 is out! I've added a rednet alternative. See https://github.com/AxTo/Kit/releases/tag/1.1.0
Suzuha #6
Posted 27 June 2014 - 11:20 PM
Nice. It looks like you spent a bit of effort into this! :)/>
lesander #7
Posted 29 June 2014 - 01:05 PM
I've been working on porting the documentation on GitHub to http://axto.github.io/Kit . Let me know what you think :3
Edited on 29 June 2014 - 11:05 AM
Geforce Fan #8
Posted 09 July 2014 - 12:55 AM
Not bad for a new member. It actually seems like a useful API. I was expecting something like different kinds of print functions :P/>