r/learnruby • u/MrPowersAAHHH • Mar 21 '13
r/learnruby • u/geniusdude11 • Sep 14 '20
Here is a list with a few job openings for ruby developers that auto-updates everyday. Maybe can help someone!
docs.google.comr/learnruby • u/elegantbrew • May 20 '17
learnruby: Daily Ruby snippets on Instagram
r/learnruby • u/karhal • Oct 05 '15
Should I learn Ruby ?
Hello everyone, recently I've been really interested by learning Ruby when I discovered the syntax and some of the famous projects running on this beautiful language.
I began some tutorials and now I'm going into some guides to Ruby On Rails. Until now everything is okay, I really like it. But the more I read some guides and discussions (and sometimes comparisons with other languages), the more I doubt on the lifetime of Ruby. I also read some articles about the creator and, wtf he is a mormon ??
Does this language tend to die already ? I can read here and there that Node.js is a serious competitor and now prefered by the developers. I think I should choose what I love first (and until now I love it) but I don't want to get involved into something that's going to be obsolete soon.
What's your opinion ?
Thanks in advance !
PS: Sorry, english is not my first language.
r/learnruby • u/TechRckt • May 28 '16
A Ruby basics course for kids and teens (x-post /r/ruby)
Hello,
We're Tech Rocket and we teach kids, teens and even adults the basics of programming and more. We just released a Ruby basics course today and would really love some feedback from this subreddit.
Now, before we go any further, if this is the wrong place to be posting this then please let us know! We really enjoy the feedback we get from Reddit. In the past we've received some really helpful comments on our Java and Python courses. Feel free to check out our account history.
It's free! The course is free. Yes, you have to create an account, but it takes less than a minute. We don't ask for payment information for our free accounts. They're 100% free. No strings attached.
The entire course is also only about 45 minutes. You'll laugh. You'll cry (okay you won't cry). You'll learn some stuff in the process.
We genuinely want your feedback and hope to continue to learn from subreddits like yours. Thank you and we hope you enjoy (and learn a lot) with the course.
Course Link:
https://www.techrocket.com/code/hour-of-code-on-tech-rocket-courses/ruby-basics
r/learnruby • u/kerri24 • Jan 24 '16
Helping beginner rails devs
What has helped me improve in rails is to not only to code something every day but to read 1 or 2 posts or articles about rails every day. So I'd thought I'd start an email newsletter to help out beginners.
I recently started a rails daily newsletter to help beginners get more comfortable in rails and we have 180+ people signed up so far.
If anyone is interested in receiving a daily post or article that I've curated on rails, you can sign up here: http://www.yourrailsdaily.com/. You can view previous issues in the archive section of the website.
Hopefully you guys can find some value in these emails.
r/learnruby • u/MattsFace • Jun 20 '14
I love Ruby, but I hate Rails... Am I screwed?
Hey guys,
I recently started learning some Ruby at the UW. It's been a blast. I loved how quickly I could build things to aid me on the command line.
However, once we started RAILS I quickly was turned off. I really have no interested in Web Development.
Is there any future for just the Ruby programming language or is everything Rails these days?
r/learnruby • u/Crapahedron • Jan 29 '19
Is Ruby the primary language of any niche or domain outside of Rails development? Any reason to choose Ruby as 1st language over Python in 2019?
Hi all;
Thanks for seeing the time to answer my questions.
I have a strong interest to learn programming. I feel the need to create things and build.
I know alot ABOUT programming, but I don't know how to program. This has me in a weird spot psychologically.
I'm attracted to Ruby because it's genuinely quirky. You install packages with 'gem'. They're gems, like I'm plugging infinity stones into my gauntlet of programming power. The idioms of the culture surrounding Ruby is very much me. It's a bit weird and goofy and I like it.
However, with that being said most of the topics I have interest exploring are mostly better served with Python. At least, to my knowledge.
I don't have a strong interest in front-end web development, but the strongest proponent of Ruby's use is Rails as a backend framework. How common is it for someone to completely skip front end development and take up residence as a RoR back-end developer? This doesn't sound likely, but who knows.
Python projects I would have had interest in were/are:
Web scraping with Scrapy.
Build a Roguelike with Libtcod
Bots, bots and more bots. Twitter. Reddit. Instagram. Whatever. A great vehicle for learning these are.
Explore the Evennia MUD framework. (Yes, I'm old enough to know and have played MUD's)
With that said, if I can't do all or any of the above, that's fine. I'm not hard pressed on these. They were just ideas for learning vehicles for me.
Besides back-end web development, which seams to be Ruby's main usecase, what else is Ruby generally used for in practice?
thanks so much. Genuinely curious.
ninja edit: Discussing this with a co-worker, he advised I learn Ruby anyways because, in his words, "All you listen to is Japanese Math-Rock anyway. You might as well complete the image and learn Ruby."
So there's that.
r/learnruby • u/connerj70 • Sep 12 '21
Data Structures and Algorithms in Ruby: Linked Lists
r/learnruby • u/emm796 • Nov 13 '19
How do you paste code snippets in a MS Word document?
So I am practising doing code reviews and have been asked to submit one in a PDF format. This may be a silly question but does anyone know how I can paste code snippets into MS word (using Mac)? I've looked all over and there are many suggesting using Open Document Text feature in Word but I dont have that on my MS word. Any one know a quick and simple fix?
r/learnruby • u/Jason-Genova • Feb 01 '19
New to Ruby question (Beginner)
I've started learning Ruby . I am starting with Code Academy to get the syntax down. I'm on the chapter, putting the form in formatting. I wanted to go over some code and try to write down what it means. Let me know if I'm correct or what I got wrong.
Print "what's your name?"
first_name = gets.chomp
first_name2 = first_name.capitalize
first_name.capitalize!
=begin
1. Print basically prints the string, what's your name on the console
2. first_name is the variable you assign to gets. gets is just asking for input. .chomp is the method eliminating a blank line.
3. first_name2 is first_name but with the first letter capitalized? This is so that you have 2 separate variables in case you needed the original first_name elsewhere?
4. The method .capitalize! The confusing part. The ! basically throws away the original non-capitalized version and replaces it with the capitalized version maintaining the original variables formatting?
5. They wanted me to do some inputs for first name, last name, city, state. Then have them capitalized and then the input printed out on the screen.
=end
print "What\'s your first name?"
first_name = gets.chomp
first_name2 = first_name.capitalize
first_name.capitalize!
print "What\'s your last name?"
last_name = gets.chomp
last_name2 = last_name.capitalize
last_name.capitalize!
print "What city do you live in?"
city = gets.chomp
city2 = city.capitalize
city.capitalize!
print "Use Abbreviations. What state do you live in?"
state = gets.chomp
state2 = state.upcase
state.upcase!
puts "Your name is #{first_name} #{last_name} and you're from #{city}, #{state}."r/learnruby • u/ReactDOM • Jun 29 '19
Learn Ruby from tutorials, books & courses
r/learnruby • u/Ava_thisisnuts • Nov 14 '19
How do I review code? Like really review..help!
I’ve started learning ruby and have been lucky to pair with developers from different companies through several meet-up events. Through the process I’ve been encouraged to do code reviews. I’ve never done any before and have read lots of check lists but can’t actually picture what one would look like. One of the tasks given to me was to review a tic Tac toe game and provide a review in a pdf? I thought reviews were done through pull request and comments. Looking at the tic Tac toe game I feel being a beginner in Ruby my self the way the game was written makes sense to me and I can’t find anything wrong with it. Can anyone help? I can provide the code and if interested?
r/learnruby • u/billy_wade • Jun 27 '19
Does anyone know of a way to parse .NET JavascriptSerializer in Ruby?
I have a JSON file that I'm working over to pass to a Sinatra app, but it looks like it was meant to use .NET initially, because the date is formatted "\/Date(1561611600000)\/". Is there any way to parse this within Ruby?
r/learnruby • u/shermanhuman • Dec 23 '16
Which Ruby courses / books to pick for a more serious learner? (free/paid)
Hello. I'm looking to pick up Ruby, to support Chef and Rails with a focus on ops. The nice thing about Ruby is there is a LOT of material out there. Unfortunately there is a LOT of material out there. What do I choose? I tend to like learning materials that:
Move at a quick pace, and condense information well without glossing over salient details
Explains the why (language internals/strategy) as well as how (syntax/patterns/recipes)
Is complete, or at least covers all the 'good parts'
Is up to date
I don't mind paying for excellent material within reason. (think hundreds of dollars not thousands) I'm also not picky about delivery format: video or text or interactive stuff works for me.
I haven't tried codecademy Ruby, but I have gone through their JS course. It was a bit shallow and basic. Probably good for an intro to programming, or a nice refresher. Can anyone who has worked through the Ruby course tell me if I can expect the same?
On first glance Learn Ruby the Hard Way seems like my path. Can anyone with experience with this book chime in? Are the videos good stuff?
Has anyone taken any Udemy courses they can recommend?
Thanks!
r/learnruby • u/Dudemanbro88 • Apr 03 '15
Where the heck do I put my ActiveRecord::Migration in Sinatra?!
The title sums it up, I'm trying to get ActiveRecord working outside of Rails. I know this has been done many times before, but I think I'm hung up on something.
I'll run rake db:migrate and it runs, but no migration gets added to my db/migrate folder.
Do I make a file named the same as my migration class and put it in my db folder? Do I do create the migration in my app.rb file?? What about models, do I create the migration there within my models folder?
I'm seriously going bonkers over this and 4 hours of googling hasn't led me to the answer yet, so it's time to ask for some help.
Can anyone tell me the appropriate place to put my migrations so that rake db:migrate works? All I'm trying to do is add columns to a table that already exists in my database.
Thanks! You guys rock. :)
r/learnruby • u/theryn • Jun 02 '14
Ruby Implementation of Strategy Pattern?
xpost from /r/ruby.
Some background: I have been working for many years in Java, but over the past few months have started learning Ruby. I've implemented the Strategy pattern in a solution I'm currently developing, but I'm wondering if there's a more 'ruby-esque' way of doing things.
I have a MailClient class with the methods login, logout, send_mail, and get_unread_mail. These methods all raise a NotImplementedError. I then have various clients that extend the MailClient class (GmailClient, HotmailClient, etc) and must implement the methods listed above. This currently works, but it seems like a very "Java" way of doing things (which may be the correct way).
Is there a better, more elegant way to do this within ruby? Thanks.
r/learnruby • u/jwjody • Nov 29 '15
Scraping data and emailing myself the results
I wanted to share this blog post about a script I wrote. It's nothing earth shattering but I had fun writing it.
It scrapes data from tandyleather.com using BeautifulSoup and emails it to me using mandrill.
Then I put it on my VPS and set a cron job to run weekly.
I did the script in Python and Ruby. The Ruby section is after the Python section.
r/learnruby • u/LetMePlantain • Nov 28 '15
Render a Portion of an Existing Form
I have a project that is similar to Instagram. Bunch of pictures, users, etc. On the image#show view I want to render a portion of the images/_form_for. But not the whole _form. I know how to render the whole form by just calling render in the images/show view but I can't figure out if I either need to: A). Render a portion of the _form or B). Create a second partial _form that just has what information I need and render the entirety of that form.
r/learnruby • u/[deleted] • Dec 09 '15
Does Sinatra is still in use? Should I learn it, or go straight to Rails?
r/learnruby • u/ferriswheel9ndam9 • Jun 03 '14
Accessing Instance Variable in a Class Method? Thought this was impossible.
I'm using RubyMonks to learn ruby atm and it says that you cannot access instance variables or instance functions in class functions.
Why is the below possible?
class Item
attr_accessor :test
@test = "TEST"
def self.instance_show
puts "This is an instance method"
end
def self.show
instance_show()
puts "This is a class method running" << @test
end
end
Item.showItem.show should just print "This is a class method running" without the "TEST" at the end because "TEST" is an instance variable @test Instead this prints "This is a class method runningTEST"
I added in method instance_show to test whether or not a class method could access an instance method and indeed it cannot. If I change self.instance_method to instance_method, it no longer works.