Ruby Rookies unite!
Goal - Let's get back to the basics. During the month of March, our goal is to improve and polish our Ruby skills using Project Euler. We will tackle a batch of problems each week. Try these problems prior to class, leave the ones you couldn't solve, and come work in pairs/groups on solutions.
Toward the end of the session, we'll discuss the problems and share solutions.
Preparation -
Go to Project Euler site, and create an account. Then start learning!
3/7 - Problems 1 - 5
3/14 - Problems 6 - 10 meetup
3/21 - Problems 11 - 15 meetup
4/3 - Problems 16 - 20 and beyond meetup
When possible, we will try to have experienced developers on hand to help. If you would like to be a "mentor" or help as a more experienced Rubyist, you are encouraged to sign-up! :)
http://www.meetup.com/The-Hack-Reactor-San-Francisco-Meetup/
* If you've never coded before - stop-in and we'll help you get set-up. You'll want a good text editor (google "sublime" or "textmate" or "notepad++") and have Ruby installed on your machine.
@RubyRookies (Sorry - no sponsored food - but feel free to bring your own!)
David,
Your recent question for @RubyRookies material -- apart from CodeSchool, here are some other resources I've bookmarked to work on over the next few months. Hope others on this list find them useful as well.:
Jumpstart Labs tutorials (http://tutorials.jumpstartlab.c...
)
Ruby Warrior (https://github.com/ryanb/ruby-wa...
)
CoderSumo (http://codersumo.com/
)
Test-First Ruby (http://testfirst.org/learn_ruby
)
Ruby Koans (http://rubykoans.com/
)
I'm actually about to start working on the following to get up to speed on Rails. These are materials (including bite-sized lecture videos) from a Stanford web apps course CS142 using Rails/Javascript & related technologies:
Lecture videos: http://openclassroom.stanford.e...
Slides & handouts: http://www.stanford.edu/~ouster...
Projects: http://www.stanford.edu/~ouster...![]()
4 · March 17
Tomorrow's problems (and other problems) include dealing with files.
You can deal with them by saving a data file to folder, then using
# this imports the file info into data variable you can work with
data = File.new('your source file in quotes')
# you can then manipulate it - for example
my_data_array = []
while (line = data.gets)
my_data_array << "#{line}".split
end
Is one way to read and save the data into split elements into an array. Then you can iterate or further manipulate array elements. Come tomorrow and help each other out ... I could use some help - this week's set is challenging!
March 20
Join or login to comment.