Bad Code:
function f(sArg1 , ... ) assert(type(sArg1)== "string", "me wants a strign!") if sArg1 then local nResult = 1 --do some more stuff return nResult end end if f ( "a" ) ==1 then print"asd" end
Good Code:
function f(name, ...) checkArg(1, name, "string") if name then local result = 1 -- We extrapolate the b-spline of the non-euclidean space to -- determine the fraction of potential failures encountered. return result end end if f("a") == 1 then print("asd") end
Blocks | Computers | Computer Case - Server Rack - Microcontrollers |
---|---|---|
Display | Hologram Projector - Keyboard - Screen | |
Power and Networking | Access Point - Capacitor - Net Splitter - Power Converter - Power Distributor - Relay | |
Extensions | Adapter - Cable - Disassembler - Disk Drive - Geolyzer - Motion Sensor - Redstone I/O - Transposer - 3D Printer | |
Robotics | Assembler - Charger - Drone - Robot - Waypoint |
Items | Components | Debug Card - Data Card - Graphics Card - Internet Card - Linked Card - Network Card - Redstone Card - Wireless Network Card |
---|---|---|
Storage Devices | Floppy Disk - EEPROM - Hard Disk Drive - Memory | |
Upgrades | Angel Upgrade - Battery Upgrade - Chunkloader Upgrade - Crafting Upgrade - Database Upgrade - Experience Upgrade - Generator Upgrade - Hover Upgrade - Inventory Controller Upgrade - Inventory Upgrade - Leash Upgrade - Navigation Upgrade - Piston Upgrade - Sign I/O Upgrade - Solar Generator Upgrade - Tank Upgrade - Tank Controller Upgrade - Tractor Beam Upgrade - World Sensor Upgrade | |
Containers | Card Container - Upgrade Container - Disk Drive | |
Others | Analyzer - Texture Picker - Component Bus - CPU - APU - Drone Case - Manual - Microcontroller Case - Nanomachines - Remote Terminal - Terminal Server - Server - Tablet Case - Tablet - Crafting Materials - Ink Cartridge - Scrench - Hover Boots - Grog - Loot Disks |
Components | 3D Printer - Abstract Bus - Access Point - Chunkloader - Computer - Crafting - Data Card - Database - Debug - Drone - Drive - EEPROM - Experience - Filesystem - Generator - Geolyzer - GPU - Hologram - Internet - Inventory Controller - Leash - Microcontroller - Modem - Motion Sensor - Navigation - Net Splitter - Piston - Redstone - Redstone in Motion - Robot - Screen - Sign - Tank Controller - Tractor Beam - Transposer - Tunnel - World Sensor | |
---|---|---|
Others | Component Access - Signals | |
Cross-Mod Integration | Applied Energistics |
Addon Mods | Addons | Computronics | |
---|---|---|---|
Supporting OpenComputers | Thut's Concrete |
Tutorials | Mod Specific | Basic Computer - Writing Code - Hard Drives - Autorun and Startup scripts | |
---|---|---|---|
Modding | Custom Architectures - IMC Messages - API changes in OC 1.3 - API changes in OC 1.4 - Build and Run master-MC1.7.10 from source | ||
Programs | OPPM - install | ||
Others | Custom Operating Systems |
Other Languages | 简体中文(Simplified Chinese) |
---|