Pages: 1 2 3
Author Topic: What is a good programming language to start off with?  (115,298 Views)
Offline (Unknown gender) Goombert

Developer
Joined: Jan 2013
Posts: 2,991
View profile
Reply #30 Posted on: January 12, 2014, 06:20:57 PM
Ok, here goes.
QuoteAnd this seams very subjective for me. Of course there is no one way to learn programming, but saying GM is bad because it didn't help YOU isn't a good argument either.
I get that, but my point was that if a 12 year old can learn Basic and C# anybody can, and it is much better if they simply just do that because GM ends up making you also have to unteach yourself a lot of bad programming habits.

QuoteIt did help me. GML was the first programming language I used (did see some Basic code a short while before, but didn't code anything in it) and I didn't use any other language for about 7 or 8 years. Then when I went to university I started using C++ and I found that it's mostly GML. Then I used different languages as well and in the end GML was stepping stone more for me. GML really looks like every language ever - because it has the most relaxed syntax ever.
I don't agree with any of this, you are talking to the person (me) who argues that all programming languages are fundamentally the same. If you had just learned Basic or C# or Java, take your pick of a noobs language, it would have been a lot easier to just build off of that understanding of programming.

QuoteYou can write GML that looks like C, you can write GML that looks like Delphi, you can even write GML that looks like python. So for me it helped a lot. Others (especially nowadays) say that Python is something people should start with, and I kind of agree as it is very easy and powerful, but I do dislike it more than GML. I think transition from GML to C (and to C++) is a lot easier than transitioning from Python to C. But I guess all of that is subjective.
I would argue that GML is much more C, just because it has the illusion of encapsulation and maybe a few syntax features doesn't make it very managed or high-level at all it, for god sakes it has 1 data type. In fact most code you find is simply calls to existing built-in functions, most of GML is very very low-level, not as much in theory, but almost all the time in practice. It is also important that we make the distinction we are not talking about EDL here which does address these issues but falls short imo.

QuoteAnd? You do know that we already discussed this. :D I already agreed that GM doesn't have these functions and it does everything in immediate mode - and that means it is a lot more straightforward and easier to learn/use. Like with your functions it can take 4 functions to draw text on screen (create, position, set text, destroy) and while it is good for performance, it is easier for a total noob just to use draw_text(). That is exactly my point and you just keep pointing it out while mysteriously disagreeing. :D
This is the number one thing that you are completely missing and are completely wrong about. Harri it would not be 1 function to make a GUI label, you would still have to call draw set font vs just creating the label object where you want it, setting the font, and letting it be. Even more complex code would be needed for a button such as handling input, doing a mouse hit test and drawing the thing, where as with a simple GUI function call you can create it with the correct size and font, and that's it, you don't have to do any more coding except for where you want to handle when it's pressed or not. I will agree with you that labels don't quite make the argument as good as buttons do, but I would say that this method is much easier for noobs to work with, there is a reason why every other game engine handles GUI stuff for you and it would even more optimal to!

QuoteI thought I'd toss in my two cents.
Captain Crunch, I agree with everything your saying, but I am arguing for the sake of people not wasting their time with GML, because it is a broken stepping stone.
Offline (Unknown gender) captainkraft

Member
Joined: Jan 2014
Posts: 5
View profile WWW
Reply #31 Posted on: January 12, 2014, 07:22:33 PM
QuoteCaptain Crunch, I agree with everything your saying, but I am arguing for the sake of people not wasting their time with GML, because it is a broken stepping stone.

Yeah, I noticed that was a big part of the discussion. I didn't explicitly say it but my idea is that if it gets someone to start the learning process it's not a bad start. No matter what language you start with or where you learn it from, you will inevitably learn some bad habits. GML will teach some bad stuff but he will eventually branch off into other languages and pick up what he needs to know along the way.

On the other hand, if he starts with GML and finds that it suits his needs for a long period of time, he will have a solid foundation to work with. There are many successful GM games out there and many successful developers who only know how to make games using GM. The most well known example would be some of the guys from Vlambeer. They are insanely successful and make incredible games. They started with GM and are still using it.

Basically what it boils down to for me is that you should use a tool suited for what you want to do and your experience level which means that I think GML is a good start.
Offline (Unknown gender) daz

Contributor
Joined: Jul 2010
Posts: 167
View profile
Reply #32 Posted on: January 12, 2014, 10:17:27 PM
GML and PHP were my first programming languages. Dynamic typing and loose syntax in the case of GML allowed things to mostly "just work". It was good for me, as I learned some of the basic concepts and structures of programming without having to worry about much else.
Offline (Unknown gender) Goombert

Developer
Joined: Jan 2013
Posts: 2,991
View profile
Reply #33 Posted on: January 12, 2014, 11:00:39 PM
You know I am going to recant, Harri is right about it being a matter of perception, not entirely, but I'd say we're both right actually. Because I can't say what helps other people learn, but I think my arguments as far what people should learn still stand.
Offline (Unknown gender) TheExDeus

Developer
Joined: Apr 2008
Posts: 1,860
View profile
Reply #34 Posted on: January 15, 2014, 12:49:53 PM
Quoteif a 12 year old can learn Basic and C# anybody can
But that is not for everyone. Some 12 year old's learned assembler (and some 7 year old's as well) - does that mean everyone can? Some people (in my experience most) cannot even install Windows. The average person needs something easy to start with, and GML is by design easier than many other languages. This is actually truer for older people, as a 12 year old could actually grasp new things quite easy, but if a person starts coding when he is 20, then it ends up a lot harder.

Quoteyou are talking to the person (me) who argues that all programming languages are fundamentally the same.
They are fundamentally the same. I am arguing the same thing. But they are not the same to learn and use. That is why I think learning GML did teach me the fundamentals a lot easier than learning C# (which I sadly will probably end up learning even though I don't want to).

Quotefor god sakes it has 1 data type
And that actually makes it more like C++11. Having 1 data type is also extremely important aspect why GM was so easy to learn and use. Yes, it does bring down performance (just like immediate mode drawing), but it does make it more understandable for new users. There is a reason why GM tutorials start with drawing a moving sprite, while C++ tutorials start with "Hello World!" inside a black console. It's because drawing a moving sprite in GM is even easier (to both do and understand) then drawing text in C++.

QuoteIn fact most code you find is simply calls to existing built-in functions, most of GML is very very low-level
This is a little contradictory because using built-in functions is usually higher-level. But I get your point. This is true for almost 99% of functions in 99% of languages. You think when you draw printf() you do something extremely low-level? It is a premade function and it calls other premade functions. But I also agree (and previously said) that the style GML is structured is quite low-level. And I also think this mix between easy to use and being low-level is why it is so good to learn.

QuoteThis is the number one thing that you are completely missing and are completely wrong about.
I am not missing anything, because you KEEP AGREEING WITH ME. :D
QuoteHarri it would not be 1 function to make a GUI label, you would still have to call draw set font vs just creating the label object where you want it, setting the font, and letting it be.
I previously didn't use font function also in your label example to just show how easy it is to use one vs the other. If we use font setting it still is 2 functions for GML style and 5 functions for label style.
QuoteEven more complex code would be needed for a button such as handling input
And this is exactly what I have been saying for 2 pages now. Yes, in GM you have to do these things yourself and that is why it teaches you a little more. But the best thing is that even though you have to code this manually, it takes only a few lines of code. And if you don't want to repeat code you use scripts. This is what I was saying previously.
Quotethere is a reason why every other game engine handles GUI stuff
The reason is because IT IS more optimal. We already discussed this. This label type thing allows better memory management and better rendering (as you can batch all labels once and then render). And it was exactly my point I made previously (in the several posts in which I mentioned GL1/GL3). So you still keep saying the same thing I keep saying. :D

QuoteBasically what it boils down to for me is that you should use a tool suited for what you want to do and your experience level which means that I think GML is a good start.
And I agree. If there wasn't ENIGMA I would still use GM, because I could create everything I need it in. Everything from CS:S HUD editors (http://css.gamebanana.com/tools/4483 which was create in about 1 week originally. No longer works because CS:S changed and because I used my server for auto-updates which is now offline. Was to lazy to update) to circuit drawing programs (https://dl.dropboxusercontent.com/u/21117924/22.03.2011_Day30_%28DevDayMaybe13%29.png, which was create in about 13 days). And GML did help me understand C++. I also agree with your bottom-up learning model as that is how I learn all programming languages. I have a project and I program. When I stumble on a problem, I try to fix it (by myself or by google) and that is how I learn new things. While reading a book once could be useful to understand the internals, I don't think that it is a practical way to learn.
Offline (Unknown gender) Jimmy_D

Member
Joined: Jan 2014
Posts: 69
View profile
Reply #35 Posted on: January 17, 2014, 08:00:09 AM
BASIC.   ;D ;D ;D ;D
Pages: 1 2 3