ULX

Author Topic: Learning LUA?  (Read 6165 times)

0 Members and 2 Guests are viewing this topic.

Offline Zevoxa

  • Newbie
  • *
  • Posts: 13
  • Karma: 0
Learning LUA?
« on: February 04, 2013, 10:20:02 PM »
I don't know, but it seems like it would be a long and hard (no pun) process to learn LUA, but I cannot say that as I don't know that. I am willing to learn LUA because I feel as if it would be a great thing to learn. The only coding I really know of right now is HTML and a little bit of CSS. What I really need to know is, what is a good way of learning LUA, until I am able to afford classes that will teach me this stuff.

I mean I want to know about books you've read, great tutorials you watched or read, etc.
It would be greatly, greatly appreciated.  :)

EDIT: I've looked around and it appears (I'm not sure) that it looks like I'll have to learn C++ to actually understand LUA.
I need to know exactly where someone would start if they don't know nothing about C++ or LUA.
« Last Edit: February 04, 2013, 10:44:53 PM by Zevoxa »

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: Learning LUA?
« Reply #1 on: February 04, 2013, 11:47:17 PM »
LUA is more closely related to C# than C++ I think. I don't know much C++ at all and I would consider myself pretty good at LUA.

If you want to learn to code, I would suggest starting with something simple.. like BASIC. Learn the theory behind coding. How to do functions and operations. Understand logic flow. Then once you understand how coding works, move on to LUA.

As for LUA, I would suggest downloading someone else's work and then seeing if you understand how it works. After you understand how it works, try making modifications to make it work differently. Slowly move your way on to more and more complicated things..


The WIKIS are your FRIENDS

Offline talmera

  • Newbie
  • *
  • Posts: 36
  • Karma: 4
    • Tectonic-Gaming
Re: Learning LUA?
« Reply #2 on: February 05, 2013, 01:07:14 AM »
thats actually quite interesting MrPresident I agree with you 100%. I attempted to learn Lua back in Gmod 10-12 times and couldn't find my feet but after learning C++ a year ago and I picked Lua up like that *snaps* a couple of months ago. I'm still not experienced enough to call myself good but it's piecing itself together.


TL;DR

I don't think it's so much the language you know before hand but how much you know about general programming knowledge and etiquette that helps significantly.
It's not a sin if it can't make me cry
He's not the devil unless there's fire in his eyes
It ain't the ghost if it don't speak in tongue
It's not a victory 'till the battles been won

Offline nathan736

  • Full Member
  • ***
  • Posts: 143
  • Karma: 4
Re: Learning LUA?
« Reply #3 on: February 05, 2013, 08:29:25 AM »
learing how to use true basic first is key to skiping the  " how to do normal things in lua" chunk of learning lua largely because for/ if/ subs aka functions / variables are the same (for the most part) in true basic and its easer to get a "you did something wrong response" then in Gmod.

Ps : if your still in high school ask your  teachers if any of them can do a out of school class with you they might have learned it depending on where you live  :)
Pss: this reminds me i should pick up a copy of true basic again and see if i can remember how to write libraries.
« Last Edit: February 05, 2013, 08:34:26 AM by nathan736 »
a person asked me how to code lua and i said this " its like building a rocket up side down then  realizing you did it all wrong."

Offline Zevoxa

  • Newbie
  • *
  • Posts: 13
  • Karma: 0
Re: Learning LUA?
« Reply #4 on: February 05, 2013, 12:30:07 PM »
LUA is more closely related to C# than C++ I think. I don't know much C++ at all and I would consider myself pretty good at LUA.

If you want to learn to code, I would suggest starting with something simple.. like BASIC. Learn the theory behind coding. How to do functions and operations. Understand logic flow. Then once you understand how coding works, move on to LUA.

As for LUA, I would suggest downloading someone else's work and then seeing if you understand how it works. After you understand how it works, try making modifications to make it work differently. Slowly move your way on to more and more complicated things..


The WIKIS are your FRIENDS



I'm kind of confused when you said BASIC coding... Where should I start?...
I know I'm being difficult, but I kind of just need someone to point in the right exact direction of learning just the basics...  :-\

thats actually quite interesting MrPresident I agree with you 100%. I attempted to learn Lua back in Gmod 10-12 times and couldn't find my feet but after learning C++ a year ago and I picked Lua up like that *snaps* a couple of months ago. I'm still not experienced enough to call myself good but it's piecing itself together.


TL;DR

I don't think it's so much the language you know before hand but how much you know about general programming knowledge and etiquette that helps significantly.

As for you Talmera, are you saying I should learn C++?

« Last Edit: February 05, 2013, 12:32:16 PM by Zevoxa »

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: Learning LUA?
« Reply #5 on: February 05, 2013, 01:02:37 PM »
BASIC is a language. Look it up. It's easy to read and so will be easier to learn to start.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Learning LUA?
« Reply #6 on: February 05, 2013, 04:32:47 PM »
BASIC is a language. Look it up.
B.A.S.I.C. may get you farther in a search.
Beginners All-purpose Symbolic Instruction Code

I think at one time several online emulators even existed, if not 100% BASIC, they were darn close, and could do all the GOTO and FOR EACH and IF THEN logics.

It's not just a language that will help you, knowing how any language operates, the logic behind it, ifs/thens/for/each and data stored (aka tables/arrays/variables, whatever the construct calls them), will help first. Maybe google program logic or something.
I dunno. I learned DOS batch scripting in the early 80s, BASIC in the mid 80s, taught myself PHP(4) early 90s, Lua mid 2000s.
Know bits of many other scripting languages in between.

I personally have always just had the talent to look at most coding languages, and though not understand enough to sit and write something myself, can 'follow' what it's general direction is.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline bender180

  • Full Member
  • ***
  • Posts: 217
  • Karma: 42
    • Benders Villa
Re: Learning LUA?
« Reply #7 on: February 05, 2013, 05:26:10 PM »
sorry to jump into someone elses thread but i have a similar question im able to make simple edits to lua but ive never really understood the other parts of it, im very good with visual basic how similar are the 2 languages? would i be able to use that knowledge to learn lua or would it be better for me to learn a more complex language?
Made community pool and community bowling and for the life of me couldn't tell you why they are popular.
Also made the ttt ulx commands.

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: Learning LUA?
« Reply #8 on: February 05, 2013, 05:37:06 PM »
I actually went from VBasic to LUA to be completely honest.

I have a little background in other languages.. but VB was my big one. They are quite a bit alike, you'll find.

If you knows how programming works, you'll find the switch to be quite easy.

Offline bender180

  • Full Member
  • ***
  • Posts: 217
  • Karma: 42
    • Benders Villa
Re: Learning LUA?
« Reply #9 on: February 05, 2013, 05:44:15 PM »
good to hear i learned alot of vb 6 from school as thats the language my programing teacher knew so i did it 4 years in a row, glad to hear they are similar :D
Made community pool and community bowling and for the life of me couldn't tell you why they are popular.
Also made the ttt ulx commands.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Learning LUA?
« Reply #10 on: March 15, 2013, 12:56:39 PM »
I still love the programming in Lua website and refer to it from time to time: http://www.lua.org/pil/

I started out with BASIC myself, though the chain between BASIC and Lua involved many stops. Really programming is more conceptual than learning how to express the concepts in a particular language, though. You just need to learn how to break a task down into extremely simple steps, to wrap your head around what is involved in a complex problem, etc.
Experiencing God's grace one day at a time.