{"id":13723394,"url":"https://github.com/kikito/lua_missions","last_synced_at":"2025-04-05T01:09:14.699Z","repository":{"id":1536292,"uuid":"1834518","full_name":"kikito/lua_missions","owner":"kikito","description":"Lua Koans, minus the Zen stuff","archived":false,"fork":false,"pushed_at":"2024-06-08T17:54:21.000Z","size":112,"stargazers_count":386,"open_issues_count":4,"forks_count":78,"subscribers_count":16,"default_branch":"master","last_synced_at":"2025-03-29T00:11:39.658Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://github.com/kikito/lua_missions","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kikito.png","metadata":{"files":{"readme":"README.rdoc","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2011-06-01T22:38:49.000Z","updated_at":"2025-02-26T01:13:00.000Z","dependencies_parsed_at":"2024-12-28T17:11:06.305Z","dependency_job_id":null,"html_url":"https://github.com/kikito/lua_missions","commit_stats":{"total_commits":87,"total_committers":11,"mean_commits":7.909090909090909,"dds":"0.27586206896551724","last_synced_commit":"8b76476de8ae60e53d611dddec0dfc48955619e8"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kikito%2Flua_missions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kikito%2Flua_missions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kikito%2Flua_missions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kikito%2Flua_missions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kikito","download_url":"https://codeload.github.com/kikito/lua_missions/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247271532,"owners_count":20911587,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T01:01:40.592Z","updated_at":"2025-04-05T01:09:14.663Z","avatar_url":"https://github.com/kikito.png","language":"Lua","funding_links":[],"categories":["Lua","Languages","Resources"],"sub_categories":["Other Languages","Tutorials","Guides / Tutorials"],"readme":"= Lua Missions\n\n{\u003cimg src=\"https://travis-ci.org/kikito/lua_missions.svg?branch=master\" alt=\"Build Status\" /\u003e}[https://travis-ci.org/kikito/lua_missions]\n\nThe Lua Missions help you learn Lua.\nThe goal is to learn the Lua language, syntax, structure, and some common\nfunctions and libraries, through failing tests.\n\n== The Structure\n\nThe lessons are broken out into areas by file, strings are covered in strings.lua,\nfunctions are covered in functions.lua, etc. They are presented in order in the\nmissions.lua file.\n\nEach mission builds up your knowledge of Lua and builds upon itself.  It will stop at\nthe first place you need to correct.\n\nSome missions simply need to have the correct answer substituted for an incorrect one.\nSome, however, require you to supply your own answer.  If you see the variable +__+ (a\ndouble underscore) listed, it is a hint to you to supply your own code in order to\nmake it work correctly.\n\n== Installing Lua\n\nIf you do not have Lua setup, please visit http://www.lua.org/download.html for\noperating specific instructions. To check the installations simply type:\n\n*nix platforms from any terminal window:\n\n   [~] $ lua -v\n\nWindows from the command prompt (cmd.exe)\n\n   c:\\lua -v\n\nThe output should include the version of Lua that is in your path. These missions are tested\nin Lua 5.1.x, 5.2.x, Lua 5.3.x, Lua 5.4.x and LuaJIT.\n\n== The Missions\n\nIn order to run the tests, you must execute the missions.lua file.\n\n*nix platforms, from the lua_missions/missions directory:\n\n    [lua_missions] $ cd missions\n    [lua_missions/missions] $ lua missions.lua\n\nWindows is the same thing\n\n    c:\\\u003e cd lua_missions\\missions\n    c:\\lua_missions\\missions\\\u003e lua missions.lua\n\n=== Red, Green, Refactor\n\nIn test-driven development the process has always been, red, green, refactor.  Write a\nfailing test and run it (red), make the test pass (green), then refactor it (that is\nlook at the code and see if you can make it any better.  In this case you will need\nto run the mission and see it fail (red), make the test pass (green), then take a\nmoment and reflect upon the test and improve the code to better communicate its intent (refactor).\n\nThe very first time you run it you will see the following output:\n\n    [lua_missions] $ cd missions\n    [lua_missions/missions] $ lua missions.lua\n    (in /Users/person/dev/lua_missions)\n\n    F\n\n    *** Mission status ***\n\n    asserts...........................................[Incomplete]\n    test_assert: [fail]\n    Assertion failed: Expected [false] to be [true]\n    The error happened here:\n      asserts.lua:3: in function \u003casserts.lua:2\u003e\n\n\n\nIt is telling you where to look for the first solution:\n\n    Assertion failed: Expected [false] to be [true]\n    The error happened here:\n      asserts.lua:3: in function \u003casserts.lua:2\u003e\n\nWe then open up the asserts.lua file and look at the first test:\n\n    function test_assert()\n      assert_true(false) -- this should be true\n    end\n\nWe then change the +false+ to +true+ and run the test again. Ignore everything except\nthe method name (+test_assert+) and the parts inside the method (everything\nbefore the +end+).\n\nIn this case the goal is for you to see that if you pass a value to the +assert+\nmethod, it will either ensure it is +true+ and continue on, or fail if in fact\nthe statement is +false+.\n\n== Inspiration\n\nThis is heavily inspired by the Ruby Koans project:\n\nhttp://rubykoans.com/\n\nGo there and check it out, in case you are curious about ruby. Ruby is a great language and the Ruby Koans are a great way to learn it.\n\n\n== Other Resources\n\nThe Lua Language               ::  http://www.lua.org\nProgramming in lua             ::  http://www.lua.org/pil\nLua-users wiki                 ::  http://lua-users.org/\n\n= Other stuff\n\nAuthor         :: Enrique García \u003ckikito - at - gmail - dot - com\u003e\nSource \u0026 Issues:: http://www.github.com/kikito/lua_missions\nRequires       :: Lua \u003e= 5.1 (optional: Rake for building up the files from source)\n\n= License\n\nhttp://i.creativecommons.org/l/by-nc-sa/3.0/88x31.png\n\nlua_missions is released under a Creative Commons,\nAttribution-NonCommercial-ShareAlike, Version 3.0\n(http://creativecommons.org/licenses/by-nc-sa/3.0/) License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkikito%2Flua_missions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkikito%2Flua_missions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkikito%2Flua_missions/lists"}