background preloader

What is ruby?

What is ruby?

Rolling with Ruby on Rails by Curt Hibbs 01/20/2005 Editor's note: Curt Hibbs and Bill Walton have updated this tutorial for Rails 1.2 in Rolling with Ruby on Rails Revisited and Rolling with Ruby on Rails Revisited, Part Two. We recommend those tutorials for all new Rails development. Also check out Bill Walton's monthly series, Cookin' With Ruby on Rails. Maybe you've heard about Ruby on Rails, the super productive new way to develop web applications, and you'd like to give it a try, but you don't know anything about Ruby or Rails. This article steps through the development of a web application using Rails. Let's answer a couple of burning questions before rolling up our sleeves to build a web application! What is Ruby? Ruby is a pure object-oriented programming language with a super clean syntax that makes programming elegant and fun. What is Rails? Rails is an open source Ruby framework for developing database-backed web applications. Part of the answer is in the Ruby programming language. Seeing is Believing

Learn to Program, by Chris Pine A Place to Start for the Future Programmer I guess this all began back in 2002. I was thinking about teaching programming, and what a great language Ruby would be for learning how to program. I mean, we were all excited about Ruby because it was powerful, elegant, and really just fun, but it seemed to me that it would also be a great way to get into programming in the first place. Unfortunately, there wasn't much Ruby documentation geared for newbies at the time. And it wasn't very good. What saved me was that I made it really easy for people to contact me, and I always tried to help people when they got stuck. A couple of years later, it was getting pretty good. :-) So good, in fact, that I was ready to pronounce it finished, and move on to something else. It took me another year, but now I think it's really good, mostly because of the hundreds of brave souls who have helped me write it. What's here on this site is the original tutorial, more or less unchanged since 2004.

JDK 5 Documentation J2SETM Platform at a Glance This document covers the JavaTM 2 Platform Standard Edition 5.0 Development Kit (JDK 5.0). Its product version number is 5.0 and developer version number is 1.5.0, as described in Version 5.0 or 1.5.0? For information on a feature of the JDK, click on its component in the diagram below. New to the Java Platform? General Information API & Language Documentation Guide to Features - Java Platform Design specs, functional specs, user guides, tutorials and demos. JDK Tools and Utilities Reference documentation for the JDK tools and utilities. Demos, Samples, Tutorials, Training, and Reference Sample code for applets and applications, training, courses, and tutorials for the JDK. Ruby Hacking Guide Ruby Inside: The Ruby Blog Practicing Ruby | A unique journal curated by Gregory Brown

Core JavaScript 1.5 Reference - MDC This part of the JavaScript section on MDN serves as a repository of facts about the JavaScript language. Read more about this reference. Global Objects This chapter documents all the JavaScript standard built-in objects, along with their methods and properties. Statements This chapter documents all the JavaScript statements and declarations. For an alphabetical listing see the sidebar on the left. Control flow Block A block statement is used to group zero or more statements. break Terminates the current loop, switch, or label statement and transfers program control to the statement following the terminated statement. continue Terminates execution of the statements in the current iteration of the current or labeled loop, and continues execution of the loop with the next iteration. Empty An empty statement is used to provide no statement, although the JavaScript syntax would expect one. if...else Executes a statement if a specified condition is true. switch throw Throws a user-defined exception. var let in

Why's (Poignant) Guide to Ruby Rubular: a Ruby regular expression editor and tester Learn Web Development with the Ruby on Rails Tutorial Michael Hartl Contents Foreword My former company (CD Baby) was one of the first to loudly switch to Ruby on Rails, and then even more loudly switch back to PHP (Google me to read about the drama). This book by Michael Hartl came so highly recommended that I had to try it, and the Ruby on Rails Tutorial is what I used to switch back to Rails again. Though I’ve worked my way through many Rails books, this is the one that finally made me “get” it. The linear narrative is such a great format. Enjoy! Derek Sivers ( Founder, CD Baby Acknowledgments The Ruby on Rails Tutorial owes a lot to my previous Rails book, RailsSpace, and hence to my coauthor Aurelius Prochazka. I’d like to acknowledge a long list of Rubyists who have taught and inspired me over the years: David Heinemeier Hansson, Yehuda Katz, Carl Lerche, Jeremy Kemper, Xavier Noria, Ryan Bates, Geoffrey Grosenbach, Peter Cooper, Matt Aimonetti, Gregg Pollack, Wayne E. About the author Copyright and license 1.1 Introduction

Core JavaScript 1.5 Guide - MDC The JavaScript Guide shows you how to use JavaScript and gives an overview of the language. If you need exhaustive information about a language feature, have a look at the JavaScript reference. Chapters This Guide is divided into several chapters: Document Tags and Contributors Contributors to this page:chrisdavidmills, SphinxKnight, DannGutierres, dontdomilk, Cthutq1, gauravgoyal1911, jswisher, jppcel, fscholz, hardcodeprogrammer, x2357, pasalog, teoli, ensars53, KelvinS, Sheppy, Nanaya_Kuro, sebkilimo, nagendra08cs, natebunnyfield, Seb_dur, ethertank, iwo, radh, lmorchard, user01, happysadman, cruciatus, Yuichirou, dazzledesign, misha6603, Silviubogan, Cnmahj, Potappo, Lenatis, Simon, Mgjbot, Wafe, Nickolay, Spooty, Momoass, Major Small, electrolysis, Takenbot, Dria, Bkimman, Quarkcool, Cosinus, JesseW, Maian, Callek, JdeValk

10 Free Books for Learning Ruby I recently published a post that discussed 10 ways of learning Ruby, in that list – you can find anything from interactive platforms, to specific walk-throughs, as mentored by some of the Ruby professionals in the community. In that very post, I said that I’d continue gathering up some more resources, and hopefully publish a post that would give you access to some free books to learn Ruby, because we all know how much deeper we can learn from books. You should definitely look into my previous posts about Ruby: I think that’s about it for our introduction, lets take a look at some of the books I was able to find. I don’t guarantee their quality 100%, by they’re the ones that other Ruby community members have encouraged in the past, and I trust their judgement. The Ruby Style Guide It’s a community organized guide for Ruby best practices, and the coding style that’s recommended to use. Why’s (Poignant) Guide to Ruby How To Think Like a Computer Scientist: Learning With Ruby Mr.

Ruby QuickRef Table of Contents Language General Tips These are tips I’ve given over and over and over and over… Use 2 space indent, no tabs. See for more. General Syntax Rules Comments start with a pound/sharp (#) character and go to EOL. Reserved Words alias and BEGIN begin break case class def defined? Types Basic types are numbers, strings, ranges, regexen, symbols, arrays, and hashes. Numbers 1231_234123.451.2e-30xffff 0b01011 0377 ? Strings In all of the %() cases below, you may use any matching characters or any single character for delimiters. %[], %!! 'no interpolation'"#{interpolation}, and backslashes\n"%q(no interpolation)%Q(interpolation and backslashes)%(interpolation and backslashes)`echo command interpretation with interpolation and backslashes`%x(echo command interpretation with interpolation and backslashes) Backslashes: Here Docs: Encodings: Waaaay too much to cover here. Symbols Internalized String. Ranges 1..101...10'a'..' Regexen "r"

Ruby Programming Ruby is an interpreted, object-oriented programming language. Its creator, Yukihiro Matsumoto, a.k.a “Matz,” released it to the public in 1995. Its history is covered here. Its many features are listed here. The book is currently broken down into several sections and is intended to be read sequentially. Table of Contents[edit] Getting started[edit] Overview Installing Ruby Ruby editors Notation conventions Interactive Ruby Mailing List FAQ Basic Ruby[edit] Hello world Strings Alternate quotes Here documents Encoding Introduction to objects Ruby basics Data types — numbers, strings, hashes and arrays Writing methods Classes and objects Exceptions Ruby Semantic reference[edit] See also some rdoc documentation on the various keywords. Built in Classes[edit] This is a list of classes that are available to you by default in Ruby. Available Standard Library Modules[edit] These are parts of Ruby that you have available (in the standard library, or via installation as a gem). Other Libraries[edit] GUI Libraries[edit]