Giter Site home page Giter Site logo

core-deprecated's Introduction

Lua Core Bundle (WIP)

This repository contains a minimal set of the first needed lua libraries which I use in my projects as a skeleton.

Attention! I plan to cover every library with documentation, but since my luapi is still quite raw, not everything is documented yet and visually it doesn't look as good as I'd like it to be. If you fork me and help with something, I'd be incredibly grateful!

Attention (2)! Keep in mind that luapi curently in hard development and from time to time I can totally break everything! That's a normal behavior until version 1.0 will be officialy released.

I don't use libraries like busted or lpeg because I don't like to unnecessarily complicate things. I'm 100% happy with the default asserts and patterns, and I hope you are too, but if not - no one forbids you to add them.

Target versions are latest for lua (5.4) and luajit (2.1).

Target OS: Linux. I do not support proprietary software but theoretically on Windows and Mac everything should work fine too.

Each file in this project is distributed under the free MIT license.

The list of libraries

Some of the libraries were not written by me and you can go to the repository of their author, by clicking on its name, but if the author is not listed, then they are mine and this repository is native to them.

  • luapi - documentation (WIP)
  • öbject - simple OOP
  • asserts - multiple assertions
  • lume - a set of various goodies by rxi
  • inspect - variable inspector by kikito
  • ansicolors - multicolor terminal output by hoelzro and kikito

Code style

Follow these rules to make your code enjoyable to work with:

  • unambiguity and brevity: the code must be understandable even for drunken child
  • each module must be able to work separately from the application
  • maximum line length = 80 characters
  • use two spaces as indents
  • filenames in snake_case
  • class names in CamelCase, all other variables in snake_case
  • prefer single quotes in the code and double quotes in the text to read
  • you must not have any CONSTANT because theoretically every module is a constant and in this case, half of the code should be written in caps, but practically lua is a very flexible language and we can never be 100% sure of the constancy of anything
  • always check the types of data you get and cover the code with basic tests (don't worry about a lot of asserts creating an unnecessary load; the assert function itself can easily be replaced by a pacifier function in production)

core-deprecated's People

Contributors

lua-rocks avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.