(My first script, yo!)
I had a 9:00 a.m. office hours appointment with one of the instructors at Skillcrush (Max) regarding any questions and such regarding the lessons we’ve gone through the previous week. New students, students who have been in the blueprint for quite awhile, and those who want to offer some help can attend. We do all of our remote office hour meetings via Google Hangouts. Last year when I took the Skillcrush WordPress Blueprint, the classmates, other students, and I used to chill at the Mightybell Communities, but since then, a few things changed. They switched from Mightybell to Google Groups now. I guess it’s a lot more private and a lot easier access that way, you know?
I asked Max and Von (another student slightly more advanced than me) if the version of the Ruby currently installed in my computer needed to be upgraded to the latest version. Today, Ruby’s current version is 2.3, and I have 2.1-something installed in my computer. As mentioned before, I already installed Ruby on Rails in my machine sometime last year because I needed them to download Jekyll while I was taking classes at Udemy. I was advised that as long as my Ruby version is 2.-something and that the Rails version is 4.-something, then everything should be good to go. The other students had a lot more complicated questions because they were already ahead of me (they enrolled probably last month or two moths ago). Meanwhile, I was checking out Ruby Monk and doing some supplemental exercises there so I can get used to the Ruby basics that I just learned from the first week.
Moving on, for today’s lesson, we learned about integer operators (like any other programming language), and to test them out, we finally get to write our very first script in Ruby. Using all the cheat sheets and the notes that we were provided, this is what I came up.
The result is, of course, the screenshot above this entry.
I’m very tempted to continue on with the lessons, but I need to take a break and slow down a bit. I’m really enjoying my time at Ruby Monk and I’m also checking back on Codeacademy too for more supplemental learning. Or either that, blog some more about the artsy stuff. 😊
P.S. – The Mystery of ❤
You notice how there are some sites, we see notes with things like Made with ❤ by (insert credit here)? Just like the Gist above, where it says hosted with ❤ by GitHub? Well, the ❤, for the most part, usually indicates that the site is being powered by Ruby (on Rails). In fact, on this screenshot from Brackets, the symbols represent that the file is a ruby script just happens to be ❤ 😅.
Ah yes. Ruby indeed is ❤.
July 18, 2016 @ 7:58 pm
Congratulations on your first Ruby script!
July 18, 2016 @ 8:23 pm
I’m finally understanding the methods even more now, because they’re so straightforward. 😀 I wish you could test it yourself, but then you’d need to install Ruby in your system (so your computer can read/understand Ruby), download the script I made, and how it shows that any number you enter will always have a reply of “3” LOL. (“Always 3” script hehehe)
July 19, 2016 @ 5:10 am
I looked at Ruby coding once….and to me it looked like ancient hyerogliphics – I don’t even know if Ruby is the same as Ruby on Rails :p – so I decided I’m gonna stick with php; it’s safer and easier to work with for now. xD
If you’re adding freebies soon, sure we can affiliate; I’ll add your link a.s.a.p. 🙂
July 19, 2016 @ 12:44 pm
Kind of. Ruby is just a programming language and it has nothing to do with the web by itself. Rails is a web application framework that was built in Ruby that would make Ruby work on the web. (thus the name “Ruby on Rails”)
I don’t know what you mean by “ancient hieroglyphics,” but I actually find Ruby a lot easier to understand and a lot cleaner too. I may be loving WordPress (built in PHP), but PHP by itself is really difficult to understand, so I thought that if I started learning another web programming language that’s a lot easier to understand than PHP, then it’d be easier for me to understand PHP (or Javascript) a lot better.
I actually don’t know what type of freebies I’m going to give. I’m steering away from making graphics/avatars/icons because I won’t have time to do them LOL. I want to make something that’s completely original (not using existing anime/manga images or even celebrity images (copyright issues on the celebrity images portion)), so on the safe side, probably offering free (and paid) fonts, since I’m getting back into lettering and calligraphy anyways. ^^;
I’ll go ahead and add you hehehe. 🙂
Day 08: 新しい「ずっと3」スクリプトよ! – The NINPOJineous
July 20, 2016 @ 11:22 pm
[…] how I made my first script called Always 3? In today’s lesson (which is really short, but a good lesson), we learned about refactoring […]