فیلم آموزش برنامه نویسی LUA

فیلم آموزش برنامه نویسی LUA

سلام و عرض ادب. Lua یک زبان برنامه نویسی بسیار متنوع و محبوب است که در بسیاری از برنامه های کاربردی مانند Adobe Lightroom یا حتی World of Warcraft تعبیه شده است. در این مطلب از وب سایت آموزش برنامه نویسی سورس باران فیلم آموزش برنامه نویسی LUA (لوا) به زبان اصلی رو جهت دانلود قرار دادیم.

بسیاری از توسعه دهندگان به این نتیجه رسیده اند که حتی بازی های بسیار محبوب مانند Angry Birds در Lua نوشته شده اند. در این دوره، شما یاد خواهید گرفت که به سرعت شروع به نوشتن برنامه ها و اسکریپت ها با Lua کنید.

سرفصل فیلم آموزش برنامه نویسی LUA

  • معرفی دوره
  • مخاطبان دوره
  • Lua چیست؟
  • کیفیت Lua
  • تاریخچه
  • مثال Lua
  • Hello World IDE
  • متغیرها، عبارات، بیانیه ها، بلوک ها
  • بازی Guess My Number
  • انواع
  • متغیرها و تخصیص ها
  • عبارت ها
  • اپراتورها
  • If Then Else
  • Blocks و Scope
  • توابع و ساختارهای داده
  • ایجاد تابع ساده
  • ایجاد تابع Variadic
  • بازنویسی به یک تابع Variadic
  • تعداد رشته ها
  • استفاده از توابع
  • ماشین حساب ساده
  • Closures
  • نمرات دانش آموزان
  • جداول به عنوان آرایه ها
  • سازماندهی کدنویسی شی گرا
  • نحوه عملکرد OO در Lua
  • Metatables
  • Metamethods
  • کتابخانه ها
  • و غیره

زبان برنامه نویسی LUA چیست؟

لوا (LUA ) یک زبان برنامه‌سازی سبُک‌وزن، بازتابنده و امری-تابعی است. زبان لوا با ساختار پردازه‌نویسی (برنامه‌ نویسی اسکریپتی) و با هدف داشتن قابلیت‌های گسترش‌پذیر طراحی شده‌است. فلسفلهٔ اولیه ساخت این زبان، استفاده از آن به عنوان یک زبان عمومی و ساده پردازه‌نویسی بود. جامعه هدف لوا شامل کاربران نیمه حرفه‌ای هم می‌شود. در پردازه‌ نویسی برای انجام توصیفات پیچیده از یک زبان نهفته شده در یک زبان دیگر استفاده می‌شود.

به خاطر سبک بودن کتابخانه لوا، می‌توان لوا را با تمام قابلیت‌ها به عنوان یک زبان نهفته در سی استفاده نمود. حجم مفسر کامپایل شده حدود ۱۵۰KB است. در طراحی لوا سعی شده‌است از فرا ساز و کارها بیشتر استفاده شود تا در عین کوچکی، انعطاف‌پذیری زبان افزایش یابد. داده‌ساختار جدول، داده ساختار اصلی مورد استفاده در این زبان است.

لوا یک مفسر اصلی دارد که توسط طراحان اصلی زبان پیاده‌سازی شده‌است. این مفسر دارای واسط سی نسبتاً سبک و ساده‌ای است. هر دوی لوا و جاوااسکریپت از اشیاء نمونه‌پایه استفاده می‌کنند. آن‌ها هر دو از شِما الگو گرفته‌اند. بسیاری از مفاهیم مشترک میان آن‌ها وجود دارد، گرچه تفاوت‌های اساسی در نحو دارند. در طراحی لوا شبیه به آیکون است، شاید به این علت که هر دو از اسنوبال تأثیر پذیرفته‌اند. زبان لوا در طول زمان تغییر می‌کند، قابلیت‌هایی از آن کاسته و قابلیت‌هایی بر آن افزوده می‌شوند. اکنون این زبان در نسخه ۵٫۳٫۲ قرار دارد (آذر ۱۳۹۴) لوا در صنعت بازی‌های ویدئویی محبوبیت زیادی دارد. به جز بازی‌ها لوا در کاربردهای بسیاری هم تجاری و هم غیرتجاری استفاده شده‌است. نام این زبان از کلمه پرتغالی lua به معنای «ماه» می‌آید.

برنامه فاکتوریل با LUA

در زیر یک نمونه از کد نویسی LUA رو مشاهده می نمایید کهبرنامه فاکتوریل به 2 روش پیاده سازی شده است:

روش اول

function factorial(n)
  if n == 0 then
    return 1
  else
    return n * factorial(n - 1)
  end
end

function factorial2(n) -- Shorter equivalent of the above
  return n == 0 and 1 or n * factorial2(n - 1)
end

روش دوم

do
  local oldprint = print           -- Store current print function as oldprint
  function print(s)                -- Redefine print function
    if s == "foo" then
      oldprint("bar")
    else
      oldprint(s)
    end
  end
end

 

دمو دوره برنامه نویسی LUA (لوا)

 

توضیحات اضافه دوره لوا

Lua is an extremely versatile and popular programming language that you’ll find embedded in many other applications like Adobe’s Lightroom or even World of Warcraft. Many developers are surprised to find that even very popular games like Angry Birds are written in Lua. In this course, you’ll learn how to quickly get started writing programs and scripts with Lua. I’ll take you through the basics of Lua, show you some tricks that demonstrate the Lua’s flexibility and even show you how to use Lua in an object oriented way. We’ll start off in this course by learning a bit about Lua itself and Lua’s history, as well as learn how to download Lua and use the popular SciTE IDE for creating and running Lua code. After we are setup and ready to develop some Lua code, we’ll learn the basics of Lua as we jump right in and build our first application. We’ll go over Lua’s type system and learn how to assign variables, utilize operators, use conditional logic and create loops. Once we’ve got the basics covered, we’ll explore two powerful concepts in Lua: functions and tables. We’ll learn how functions work in Lua and what makes them so powerful, and we’ll see how tables can be used for more than just storing simple data. Even though Lua itself doesn’t have a class construct, we’ll learn how to do object oriented programming in Lua using tables and metatables. Finally, we’ll wrap up the course by learning a little bit about the standard libraries that come with Lua. I’ll show you some examples of using some of the most useful functions in the standard libraries and show you where you can get more information about them.
Introduction
21m 47s
Introduction
1m 1s
Who this Course is For
1m 14s
What this Course Covers
1m 32s
What is Lua 1
1m 21s
Qualities of Lua
1m 42s
History
1m 58s
Where Lua is Used
4m 3s
Lua Example
1m 44s
Getting Lua
3m 29s
Hello World Interpreter
0m 51s
Hello World IDE
2m 0s
Up Next
0m 52s
Variables, Expressions, Statements, Blocks
28m 58s
Introduction
1m 15s
Guess My Number Game
0m 41s
Types
2m 10s
Variables and Assignments
1m 27s
Assignment Demo
1m 20s
Getting a Random Number
2m 34s
Getting a Guess
1m 38s
Expressions
0m 44s
Operators
1m 22s
Using Operators
1m 19s
If Then Else
0m 38s
Too High or Too Low
1m 46s
Loops
2m 27s
Using a Numeric For Loop
2m 0s
Guessing Until Right
2m 10s
Using Break
1m 53s
Blocks and Scope
1m 16s
Adding Scope
1m 21s
Up Next
0m 57s
Functions and Data Structures
41m 31s
Introduction
1m 1s
Functions
1m 2s
Creating a Simple Function
2m 37s
Variadic Functions
0m 53s
Refactoring to a Variadic Function
3m 49s
Count Strings
3m 31s
Using Functions
0m 48s
Simple Calculator
5m 54s
Closures
1m 12s
Creating an Iterator
5m 35s
Tables
0m 48s
Student Scores
4m 54s
Table Tips
1m 59s
Tables as Arrays
4m 42s
Other Data Structures
1m 24s
Up Next
1m 22s
Object Oriented Code Organization
40m 43s
Introduction
1m 9s
How OO Works in Lua
1m 57s
Metatables
1m 26s
Metamethods
2m 4s
Creating a Superstring
5m 56s
Defining Add
2m 48s
Adding Reverse
2m 6s
Classes
1m 5s
Creating Calorie Counter
6m 51s
Using a Class
2m 4s
Inheritance
0m 55s
Creating Healthmonitor
3m 57s
Testing Health Monitor
2m 23s
Modules
0m 42s
Creating a Module
4m 0s
Up Next
1m 20s
The Standard Library
37m 34s
Introduction
0m 54s
Overview
2m 29s
Basic Library
1m 44s
Loading Code
2m 22s
Loading Data
3m 35s
Basic Library Reference
1m 5s
String Library
1m 14s
String Find
4m 12s
Matching
2m 13s
Table Library
1m 25s
Stack and Queue
4m 34s
Sorting
1m 11s
Math Library
1m 11s
IO Library
1m 0s
Writing to a File
1m 29s
Reading Files
1m 51s
OS Library
1m 45s
Debug Library
1m 5s
Lua's C Integration
0m 51s
The End
1m 24s

منبع : https://www.pluralsight.com/courses/beginning-lua

 

3.7/5 - (3 امتیاز)

راستی! برای دریافت مطالب جدید در کانال تلگرام یا پیج اینستاگرام سورس باران عضو شوید.

دوره حرفه ای انیمیشن سازی دو بعدی شبیه دیرین دیرین در Moho12
دانلود با لینک مستقیم

دسته بندی موضوعات

آخرین محصولات فروشگاه

مشاهده همه

نظرات

بازخوردهای خود را برای ما ارسال کنید

این سایت از اکیسمت برای کاهش هرزنامه استفاده می کند. بیاموزید که چگونه اطلاعات دیدگاه های شما پردازش می‌شوند.