If you're interested in learning the Ruby programming language, this program might help you out with the basics:
printing/putting, delaying code (sleep), variables, some math/methods (to int and to string), arrays, calling random integers, getting user input, loops, and if/elsif/else statements.
- Interactivity! The program asks the user for code after teaching topics to check if the user understands.
- Tips & help! During any question, the user can input "help" or "h" instead of code in order to receive tips with the specific coding problem.
- The program itself...is coded in Ruby! So if the user wants to see some Ruby in action, they can check out the IDE. Plus, I recently added comments within the IDE that are meant for the user to read. I highly suggest checking this out.
- Not too much at once! Seeing a ton of code all at once (or even normal text) can be overwhelming, but this program goes at the user's own pace! Simply press the enter key when ready to move on.
So if you're looking for a new language--this is a sign to try out Ruby (my own preferred language)! Scroll down to the Repl and click run to start learning! :D
Let me know if there's a topic in Ruby that you consider a "basic" that I should cover but didn't in this tutorial! And please leave an upvote if you used it at all or just like it!
If you're using Repl.it with light mode (default), the comments in the IDE will be a pale grey. If you're using Repl.it with dark mode, the comments in the IDE will be green. I explain a lot of things in the comments and it's also a great way to see Ruby color-coded and such.
right here: "Oh, and one more thing before I move on--did you notice that there were two equal signs in the while statement? This is because in every type of statement that requires an end, equal signs must double up when used. That's just how it is in Ruby. Don't ask me why."
no, it is because you are checking a condition versus declaring a variable. it's pretty good otherwise though. great refresh for me thanks
@MaxZagar Hi! If you are already proficient in this particular coding language then I do not suggest clicking a tutorial described as "basics" since it is clearly not for you. This is simple English--since you do not know what basic means, I will inform you that it means the foundations-only. Thank you for looking at my project! <3
You could probably use Regex for testing the answer input and a case statement instead of a bunch of
elsif statements. Otherwise pretty good
she's just righting down a book basically that you can visually see and then you would say this is fun but this is not coding repl.it is for coding i would suggest going to a book club then repl.it if you want to write books
@TB07EC Hiya! Ruby is literally a coding language, and I didn’t create Ruby itself so if you have issues with it then that isn’t really up to me. As for the text, yes, it is made informal (I didn’t always use 100% programming terminology) to make it easier for those new to coding to understand it. If you hate reading; in fact, it seems like you don’t know how to—then don’t use my program, it isn’t for you. Thanks for looking at my project! <3
um this is not called coding not to be rude and this is not proper computer language either because your just putting in inproper franguances in FAKE coding language and no that isn't how to learn ruby.
I am kind of confused at the "Let's use the .to_s method to change it. You can put that right in my code, but to make it shorter, why don't you just add set sumVar to sumVar as a string? It's used in the same way as the .to_i method, only vise versa." part. i tried any possible outcome. but other than that this tutorial was great!