FREE Online Course: Programming for the Web with Ruby
Join the DZone community and get the full member experience.Join For Free
programming for the web with ruby
r egistrations are now open for rubylearning’s free, online course on “ programming for the web with ruby “. web-based applications offer numerous advantages, such as instant access, automatic upgrades, and opportunities for collaboration on a massive scale. however, creating web applications requires different approaches than traditional applications and involves the integration of numerous technologies. the course topics would hopefully help those that have some knowledge of ruby programming to get started with web programming (this does not cover ruby on rails).
who’s it for?
anyone with some knowledge of ruby programming .
the course starts on monday, 20th feb. 2012 and runs for 2 weeks.
how do i register?
register here . use the enrollment key: pftwwr-4i . that’s it!
updated (26th jan. at 18 hrs ist) : a chart showing number of registrations ( 957 so far) and the participant’s countries.
- day 1
- what’s version control
- downloading and installing git
- create a local folder
- let us start using git
- introduce yourself to git
- create your ssh key
- set up your github account
- creating a new repository
- add your ssh key to github
- what’s github?
using rvm (for *nix)
- what is rvm?
- installing rvm
- loading rvm into your shell
- reload shell configuration and test
- install a ruby interpreter
using pik (for windows)
- what’s pik?
- installing pik
- using pik
- exercise 1
- day 2
- a webpage, step by step
before we begin, launch a text editor
- step 1: start with content
- step 2: give the document structure
- step 3: identify text elements
- step 4: add an image
- step 5: change the look with a style sheet
- store your webpage files on github
- exercise 2
- day 3
understanding http concepts
- loading a web page
http request methods (verbs)
- using curl
- http response codes
- using uri
- using open-uri
- using hpricot
- fetching documents from web
- searching inside html documents
- what’s http?
- exercise 3
- day 4
creating one’s own ruby gem
- what’s a ruby gem?
- let us create a simple ruby library
- steps for publishing our gem
- day 5 and 6
revisiting ruby’s proc object
- rack specification
a simple rack app – my_rack_proc
- rack documentation
- rack source code
installing rack gem
another rack app – my_method
- using rack::request and rack::response
- a very basic practical rack app
- another practical rack app
- rack middleware
- using lobster
- revisiting ruby’s proc object
- day 7
deploying pure rack apps to heroku
- create an account on heroku
- install bundle
- deploy your app to heroku
- what’s heroku?
- day 8
- deploying a static webpage to heroku
- day 9
- what’s json?
using mongodb with ruby mongo driver
- what’s nosql?
- what’s mongodb?
- setup mongodb
- mongodb core concepts
- switch databases
- insert a document
- use find()
- removing all documents
- query selectors
- updating a document
mongodb ruby driver – mongo
- using the mongo gem
- making a connection
- getting a list of collections
- getting a collection
- inserting a document
- updating a document
mongohq the hosted database
- sign up
- create a database
- accessing the database
- day 10
sinatra with mongodb
- what’s sinatra?
- create a folder on your hard disk
- install sinatra
- which web server?
- our trivial sinatra application
erb and view
- handlers and form parameters
the course contents is likely to change.
satish talim , michael kohl, victor goff iii and others from the rubylearning team.
rubylearning’s irc channel
most of the mentors and students hang out at rubylearning’s irc (irc.freenode.net) channel (#rubylearning.org) for both technical and non-technical discussions. everyone benefits with the active discussions on ruby with the mentors.
here are some details on how the course works:
once the course starts, you can login and start with the lessons any day and time and post your queries in the forum under the relevant lessons. someone shall always be there to answer them. just to set the expectations correctly, there is no real-time ‘webcasting’.
- the mentors shall give you url’s of pages and sometimes some extra notes; you need to read through. read the pre-class reading material at a convenient time of your choice – the dates mentioned are just for your guideline. while reading, please make a note of all your doubts, queries, questions, clarifications, comments about the lesson and after you have completed all the pages, post these on the forum under the relevant lesson . there could be some questions that relate to something that has not been mentioned or discussed by the mentors thus far; you could post the same too. please remember that with every post, do mention the operating system of your computer.
- the mentor shall highlight the important points that you need to remember for that day’s session.
- there could be exercises every day. please do them.
- participate in the forum for asking and answering questions or starting discussions. share knowledge, and exchange ideas among yourselves during the course period. participants are strongly encouraged to post technical questions, interesting articles, tools, sample programs or anything that is relevant to the class / lesson. please do not post a simple "thank you" note or "hello" message to the forum. please be aware that these messages are considered noises by people subscribed to the forum.
outline of work expectations:
- most of the days, you will have exercises to solve. these are there to help you assimilate whatever you have learned till then.
- some days may have some extra assignments / food for thought articles / programs
- above all, do take part in the relevant forums. past participants will confirm that they learned the best by active participation.
some commonly asked questions
is there any specific time when i need to be online?
ans. no. you need not be online at a specific time of the day.
is it important for me to take part in the course forums?
ans. yes. you must participate in the forum(s) for asking and answering questions or starting discussions. share knowledge, and exchange ideas among yourselves (participants) during the course period. participants are strongly encouraged to post technical questions, interesting articles, tools, sample programs or anything that is relevant to the class / lesson. past participants will confirm that they learned the best by active participation.
how much time do i need to spend online for a course, in a day?
ans. this will vary from person to person. all depends upon your comfort level and the amount of time you want to spend on a particular lesson or task.
is there any specific set time for feedback (e.g., any mentor responds to me within 24 hours?)
ans. normally somebody should answer your query / question within 24 hours.
what happens if nobody answers my questions / queries?
ans. normally, that will not happen. in case you feel that your question / query is not answered, then please post the same in the thread – “any unanswered questions / queries”.
what happens to the class (or forums) after a course is
over? can you keep it open for a few more days so that students can
complete and discuss too?
ans. the course and its forum is open for a month after the last day of the course.
remember, the idea is to have fun learning ruby.
- al snow for his various suggestions.
- arvinder singh kang for the note on “using rvm”
- konstantin haase for providing us with another practical rack app.
- matt aimonetti for the get/post example related to rack.
- michael kohl for proof reading and making relevant corrections to day 1 and 2 material.
- oto brglez for the note on “using nokogiri”
- samnang chhun for suggesting changes in day 1 material.
- victor goff for his various suggestions.
- willian molinari for creating the github page for this project.
- zhang hailong for making relevant corrections in day 2 material.
rubylearning.org , since 2005, has been helping ruby newbies go from zero to awesome!
Opinions expressed by DZone contributors are their own.