Jump to content

Help:Lua: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Reverted 1 edit by 2601:201:4300:DD00:1D90:135A:4F67:EF76 (talk): Rv blanking (TW)
Replace usage of Module:Bananas
Line 25: Line 25:


;Sample unit tests for the "Hello world" modules:
;Sample unit tests for the "Hello world" modules:
* [[Module:Bananas/testcases]] – [[Module talk:Bananas/testcases|Results]]
* [[Module:Example/testcases]] – [[Module talk:Example/testcases|Results]]
* [[Module:BananasArgs/testcases]] – [[Module talk:BananasArgs/testcases|Results]]
* [[Module:BananasArgs/testcases]] – [[Module talk:BananasArgs/testcases|Results]]



Revision as of 20:33, 21 February 2020

  • Help:Lua for beginners
  • Help:Lua debugging – about debugging Lua modules
  • Wikipedia:Lua style guide – standards to improve the readability of code through consistency
  • Module:Sandbox provides a pseudo-namespace for experimenting with Lua modules

"Hello world"

  • Module:Bananas: The simplest possible script: say "hello world". Providing a single function with no arguments.
  • Module:BananasArgs: Demonstrates how to access and use parameters.

Documentation

How-to guides

Debugging modules

  • Module:SimpleDebug - It allows to collect and view the values of one or several variables and/or customized labels of several points of a lua program.

Testing modules

Sample unit tests for the "Hello world" modules

Profiling modules and functions

  • Module:Timing – module to do some simple probing of timing issues, mostly to spot and fix load problems

Patterns

Wikipedia resources