Good ways to competently learn a programming language?

Discussion in 'Computer Programming, Emulation, and Game Modding' started by hobbledehoy899, Dec 27, 2016.

  1. hobbledehoy899
    OP

    Member hobbledehoy899 .rar

    Joined:
    Nov 13, 2015
    Messages:
    2,312
    Location:
    Linux 4.11.2-041102-generic
    Country:
    United States
    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.​
     
  2. Issac

    Global Moderator Issac oh!

    Joined:
    Apr 10, 2004
    Messages:
    4,934
    Location:
    Sweden
    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 and flame1234 like this.
  3. hobbledehoy899
    OP

    Member hobbledehoy899 .rar

    Joined:
    Nov 13, 2015
    Messages:
    2,312
    Location:
    Linux 4.11.2-041102-generic
    Country:
    United States
    Yeah, that's what I've been doing with HTML.
     
  4. FAST6191

    Reporter FAST6191 Techromancer

    pip
    Joined:
    Nov 21, 2005
    Messages:
    22,705
    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
     
    raystriker and hobbledehoy899 like this.

Share This Page