What programming language should I learn after Lua ?

Vieax

Well-Known Member
OP
Newcomer
Joined
Feb 24, 2017
Messages
64
Trophies
0
XP
90
Country
Hi tempers ,

Im currently learning to code in Lua , and I really like the language :P!
Im not really sure if I should already begin learning c++ afer Lua :/.
Would be nice if you guys have any advice about this or in general about learning to code :))).
btw I got 14 this month.

thanks in advance :)

( yes this is my first non-shitpost )
 

FAST6191

Techromancer
Editorial Team
Joined
Nov 21, 2005
Messages
36,798
Trophies
3
XP
28,321
Country
United Kingdom
C++ is a rather different beast to lua.

Generally I would say learn what you will find is useful, or will keep your attention when learning -- C++ is not going to help you code websites where php might well, on other hand php is probably not going to do much good for coding emulators where C++ would.

C++ is a fairly low level language (its performance is high but that comes at the cost of difficulty), though it is used throughout computing for all sorts of things as a result. lua is a very high level language, though a useful one, so it might well do well for you to go lower and learn how things work there.
Some might say tackle C before you go for C++ and there is scope to argue that, there is also scope to say C++ is fine to learn before C as C++ is kind of C with some extras.

I should also say one rarely learns a complete language and there are always more libraries you can learn, more aspects of it you can learn and deeper you can go. Indeed if it is your first language and you are asking that question many would say you have not yet finished learning lua, though no need to fully learn one thing before you pick up another.
 

Vieax

Well-Known Member
OP
Newcomer
Joined
Feb 24, 2017
Messages
64
Trophies
0
XP
90
Country
C++ is a rather different beast to lua.

Generally I would say learn what you will find is useful, or will keep your attention when learning -- C++ is not going to help you code websites where php might well, on other hand php is probably not going to do much good for coding emulators where C++ would.

C++ is a fairly low level language (its performance is high but that comes at the cost of difficulty), though it is used throughout computing for all sorts of things as a result. lua is a very high level language, though a useful one, so it might well do well for you to go lower and learn how things work there.
Some might say tackle C before you go for C++ and there is scope to argue that, there is also scope to say C++ is fine to learn before C as C++ is kind of C with some extras.

I should also say one rarely learns a complete language and there are always more libraries you can learn, more aspects of it you can learn and deeper you can go. Indeed if it is your first language and you are asking that question many would say you have not yet finished learning lua, though no need to fully learn one thing before you pick up another.
Thank you very much for your respond :)
Ill maybe learn more about lua ^^ and then go to c or c++ because I want to do homebrew stuff
 

evandixon

PMD Researcher
Developer
Joined
May 29, 2009
Messages
1,725
Trophies
0
Website
projectpokemon.org
XP
2,313
Country
United States
I recommend .Net (C# is a good choice) because it can run pretty much everywhere (except for embedded systems and web browsers, where you'd need C/C++ and Javascript respectively). It's a high-level language that can go as high or low level as you want, and, unlike Java, is compiled without needing to run in a virtual machine.

PKHeX is a popular program written in C# .Net, for example.
 
  • Like
Reactions: Vieax

FAST6191

Techromancer
Editorial Team
Joined
Nov 21, 2005
Messages
36,798
Trophies
3
XP
28,321
Country
United Kingdom
Many consoles will have a lua interpreter available for them, and a useful one at that. The DS had a least three that I can think of. Obviously you are not going to make the next mario kart or anything but you can make some seriously playable games -- the commercial game puzzle quest was made in it, several other DS commercial games also being made using it.

Similarly emulators that support lua scripting are available. http://www.fceux.com/web/help/fceux.html?LuaScripting.html is the main reference point for most of the ones to follow. Desmume has it and if you go poking around tool assisted speedrun sites then you will find many other versions for all sorts of consoles.
 
  • Like
Reactions: Vieax

CaptainCurry

Member
Newcomer
Joined
Feb 27, 2017
Messages
14
Trophies
0
XP
60
Country
United States
Hijacking this thread for my curiosity about programming.
  • How does one start programming?
  • What language is recommended for a beginner?
  • Where/how do you start learning programming?
  • What are practical uses a beginner programmer could make use of?
 
  • Like
Reactions: Vieax

FAST6191

Techromancer
Editorial Team
Joined
Nov 21, 2005
Messages
36,798
Trophies
3
XP
28,321
Country
United Kingdom
1) You probably already have at some level. Usually though by finding a book or video course and starting.
2) That could take a while to cover and it will first have to find out what your end goals are -- if you already have a fair grounding in physics, maths and the like you might be more suited to lower level programming, especially if your goals will make use of it. If you would want to mainly be able to manipulate a fairly small bit of data and not write high performance games, emulators, video encoders and the like then you could go for a higher level language and more quickly (and easily) find yourself doing useful things.#
3) http://programming-motherfucker.com/
4) Threefold, four if we must mix money into those.
i) I already mentioned being able to manipulate data. So your program takes a little while longer than some whizz bang programmer might be able to make one do the same in. If it happens in a reasonable amount of time and produces the output then fantastic.
ii) Part of it will teach you concepts like regular expressions and other such things. If you have ever had to alter something to include something else in the middle of a spreadsheet, or count things in a document and done it by hand then a computer would have done it far more quickly, and probably more accurately than you.
iii) There are always little things like testing, documentation, small tweaks and more that want to be done for open source projects. You might not feel too comfortable contributing to the make it or break it aspects of the code but the little stuff matters to and if you prove you can handle that then you will get invited in.
iv) A lot of websites have simple code underpinning them but that is still beyond most people. Even with fairly weak skills you could get a lot of stuff done that a lot of people want. Beyond that php (the main web coding language for an awful lot of things) is incredibly easy to learn compared to a lot of computer languages.
 

EthanAddict

An investment to nothingness
Member
Joined
Nov 12, 2016
Messages
489
Trophies
0
Website
google.com
XP
491
Country
Antarctica
You can continue:
to a high level programming language, Python, for scripting like lua,
to a lower level programming language, C, for performance,
to an even lower programming language, ASM, for performance too, but also good for bare-to-bones programming where C is not that fast(not an actual reason) and creating OS kernels(you need to use at least some ASM),
to the lowest of the lowest level of programming language: Machine code, unique to every proccessor(meaning that there is a big difference between ARM and x86 machine code), no reason to use anymore...
 

FAST6191

Techromancer
Editorial Team
Joined
Nov 21, 2005
Messages
36,798
Trophies
3
XP
28,321
Country
United Kingdom
Give or take efforts like assembly libraries is machine code all that different to assembly? I would probably accuse it of being the same thing, however for machine code you hand encode each instruction rather than just knowing how to do it but using an assembler like a sensible person.
 

gnmmarechal

Well-Known Member
Member
GBAtemp Patron
Joined
Jul 13, 2014
Messages
6,038
Trophies
2
Age
25
Location
https://gs2012.xyz
Website
gs2012.xyz
XP
5,989
Country
Portugal
You can continue:
to a high level programming language, Python, for scripting like lua,
to a lower level programming language, C, for performance,
to an even lower programming language, ASM, for performance too, but also good for bare-to-bones programming where C is not that fast(not an actual reason) and creating OS kernels(you need to use at least some ASM),
to the lowest of the lowest level of programming language: Machine code, unique to every proccessor(meaning that there is a big difference between ARM and x86 machine code), no reason to use anymore...
I'm not sure going from Lua to ASM is a good decision for someone starting out.
 

tech3475

Well-Known Member
Member
Joined
Jun 12, 2009
Messages
3,659
Trophies
2
XP
6,045
Country
I'd ask what you want to do first.

I have some experience with PHP, Java and shell scripting but I think it's pointless to just 'learn a language' without some kind of goal in mind as while languages can be similar (for loops, if/else, etc.) they can also be vastly different in syntax and libraries that it can become easy to forget or overlook something.

For example, I've read that C# can be used in Unity which may make that a good language if you want to use Unity (don't quote me on this though).
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • Badcatalex @ Badcatalex:
    sony should #stopkillinggames
  • Badcatalex @ Badcatalex:
    they killed LittleBigPlanet online, which was the main core of every LBP game
  • BakerMan @ BakerMan:
    for real
  • BakerMan @ BakerMan:
    at least with them, it was because of the DDOS attacks, ubisoft was just scummy
  • BakerMan @ BakerMan:
    fuck ubisoft, and fuck activision
    +1
  • realtimesave @ realtimesave:
    Nintendo needs to release a new console, switch is getting such shitty little games lately lol it's pathetic
  • Purple_Heart @ Purple_Heart:
    Lmao a new flashcart... The Unlock Switch... I knew it's not fake xD
    +1
  • NinStar @ NinStar:
    A new consoles won't solve that problem
  • NinStar @ NinStar:
    It will actually make it worse
  • The Real Jdbye @ The Real Jdbye:
    well actually
    a new console won't do anything right now, because the games are still in development, that's why there are few games being released
  • The Real Jdbye @ The Real Jdbye:
    it won't make the games finish any faster
  • Veho @ Veho:
    2/3rds of launch titles for the Switch 2 will just be lazy ports of Switch games anyway.
  • The Real Jdbye @ The Real Jdbye:
    probably
  • The Real Jdbye @ The Real Jdbye:
    maybe mario kart 9 will be a launch title
  • The Real Jdbye @ The Real Jdbye:
    i really want a new mario kart
  • Veho @ Veho:
    What, you mean the endless stream of DLCs doesn't count?
  • Veho @ Veho:
    Why develop a new game when you can just sell season passes forever?
  • Veho @ Veho:
    I'm still on MKDS so I'm not bothered :tpi:
  • The Real Jdbye @ The Real Jdbye:
    i like the dlc tbh, i'd like a new game more
  • ZeroT21 @ ZeroT21:
    but the current version is still selling fine at full price
  • SylverReZ @ SylverReZ:
    Hello
  • ZeroT21 @ ZeroT21:
    sup
    +1
  • SylverReZ @ SylverReZ:
    @realtimesave, You seen the Unlock Switch flashcart yet?
  • K3Nv2 @ K3Nv2:
    I'll see the 19.0 update that blocks use ability to it
    +1
  • K3Nv2 @ K3Nv2:
    Lol newegg+
    Screenshot-20240423-053504-Gmail.jpg
    K3Nv2 @ K3Nv2: Lol newegg+