Good ways to competently learn a programming language?

hobbledehoy899

Well-Known Member
OP
Member
Joined
Nov 13, 2015
Messages
2,874
Trophies
1
XP
2,192
Country
Antarctica
I'm primarily trying to learn Lua for use with the Love2D framework and would like some advice on how to actually learn to do stuff with it and (at least partially) memorize knowledge about the language.

Thanks in advance.​
 

Issac

Iᔕᔕᗩᑕ
Supervisor
Joined
Apr 10, 2004
Messages
7,025
Trophies
3
Location
Sweden
XP
7,351
Country
Sweden
The boring answer: practice practice practice.
Follow tutorials and practice. I know nothing about Lua, but it's true for any programming language.
Once you've followed a few tutorials and get a feel of it, try to make small tasks for yourself to solve.
Always start by writing what you want to do, then more in detail what you need to do that thing. Then look up what programming stuff you need for each part. Then try putting it together.
 

hobbledehoy899

Well-Known Member
OP
Member
Joined
Nov 13, 2015
Messages
2,874
Trophies
1
XP
2,192
Country
Antarctica
The boring answer: practice practice practice.
Follow tutorials and practice. I know nothing about Lua, but it's true for any programming language.
Once you've followed a few tutorials and get a feel of it, try to make small tasks for yourself to solve.
Always start by writing what you want to do, then more in detail what you need to do that thing. Then look up what programming stuff you need for each part. Then try putting it together.
Yeah, that's what I've been doing with HTML.
 

FAST6191

Techromancer
Editorial Team
Joined
Nov 21, 2005
Messages
36,798
Trophies
3
XP
28,373
Country
United Kingdom
Find something interesting to do with it. Don't know what it might be for you but most people can learn if they have an interest beyond a vague desire and appreciation for the fact that it would be really useful to know how to code.

Games are good for this. https://sgimenez.github.io/laby/ is my usual suggestion but in a similar thread the other week had https://codecombat.com/ linked up which is very nice looking.

If you really want to get into games then many emulators support lua in such a way that you can alter games in substantial ways. fceux for the NES is the main reference for most http://www.fceux.com/web/help/fceux.html?LuaScripting.html but it is on every system up to and including desmume for the DS http://wiki.desmume.org/index.php?title=Faq#What_is_this_Lua_stuff_I_see.3F . Tool assisted speedrun folks are where you want to look for that as not all the biggest emulators for a given system will sport it out of the box.
In any case it might take you further into ROM hacking than you might care to go for this but on the other hand if you wanted to learn some ROM hacking, or at least the game's internal logic bothering side of it rather than the text and graphics stuff most tutorials start with and focus primarily upon then it could get you somewhere in that.

and a choice thing that should be rewritten for most languages as it applies everywhere
https://msdn.microsoft.com/en-us/library/shz02d41.aspx
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • Psionic Roshambo @ Psionic Roshambo:
    I will admit that one does seem more interesting than the usual Ambernic ones, and I already liked those.
  • Veho @ Veho:
    I dread the price point.
    +1
  • Veho @ Veho:
    This looks like one of their premium models, so... $150 :glare:
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    To me that seems reasonable.
  • Psionic Roshambo @ Psionic Roshambo:
    I mean since basically all the games are errmmm free lol
  • Veho @ Veho:
    I mean yeah sure but the specs are the same as a $50 model, it's just those pesky "quality of life" things driving up the price, like an actually working speaker, or buttons that don't melt, and stuff like that.
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    I think all in my Pi 4 was well north of 200 bucks 150ish for the Pi 4 the case the fancy cooler, then like 70 for the 500GB MicroSD then like 70 for the Xbox controller. But honestly it's a nice set up I really enjoy and to me was worth every penny. (even bought more controllers for 2 or 4 player games.) hmmm have never played any 2 player games yet :(
  • Veho @ Veho:
    Yeah that's what I hate about the RPi, it's supposedly $30 or something but it takes an additional $200 of accessories to actually turn it into a working something.
  • Psionic Roshambo @ Psionic Roshambo:
    yes that's the expensive part lol
  • Veho @ Veho:
    I mean sure it's flexible and stuff but so is uremum but it's fiddly.
  • Psionic Roshambo @ Psionic Roshambo:
    Yeah a lot of it I consider a hobby, using Batocera I am constantly adjusting the collection adding and removing stuff, scraping the artwork. Haven't even started on some music for the theme... Also way down the road I am considering attempting to do a WiiFlow knock off lol
  • Veho @ Veho:
    I want everything served on a plate plz ktnx, "work" is too much work for me.
  • Veho @ Veho:
    Hmm, with that in mind, maybe a complete out-the-box solution with all the games collected, pacthed and optimized for me would be worth $150 :unsure:
  • Psionic Roshambo @ Psionic Roshambo:
    Yeah it's all choice and that's a good thing :)
  • Bunjolio @ Bunjolio:
    animal crossing new leaf 11pm music
  • Bunjolio @ Bunjolio:
    avatars-kKKZnC8XiW7HEUw0-KdJMsw-t1080x1080.jpg
    wokey d pronouns
  • SylverReZ @ SylverReZ:
    What its like to do online shopping in 1998: https://www.youtube.com/watch?v=vwag5XE8oJo
  • BakerMan @ BakerMan:
    wokey d pronouns when woku walks in

    "CALL ME THEY SLASH THEEEEEEEEEEEEEEEEEEEEEEEEEEM"
  • AncientBoi @ AncientBoi:
    :tpi::rofl2::rofl2: Right on point :rofl2::rofl2::tpi:
    +1
  • Bunjolio @ Bunjolio:
    politics forum is def a place that exists
  • Bunjolio @ Bunjolio:
    lol
    Bunjolio @ Bunjolio: lol