Easiest coding language?

Started by
24 comments, last by JohnnyCode 9 years, 4 months ago

Hello people!

I am new to all this coding and game making stuff and would like to know the easiest coding language to learn and make games from. Planning to make a 3D game. Leave some suggestions and maybe a link to a good tutorial! smile.png

Thanks! biggrin.png See ya around.

Advertisement

I'd argue C# with Unity, but you are probably asking the wrong question(s) at this time.

Did you read the sticky at the top of this forum? It links to a FAQ with good information of this sort.

define easiest... tongue.png

really, just start. Any language will do at your current position. You will have months and years of learning how to program ahead before you can start worrying about making your 3D Game.

Start much smaller, "hello World", text adventure, pong, tetris, and so on... read FAQs and beginners turtorials and you will understand what I mean.

In the end, all of the languages relevant to game dev share common roots in C. Thus the syntax of the languages is sometimes quite close. Besides that, the core basics of programming are the same for any language involved, if you you understand what variables are, you will be able to use them in any language with just a quick google search (or a good reference book for that matter) to look up the syntax of this new language.

In the end, a good programmer most likely is versed in multiple languages, altough he might have only achieved true mastery in one (for that, you will need to know some of the weird and wonderful specialities that set apart the different languages, and some experts might know so much that they are called "living virtual machine" or "living compiler" smile.png )

Having said that, Java is among the easiest Object oriented languages I know, altough this is not as big in game dev as in other fields of software development.

C# Is much bigger in game dev today and IMO just as easy as Java, maybe even better in some ways, while avoiding some of the pitfalls and complexities of C++, which maybe is THE tool to write performant software in an object oriented manner, but as it was created by hackers for hackers, can be used to write horrible code if the programmer is inexpierienced.

Besides this you will find python recommended quite often.

I think that once you learn how programming works in general, from my experience you don´t really need to bother wich one is the easiest, cause at that time you will be able to programming in any language as far as you learn syntax difference and how to use libs or Api´s.

Just start with anyone you feel its ok for you now, and focus to learn how sytanx works, what is a variable, type of variables, what is a function,what is a operator, types of operatprs, types of functions , what is a loop, recursive functions and so on...

Seriously, just start with anything now and then you choose what language it really fit your needs.

If you're starting from scratch, I'd have to seriously recommend downloading Visual Studio 2013 Community Edition, and learning C#. There are loads of online resources, but better still buy a good C# book.

After several months of hard graft getting your head around programming, look into using an existing game engine, such as Unity or Unreal (both of which can be used with C#).

I started with and recommend Java, but this depends from person to person.

This all depends on you ... "easiest" is in the eye of the beholder.

It is highly recommended to stick with a chosen language for a while ( until you learn all the basics ) before moving on to another one - jumping from language to language constantly will lead to burn out.

It is NOT recommended IMHO to use a game engine before at least learning the basics of how to write code.

Here is a list of some of the more common "languages" folks consider to be "easier to learn" .

Python

Ruby

Lua

C# ( c sharp )

Basic

Visual Basic

JavaScript

PHP

HTML - CSS ( not recommended unless you want to write your own web pages )

I cannot remember the books I've read any more than the meals I have eaten; even so, they have made me.

~ Ralph Waldo Emerson

I would actually argue that this is a question with an actual answer.

Lua.

At least so far as game development languages go, with a minimal useful set of functionality, Lua is in fact the easiest option available. This is of course assuming you meant easy as either a) easy to learn b) easy to use.

Why?

One of the easiest type systems ever implemented.

Extremely simple syntax.

No build/link cycle.

Very good logical consistency.

Well documented and supported.

Good tooling available.

Single click download available.

The only knocks against Lua, for beginners anyways, are the lack of REPL out of the box, the 5.1 vs 5.2 fragmentation and the fact it's 1 based unlike well every other programming language since Visual Basic

Most of the "conventional" programming languages ( Java, C++, C#, etc... ) are an order of magnitude more complex than Lua. This isn't a bash on any of them, but in terms of "easy", they aren't.

You can look at comparable scripting languages and each of it's competitors have "easy" issues.

  • python is a great deal more complex, and vastly more fragmented. The fragmentation has basically killed this languages momentum.
  • ruby is much smaller in community size (at least in gaming) and is also more complicated.
  • PERL is shit, outside of it's intended string processing role
  • PHP is what someone gets when they take a shitty language and make it shittier
  • JavaScript is... well first off, there is the DOM, JavaScript in the browser is a nightmare, because the implementations are crap. When just looking at the language itself, certain horrible design decisions ( this implementation, comparison operators, etc... ) are a huge hazard for new (and experienced) devs
  • ActionScript... is actually a pretty good choice. It's like JavaScript where someone polished away a lot of the stupidity. Being tied to a vendor as awful as Adobe though... and a very questionable future make this one iffy. ActionScript is actually a pretty solid beginner choice, well documented, clean language, good community... tooling is kinda crap though, unless you are on windows
  • F#, Smalltalk, LISP, Haskell, et al. Well, they are just too weird for beginners... good idea to learn though.... eventually
  • Visual Basic.. too old. Modern Visual Basic is just C# in a pretty dress, so the language is basically dead
  • Haxe... it's a nice clean language, but ultimately requires knowledge of other languages when shit breaks, and it will

Now, once you take "language" out of the equation, and look purely at game development tools, then it gets a bit more interesting with players like Stencyl (Haxe), Construct2 (Javascript), Gamemaker (GML), RPG Maker(Ruby), etc... basically acting as code generators for you. In those cases, easy isn't so clearly defined.

But when it come down to actual programming languages, for game development, defining easy as "easy to use" or "easy to learn", I do think Lua is actually a clear winner. Put simply, if I was going to start a game programming class for young teens, I would almost certainly start with Lua.

I started out with bbc basic, but I come from an earlier time. These days i would start out with c# and mono... Also consider that you need a library like monogame and make sure you read up on the logic and maths of 3D and games in general, things like mainloops and patterns/antipatterns..

Good luck!

This topic is closed to new replies.

Advertisement