I'm trying to teach myself Ruby, but for some reason, I'm not very good at teaching myself anything. It always seems a lot more difficult when I'm not taking a class. Even the free video tutorials are hard for me; it's not the material, but it seems like I don't really learn much of anything when I try to teach myself.
I'm guessing it might be related to how I "study." I kind of just act like I'm reading a book. I watch video after video and complete exercise after exercise. I can spend hours doing this, but at the end, I'm not really sure how much I've actually learned. I could probably answer multiple choice questions on a test, but I'm not very confident in my ability to apply what I've learned outside of basic recognition.
I've been playing around with game building in RPG Maker, but most of what I've been doing is borrowing scripts from other people or using events to make my project do what I want. I think I'm building a decent RPG, but I don't seem to be picking up a lot of real coding knowledge from it.
Any suggestions?
I think I could really benefit from learning how much, as well as which topics, to study to help me put everything together better.
As someone who was Computer science in college, the best advice I can give you is try to make something. Just try it in an empty project, and see what you can code. That way if you garbage it, you can just delete the project and create a new empty project if needed.
And start small. Maybe do a basic edit to a script first. My first one was a simple one to have a new music play when you loaded up the menu. I ended up not keeping it in the game, but I still thought it was neat as *I* had coded it.
Rather than learn as much code as you can with no specific purpose, I suggest you start with a specific purpose and only learn the code you need in order to achieve it.
Make a list of a couple of easy/quick things you'd like to try (viz. no battle systems) - maybe reformat a menu, add a new window to the map that displays the map name, override the behaviour of events so they can walk through one another. Just small things.
That will help you cement things, one step at a time. Trying to learn it all at once is too much.
as I said many times before, just reading (or watching) a tutorial is a waste of your time.
You need to work through a tutorial, that means everything the tutorial tells you to do you need to do yourself in a practice project.
And especially in case of programming, I strongly advice AGAINST video tutorials for three reasons:
1) It's almost impossible to practice coding by following through a video tutorial - that would require stopping, switching windows, rewinding to hear again what you need to do next, hopefully not skipping steps and so on.
Having a written tutorial (especially printed out next to your computer) is much better for this.
2) There are several video tutorials on programming that completely fail because in the video you can't see the differences between (), [] and {} when the tutor types something. And that is an extremely important difference on programming that is lost just because of video compression of those videos.
3) a lot of videos are only understandable if you already know how to program because they're skipping too many details. There are reasons why books on programming have hundreds of pages and why programming courses can take months of several hours per week.
Any video tutorials on learning programming that are shorter than 50 hours are guaranteed to skip over parts and should not be used unless you already have the basics of thinking how a computer processes data.
Programming is a practical skill. From what you've written, you seem like an academy people who guided by these class, homework, and exam system. Programming is different. To know what exactly it does, you need to practice. It is not like a math where you were given an equation, understanding it, then solve a problem based on the given equation. In programming, you're formulating the equation instead.
Often the programming exercise involves a problem where you need to solve it using your own way. If an exercise is about evaluating your understanding of the syntaxes, you're doing it wrong. It is true though if you don't know how to write a correct syntax, you won't be able to write a program. However, designing a formula/algorithm is more important than that. Because you will be asking yourself "I want to do this using this way, now how is the syntax?" instead of "I know what this syntax does but I have no idea what is this for".
Again, programming is a practical skill. The first thing you may need to have is curiosity. Are you curious enough? Do you even ask yourself like "if this behaves like this, what if I put them like this or like that..."?
My training method is simple. I read/watch a couple of tutorials, then I create some small console output application or something. I play around with it until I am confident I understand it. But despite that I still don't keep the function names in my memory, so when I need them, I may need to search for rheir names. But that's the life of a programmer... 😀
every programming language consists of the same basic structures: data structures, conditionals, iterators, procedures and classes.
data structures is what you use to store data: variables, arrays, hashes, files, etc.
conditionals is what you use to decide which operation to perform: IF/ELSE instructions, CASE instructions, WITH instructions, etc.
iterators are looped executions of instructions, you use them to repeat operations that rely on the same basic instruction, and there's two basic types: loops, and iterators (specifically); loops process one instruction after another, and iterators are better to process batches of data structures.
procedures are self-contained subroutines that execute operations and return control to the main program.
and classes are large data structures that are built with all of the above.
call any of them what you will, if an instruction sets up an interval of memory to store a number from 0 to 255, that's a byte, and all bytes are variables, and all variables are data structures.
if an instruction repeats the same instruction directed towards one or multiple variables, that's a loop.
if an instruction declares a break in the code to begin a new block, that's a procedure.
that's programming.
and I didn't mention any language.
If i was going to learn spanish id read a few words and what they mean then try to use them until i dont need to be reminded what they are. Then id find some more words i could use in conjunction with what i have memorized so that using the new material re-enforces the old material. Writing code is just learning how to speak to the computer so it requires the same memorization. Try to remember as much as you can however works for you and you will suceed. Reaching the end of a video series or back of a book means nothing. Its about retention.
I guess I just feel like I'm learning more than I'm actually learning when I try to teach myself and just overload on information. It's not really specific to anything I try to study on my own, either; it happens with anything I try to teach myself, to the point where I feel like trying to learn something on my own is a waste of time and energy.
If you want to test your language knowledge or just training but doesn't know how, check out codewars.com
It will give you problem that you have to solve, and you can see other people answers too. It supports many languages, including Ruby.
One other suggestion is to go through the requested lists of scripts and plug-ins and see if any interest you or if you can do them. I did that once I finished the tutorials, I think I had about a 20% success rate though at coding them as I was still new at Ruby, but it was worth it even for the ones I failed on as I still learned something from those.
However, if you want a few quick ones to try to do in ACE/MV, here are a few suggestions:
-Try to add a menu music.
-Edit how to hit and evade works.
-Edit how luck works for states
-Edit the default code so that some states stay when you die.
-Add an auto-life skill to your game.
-Add a thorn skill to your game (a skill which returns x% of all damage back to the attacker).
-Edit how variance works so if they have x state, they always do maximum damage.
Those are all edits I've done with my limited knowledge of Ruby and they are short changes for the most part, so can be done in a few hours.
I guess I'll try to find some simple game building projects. Does anyone have any ideas or links? I've seen scripts that create mini-games inside of RPG maker. That seems like a fun concept.